On Thu, 27 Mar 2008 14:51:24 +0000 "Will Morton" <[EMAIL PROTECTED]> wrote:
> Greetings UMLers; > > I am booting a custom 2.6.24.4 UML kernel, running a debian etch guest > created using debootstrap. I am booting using the kernel command > line: > > root=/dev/ubda ubd0=./etch.rootfs ubd1=./etch.swapfs mem=128M > eth0=tuntap,,,192.168.23.5 > > However, the network interface that gets created isn't eth0 - it's > ethN, where N increments every time I boot the guest (I'm now on > eth19). This prevents the normal boot-time network config from > running properly. Now I can bugger about with a custom script that > uses something like ifconfig `ifconfig -a | grep eth | awk '{print > $1}'` ... but it seems there must be a better way, and in any case I > want to use more than one network device on some of my guests. > > I'm not sure what's causing this, but I notice this line in dmesg: > > [42949373.660000] Choosing a random ethernet address for device eth0 > > If it's picking a different mac address each boot, does this result in > the kernel thinking it's a different device and hence assigning it a > different name? How do I stop it doing this? > > Cheers, > > W [Debian-specific information follows]: The simplest way to deal with this is to remove the following files (or otherwise prevent udev from reading them, particularly the z45* link): /etc/udev/rules.d/z25_persistent-net.rules /etc/udev/rules.d/z45_persistent-net-generator.rules The generator config file creates the z25 file for use at the next boot, writing a per-interface entry using the MAC address. This is, by default, pretty useless for a UML guest with dynamic MAC addressing, so it's easiest to simply disable this functionality and let your command-line interface specifications be properly used. Please note that it should go without saying that this change is intended for your UML guest(s), not the host. Regards, Adam Snodgrass [EMAIL PROTECTED] ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user