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

Re: [Xen-users] domU gets eth1 instead of eth0



Quoting Tomoki Taniguchi <tomoki.taniguchi@xxxxxxxxx>:

> is there a reason why my domU is getting eth1 as the network device
> instead of eth0?
>
> xen version:  3.03
> dom0:  Ubuntu 7.04 Server.
>
> domU:  I created a template for the domU by creating a looback
> filesystem in an existing Ubuntu Server.  I mounted it then Rsynced
> the contents of / to the mounted filesystem.  I copied everything
> including /dev and /proc.
>
> what should i do to ensure that eth0 is created when i use the image?
> also how do i make sure that the mac address for the eth0 will be different
> each time i create a duplicate of the image file for a new domU?
>

You've copied the config from the existing server. The configuration for eth0 is
tied to the MAC address of the card on that server, this MAC address won't exist
on your DomU and so your interface will be assigned as eth1.

On your DomU, open the file /etc/udev/rules.d/30-net_persistent_names.rules. You
probably have a rule something like the following for eth0:

SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:aa:aa:aa:aa:aa",
IMPORT="/lib/udev/rename_netiface %k eth0"

Remove it and try restarting your Dom0.

--
Mike Peters
Web Site: http://www.ice2o.com




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.