I've discovered some sort of weird interaction between Ubuntu gutsy
gibbon (version 7.10) and UML.  I've reproduced this bug on using both a
vanilla feisty and a vanilla gutsy host, but it only shows up when using
a gutsy guest.  This is probably important to deal with while gutsy is
still in development, so we can get it fixed (if it is their problem).
In all cases I used a precompiled guest kernel (version 2.6.22.7) that I
downloaded from uml.nagafix.co.uk (but it also happened uder 2.6.22.9).

I don't really understand fully how tun tap networking works, but here
is the behavior. The SECOND and subsequent times I boot a guest (but not
the first time) the guest complains when I try to bring up the network
interface.

I pinned this behavior down to SOMETHING creating a new entry
in /etc/udev/rules.d/70-persistent-net.rules of the form:

# net device (uml-netdev)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="f2:7a:f8:d4:1a:5a",
NAME="eth0"

So it creates the above entry the first time and the network works.  The
second time I boot, it adds this to the end of the file:

# net device (uml-netdev)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="92:11:3e:5f:c9:8c",
NAME="eth1"

If I change the entry in /etc/network/interfaces to be eth1 instead of
eth0, it works great.  However, I obviously can't have my guest changing
mac addresses every time it reboots.  This behavior doesn;t show up if
on the host, ever.  Only on uml guests, which is why I am reporting it
here rather than as a bug against ubuntu.  I'm not really sure who's
fault it is, but as gutsy is coming out in 17 days and will be the new
stable version of ubuntu, we probably want to get this handled sooner
rather than later.

Lastly, if I remove all entries
from /etc/udev/rules.d/70-persistent-net.rules and reboot, it works for
the next reboot only (while it is operating off the eth0 that it creates
that time), so there is a workaround, unless you need a static mac
address.  Anyway, it'd be great if we could get this fixed...

Jonas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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