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] in domU eth0 is now eth3?

To: "Goetz Bock" <bock@xxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] in domU eth0 is now eth3?
From: "Nico Kadel-Garcia" <nkadel@xxxxxxxxx>
Date: Fri, 16 Mar 2007 10:16:28 -0000
Delivery-date: Fri, 16 Mar 2007 03:22:19 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=Ama2EM9qhnQiN3TEMQlvDQp8I6y+kYXODY1ZdGCX8uoVygczupdi2VkJ579sBfboKUXR6gr3eKJPCxgNO2a36bI6jH/PX00oQbRXxwnQ8B+1amu7b5NFoz7j8Wpw+YiKnF9+gI0PsLc2gtOEpB2cPQSKM+I886mMbmJeCEFh784=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=cXEwN7BPfpcYefgmvsYOEvEDL0sW584HPOpJBBwc8Hnlj39xZPW9Gi49UN4RqMN4sWW3fY1BVbk8VQo/d08lb4jb/r+lyE2Du+HW28gmxdP+o2yNaOVCY6o+9aRruW7+lijJxrJZw1aHtUNlUbh7aE4LPhTeA1dVT0lPOlGk0fU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: <1173885316.5795.11.camel@localhost> <20070316092530.GH22390@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Goetz Bock wrote:
On Wed, Mar 14 '07 at 16:15, Rune Elvemo wrote:
We had a little strange experience here. We had to copy something to
our xen image. It was done while the domU was down, mounting using
the loopback device.
After we had finished the job, unmounted, and restarted the domU, we
had no eth0. Got an error message in the bootup. I thought something
had gone really wrong, and that we no more had network access in this
particular domU.
You don't mention what distribution you're using for the domU.

Debian Etch (4.0) has the unfortunate habbit of remembering what MAC
address an ethernet card had. So on the normal Xen 3.0.3 (as shipping
with etch) setup, where you get a new MAC on every boot, you start
with an eth0 but after 4 reboots have only an eth4 ...
(the MACs are recorded in /etc/udev/rules.d/z25-persistent-net (path
from memory)

There's a reason for this sort of thing. Associating specific network ports with specific hardware can be.... awkward, since compiling some modules directly into a kernel or loading them after boot or even subtle differences in the modules themselves can re-order the network ports. This was even worse with wireless ports in the picture. And it's deadly on a firewall box, since the firewall rules may be very different for different ports.

So in many distributions, the network port is associated not only with a specific module, but with a specific MAC address to keep things consistent. Voila, no hopping ports. But Xen's habit of auto-assigning randomized MAC addresses can trip over this.

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

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