[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Amos Shapira <amos.shapira@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.