WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] domU gets eth1 instead of eth0
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
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Mepy6lcORvHFNIJjHUt6bdmMXaTahZcuzSEUuioVSyFEhFtGK1pD1aayXPcgb3VSM1ZfC5hRTllwcXI1rdRXEJFB6OAidxkDt6/xlWj7ihhlaIgwrvPzRPu40KpjH8kzzLL/5k99sl6zQSbBXNavuaPouW7vzSAFJT6TThWPCRI=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1185801742.46ade60e1eaec@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <718828c0707300342k605731c8h630fc1b03ed5ea44@xxxxxxxxxxxxxx> <1185801742.46ade60e1eaec@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>