udev & network interface order
2007-04-01 10:21:13 GMT
Hello
I finally succeeded in creating my Slackware 11.0 domain0 with Xen 3.0.4, with multiple network interfaces (thanks folks). Dom0 has eth0, eth1, eth2 and also xenbr0, 1, 2. All domU's also have eth0/eth1/eth2, each bound to its own bridge.
My config file:
kernel = "/boot/vmlinuz-2.6-xenU"
memory = 256
name = "dns02"
vif = ['mac=00:16:3e:00:02:00,bridge=xenbr0','mac=00:16:3e:00:02:01,bridge=xenbr1','mac=00:16:3e:00:02:02,bridge=xenbr2']
disk = ['phy:/dev/vg/dns02_root,sda1,w','phy:/dev/vg/dns02_swap,sda2,w']
root = "/dev/sda1 ro"
This is ok, all interfaces are created in the domU.
The problem is only, the order in which they are created is random! On one domU the order is like I want it to be, on some other domU's is not.
I have disabled udev on the domU, because I read it somewhere. So I would think the standard linux rules apply, I was expecting that the interfaces would be ordered based on their hardware addresses. Not.
So I tried starting udev anyway, and putting some rules in /etc/udev/rules.d/network_interfaces:
KERNEL=="eth*", SYSFS{address}=="00:16:3e:00:02:00", NAME="eth0"
KERNEL=="eth*", SYSFS{address}=="00:16:3e:00:02:01", NAME="eth1"
KERNEL=="eth*", SYSFS{address}=="00:16:3e:00:02:02", NAME="eth2"
After that, it seems ok on this domU. But should I be doing this? I read somewhere on the mailing list that I should disable udev on the domU. Why?
A sign that it's wrong what I'm doing, is the following message on startup:
Starting udevd: /sbin/udevd --daemon
udevd-event[1318]: rename_netif: error changing net interface name eth1_rename to eth0: No such device
What should I do? Keep using udev, and ignoring the error on startup? Will it work reliably? Or am I doing something wrong? Is there another way to order my network devices in the domU? Maybe without using udev.
Peter
_______________________________________________ Xen-users mailing list Xen-users <at> lists.xensource.com http://lists.xensource.com/xen-users
RSS Feed