[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-users
Subject:    Re: [Xen-users] domU gets eth1 instead of eth0
From:       "Tomoki Taniguchi" <tomoki.taniguchi () gmail ! com>
Date:       2007-07-30 14:41:13
Message-ID: 718828c0707300741h40c849a8ib1f0a732879c2546 () mail ! gmail ! com
[Download RAW message or body]

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@mpeters.f2s.com <mpeters@mpeters.f2s.com> wrote:
> Quoting Tomoki Taniguchi <tomoki.taniguchi@gmail.com>:
>
> > 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@hotmail.com
YAHOO: tomoki_taniguchi
AIM: tomoki taniguchi

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic