Daniele:

My first thought is that mwum1004 is an ethertap device.  That's a dummy 
ethernet device that can
be used to communicate with a single UML instance.  Let's say you are running a 
uml instance as
the user umluser and you want to network it to the host.  Let's also say the 
user mode linux
kernel program has been renamed "uml_linux" and is installed on your path 
somewhere like
/usr/local/bin/uml_linux, and that a root filesystem for uml_linux to boot and 
operate from has
been created at /home/umluser/root_fs.

Here is how you would manually start a UML instance and connect it through a 
virtual network to
the host.

In one xterm as root:
   tunctl -u umluser -t tap0
   ifconfig tap0 10.0.0.1 netmask 255.255.255.0 up

In another xterm as umluser, in the directory /home/umluser:
   uml_linux ubd0=root_fs eth0=tuntap,tap0 mem=64M &

Now, in one of the boot scripts inside root_fs, networking from the uml side of 
things would have
to be brought up like this:
   ifconfig eth0 10.0.0.2 netmask 255.255.255.0 up

Once you saw the boot process finish in umluser's xterm, you should be able to 
ssh or telnet into
the uml instance from the host system (well, if you knew any of the username 
and password
combinations in the root_fs's /etc/shadow).  Even if you didn't know any 
usernames or passwords,
you should be able to ping 10.0.0.2 from the host system.

If I were in your shoes, I would start looking at /home/mwuml004/bin/mwuml004.  
I'm guessing its a
shell script that has commands like the uml_linux one I described above.  From 
that, you may be
able to tell which tap devices are being used.  If mwum1004 is a tap device 
that the script
assumes has already been created but doesn't attempt to create itself, you can 
create it like this
(as root):

   tunctl -u mwum1004 -t mwum1004

since it looks like whoever set the system up used the same name for the tap 
device and user
account the UML instance runs from.

You may also want to figure out where the root filesystem image the UML 
instance is booting from
is.  Once you find it, you can loopback mount it and see what's in the boot 
scripts, especially
how network in configured.  Without knowing the IP address and mask assigned in 
the UML boot
scripts, you won't know how to configure it on the host so you can communicate.

Chris Marshall

--- Daniele Procida <[EMAIL PROTECTED]> wrote:

> Hi - I've been left in charge of a server running UML. There are a few
> virtual servers hosted on it.
> 
> All was going well until it all went down this morning; the host server
> was rebooted, and when it came back up the UML servers didn't.
> 
> I've been left with some instructions, but so far haven't been able to
> get the UML servers back again. I think it's a networking issue between
> UML and the host server.
> 
> The instructions I've been give say to bring up the interface to the UML
> server first:
> 
>     ifconfig mwuml004 up
> 
> But I get a:
> 
>     mwuml004: ERROR while getting interface flags: No such device
> 
> So I start up the UML server:
> 
>     su - mwuml004 /home/mwuml004/bin/mwuml004
> 
> and ps -fu mwuml004 reveals all kinds of exciting things going on there,
> until the thing boots up and settles down into normality. But even if I
> now try to bring the interface up again, I still can't get network
> access to it - I can't even ping it.
> 
> Does this look like a networking issue at first sight?
> 
> Any suggestions for the next diagnostic step would be gratefully received.
> 
> Thanks,
> 
> Daniele
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to