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] Slackware 12 DomU NIC increments on each start

To: Florian Heigl <florian.heigl@xxxxxxxxx>
Subject: Re: [Xen-users] Slackware 12 DomU NIC increments on each start
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Sun, 18 Nov 2007 08:32:45 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 18 Nov 2007 00:31:43 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=ddPjONalc93PrChalGIlXuvl2jIclrOFLZ2fm068ec0=; b=PhuXM6/JBu83aTjufdwUTRuPwwr2IfBk7aNn8kILWgkuYAejv5uqrAfohQ9F+w0qRRyLqTkkCTwVySheO0T/v/RgISdkWGUnEZfbA+jIaLXP8vRPBr6BA3Cp0+XQ2+nt5EM0o3zQ9Pl1SXMSErMrCcAsfZX2XC9aSWAlioh03Zs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=UsHJ/ufaeJOchUIXz61Razz/vmzue6peoFC4ajq1aYL3IzES801jjESUnKNARIQ/y34QG2tkuwd41oxUy/ITPg6/0Xaso32tWkzJWm4ULEYB/5fjntV+5DOrLE5XUBgn4ayqO/VIDkc3OjYnsNim62rSUtSQl5xFj4Fv+GMFKT8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <77abe410711172101q70dd8464sca412f182fa4a0b3@xxxxxxxxxxxxxx>
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: <447CD0A4E64B1D45AE4838B0B214FD2D015C2770@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20071116135928.GA15340@xxxxxxxxxxxx> <Pine.LNX.4.64.0711161142490.30460@localhost> <77abe410711172101q70dd8464sca412f182fa4a0b3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
Florian Heigl wrote:
Hi all,

just a little proposal ;)

2007/11/16, Tom Brown <xensource.com@xxxxxxxxxxxxxxxxxxx>:
On Fri, 16 Nov 2007, Steve Kemp wrote:

On Fri Nov 16, 2007 at 13:21:58 -0000, Russell Packer wrote:

The problem is that networking doesn't work properly. Each time I
shutdown and restart, the NIC increments... eth0, eth1, eth2... I'm on
eth12 right now! Once the system starts I can use ifconfig & route to
assign an IP and a default gateway, and I get a network connection.
Weird stuff.

Does anyone have any ideas what is going on / what I need to do? I just
want my nice eth0...
 This is almost certainly udev being "helpful".
I suspect it's kudzu ... which IMHO is not really appropriate on domUs and
should be disabled, but I don't like/trust automagic... With kudzu turned
off (chkconfig kudzu off) and making sure there is no MAC= line in your
/etc/sysconfig/network-scripts/ifcfg-eth0 file, you should be ok even if
the mac address is changing.... at least this is true for my old and new
redhat based systems. -Tom

I posted about this like half a year ago, and still think it would be
the best if there was
some xen magic to save back the GUID and MAC autogenerated on first
startup into the
domU config.
It's possible to run "xm list --long [DOMAIN]" to extract them. It's better to preset them, if possible, to avoid conflicts among a large cluster of guest domains. Some tools, like virt-install from RedHat, can prescribe MAC addresses. But I wanted the vifname too, to make MRTG network monitoring report the same interface consistently the last time I did this, and wound up writing a little wrapper to hardcode those.


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