Port-xen archive

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

Re: nic numeration in dom0 and domU



Yep.  Once you hardcode the NIC in the config file, rm the
/etc/udev/rules.d/70-persistent-net.rules file and reboot.  The file
will get recreated automatically.

This bit me when I was trying to clone machines using dd :).

-Dustin

On Wed, Jun 24, 2009 at 3:52 PM, Jean-Yves
Migeon<jeanyves.migeon%free.fr@localhost> wrote:
> 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