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

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


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Tomoki Taniguchi" <tomoki.taniguchi@xxxxxxxxx>
  • Date: Mon, 30 Jul 2007 23:41:13 +0900
  • Delivery-date: Mon, 30 Jul 2007 07:38:59 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aZGHoKHGFkD1vHA4MzZNlZQNckEElqM2oM64sD2sqoisRhUQTsMOivI+6pcN5CuyQsXGQTOAKwQWJ56caM1ZW2+/+jaU/sWKubOkUNa5iZYQRtLSy9t9BrHrSIT+BN6m8Pxe/+pd7QeHRdVL4KP7lAT4sH9fYxxjLIKdvTvQCb0=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Mike,

thanx for your reply, unfortunately there was no
/etc/udev/rules.d/30-net_persistent_names.rules file.
I found /etc/iftab file instead which contained

<snip>
# This file assigns persistent names to network interfaces.
# See iftab(5) for syntax.

eth0 mac 00:aa:aa:aa:aa:aa arp 1
<snip>

erasing that line fixed my problem.
thanx for your help

Tomoki



On 7/30/07, mpeters@xxxxxxxxxxxxxxx <mpeters@xxxxxxxxxxxxxxx> wrote:
> 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
>
>
>
>
>


-- 
Tomoki Taniguchi
SKYPE: taiyocable.com_taniguchi_tomoki
MSN: tomoki_taniguchi@xxxxxxxxxxx
YAHOO: tomoki_taniguchi
AIM: tomoki taniguchi

_______________________________________________
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®.