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/
Home Products Support Community News


Re: [Xen-users] CentOS 5.0 ifcfg-eth0 gets renamed on boot

To: Amos Shapira <amos.shapira@xxxxxxxxx>
Subject: Re: [Xen-users] CentOS 5.0 ifcfg-eth0 gets renamed on boot
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Tue, 13 Nov 2007 08:53:46 +0000
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 13 Nov 2007 00:52:50 -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=Dsl+Ttl2F1ohSd1PcRWehpMZ3Uo73AQjVarve5SH8Is=; b=fB72wrvMXqrP/vTd57CTP+fSerQNf/tSxdvTwKd7woE2Dl5syPOR7fvh8a3HWnHiR+//Iqltq2JN/AdRHiSbUcf4p27YJbtEHOFvaDYHvcUuAVrfCVK1U/7CfjBfztAz/hGuvhy2VSpMsW76pKP0lvLMT/HEOjd3JNe++lKqo24=
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=aIsRJB8PVG3EdB9+zm4L8nT6DHo/GPp11xCAo8U8h1dbUbYgYA+WSSLJMZUrEiKTZiKWf4DmWxLjEAoUbXm4Duu0f7/ho/wJ7MYdFX3DrBYqouKTO1hXaqJIf+ds5Q+sSvAqoyR+ebRq8/OJnSjuu+IPdFhNMlUXOppFLfjn9tg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9c2cca270711130021h3d54adc6l84f6bf8dbe6d669b@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: <9c2cca270711130021h3d54adc6l84f6bf8dbe6d669b@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (Windows/20070809)
Amos Shapira wrote:

I created a CentOS 5.0 x86_64 guest under Debian Etch with Xen 3.0.3 and it boots fine except for one re-occuring problem - whenever it boots the /etc/sysconfig/network-scripts/ifcfg-eth0 script gets renamed to .bak and doesn't configure the ethernet device.

Here is the content of this file:


Looks pretty standard to me.

When I boot the system to single-user mode the file is still there but when I ^D to go to multi-user the file gets renamed at some stage.

A simple "mv ifcfg-eth0.bak ifcfg-eth0" and "service network restart" fixes the problem but it's still very annoying to have to do that every time i reboot the system (luckily these are just test/dev machines for now).

I tried to follow the output of the boot in the console but can't see anything wrong, and can't find what in the world could do this renaming at boot time.

What am I missing?



Is that http:// debris actually in your file, or is that some sort of gmail 
rendering error?

RedHat also has a tradition of stuffing some interesting little files in 
/etc/sysconfig/ for resetting network configurations. Slightly different 
configuration tools, such as system-config-network, set them differently and 
they propagate oddly if you try editing things manually. Try using 

Also, don't you have a hard-coded MAC address for the guest? Something that you can put as 
"HWADDR=<MACADDRESS>" in your ifcfg-eth0 file?

Xen-users mailing list