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] 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 23:53:04 +0000
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 13 Nov 2007 15:52:04 -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=ScElmAihmFb1K23BbRjqY7+Rb0wddxGmcNdE1epn8ZI=; b=TwnvwaVIO7BOcwYJmRFI3sfIEPqz1VBMbLcOA11wDUkFDhoLzFmv1LnCO8STdrRt9iwO7JXHLQ8j8JesQwb+3qcY0lB7MEzLljNBIR4lzcgXRRSOPkxvA6q5vFW7k31ohbpYNpfbYUfSDyj/UTNaSUwRpi3Fx2h/mrN7OxZMWuA=
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=puIlSR3S8EQIHQMzcnVNAo/OT9GIvReO0go+//V+yamBu2Mt+fYJ3NBf4n1y54BLI/gItf7oKfmxnBo9pURBUDDRMLMKWVyVeNYIcjxvkjdXTL50/TsetMkj+550u7o9TRRgyLJVacIlpDiDNw9EG3Ki9LXBjweQIkVEAVpJb9g=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9c2cca270711131534t438943abo86c29b39a2025dfe@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> <47396271.2070600@xxxxxxxxxxxx> <9c2cca270711131534t438943abo86c29b39a2025dfe@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.13 (Windows/20070809)
Amos Shapira wrote:
On 13/11/2007, *Stephan Seitz* <s.seitz@xxxxxxxxxxxx <mailto:s.seitz@xxxxxxxxxxxx>> wrote:

    Amos Shapira schrieb:
    > Hello,
    >
    > 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.

    you should set a mac address in your domU config file.

    e.g.
    vif  = [ 'mac=00:00:cb:62:fd:7f,bridge=xenbr0' ]

    otherwise the interface changes it's mac every time the domU is
brought up.

Thanks. That worked. I let the machine boot, copied the assigned MAC to the .cfg file, and it started configuring eth0 automatically after the next boot.

I'm still curios to understand what actually goes there, does the "Checking for hardware configuration changes" boot stage do the renaming?

--Amos
Read the scripts in /etc/sysconfig/network-scripts/. I think it's there, and there's a lot of fascinating stuff buried there, such as setting the hostnames for DHCP by creating a file called /etc/dhclient-eth0.

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