Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: nic numeration in dom0 and domU



Goran wrote:
When I reboot my domU-Ubuntu-9.04-server VM (HVM) the nic in the VM got
a new number. E.g. eth0 becomes eth1. This is not acceptable for network
configuration. Is this fixable?

I guess it is due to the way Linux tracks NICs: by their MAC addresses. If you don't set the MAC addr manually in the VM config file, they will be randomly generated. As a consequence, you get a new ethX iface in the domU.

I would advise to:
- edit udev rules (as funny as this could be), or
- fix MAC address in the config file:

vif = [ "type=ioemu, mac=00:16:3E:00:00:01, bridge=bridge0" ]

--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost



Home | Main Index | Thread Index | Old Index