Discussion Forums



Thread: ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.

This question is answered.

Welcome, Guest Help
Login Login


Permlink Replies: 6 - Pages: 1 - Last Post: Apr 12, 2007 9:36 AM by: richardshade
richardshade

Posts: 61
Registered: 4/10/07
ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.
Posted: Apr 10, 2007 12:04 PM PDT
 
  Click to reply to this thread Reply

I have a FC6 AMI that is working fine. When I run ec2-bundle-vol --cert /mnt/cert.pem -k /mnt/pk.pem -u <****> -e /mnt -p FC6ManualBundleVol -d /mnt/imagebundle and upload the bundle. Upon launch /etc/sysconfig/network-scripts/ifcfg-eth0 is renamed to /etc/sysconfig/network-scripts/ifcfg-eth0.bak. Anyone have any ideas.. I have noticed this alot on the forum and have narrowed it down to FC6 and ec2-bundle-vol. I am on the latest publish version of ami-tools.   Any one have a solution?


Richard Shade
RightScale

Message was edited by: richardshade

propelbill

Posts: 57
Registered: 9/1/06
Re: ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.
Posted: Apr 10, 2007 3:21 PM PDT   in response to: richardshade
 
  Click to reply to this thread Reply

Just to be explicit, here http://developer.amazonwebservices.com/connect/thread.jspa?messageID=55753&#55753 is an example of this problem.

Lest we get discouraged, remember: we're on Amazon's cloud here - deep pockets, knowledgeable support staff, strategic commitment to the EC2 business. Lest we begin to believe grass is greener: http://blog.railsmachine.com/2007/4/10/state-of-the-machine

That being said, have you looked to see if a MAC address is getting "baked in" to your /etc/sysconfig/network-scripts/ifcfg-eth0 ? That was suggested on the first thread cited above as well as the one in this paragraph.


richardshade

Posts: 61
Registered: 4/10/07
Re: ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.
Posted: Apr 10, 2007 8:04 PM PDT   in response to: propelbill
 
  Click to reply to this thread Reply

PropelBill - thanks for your help. However does not seem to be the problem. the problem is only associated with ec2-bundle-vol.. This is a yum built AMI with no mac address settings. it only happens when ec2-bundle-vol is run.   
Message was edited by: richardshade

propelbill

Posts: 57
Registered: 9/1/06
Re: ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.
Posted: Apr 11, 2007 1:00 PM PDT   in response to: richardshade
 
  Click to reply to this thread Reply

Googling for "ifcfg-eth0.bak" yielded this thread from late January, 2007 on XenSource: http://lists.xensource.com/archives/html/xen-users/2007-01/msg01064.html

From that thread you see that folks outside EC2 are experiencing the same networking issue with FC6 running as a Xen DomU.

Further on in that thread, here: http://lists.xensource.com/archives/html/xen-users/2007-01/msg01110.html the author tells us the results of his painstaking analysis, to wit:
It appears that Kudzu is the offender in this instance, for
some reason after the first boot (and hardware profile) Kudzu would
rename ifcfg-eth0 to ifcfg-eth0.bak based upon some unknown hardware
change.  I am wondering if maybe the Xen Dom0 asserts a
different/random MAC on each boot?
That post goes on to recommend this fix:
Either way, chkconfig --del kudzu solved the issues with the ethernet
interface being renamed.
I have not tried disabling kudzu yet. Is that advisable?

What I have confirmed is this workaround procedure for getting an FC6 instance into a good state:

0. Before bundling a new image, make sure that any ifcfg-eth0.bak file is restored e.g. mv /etc/sysconfig/network-scripts/ifcfg-eth0.bak /etc/sysconfig/network-scripts/ifcfg-eth0  If you fail to do this then instances run from this image will not be reachable ("no route to host").

1. If you run an instance from an image created per step 0, you will be able to SSH to it but DNS lookups from that host will not work . To get DNS working run dhclient  Now DNS lookups will work.

This unrelated thread implies that FC6 can be installed with a "virtualization" option selected -- I wonder whether that option is for using FC6 as Xen Dom0 (host OS) or DomU (guest OS) http://osdir.com/ml/redhat.fedora.xen/2007-02/msg00037.html

Did I miss the boat by not selecting the "virtualization" option when building my FC6 image? Actually I got to FC6 via yum upgrade off of an Amazon FC4 AMI. There has to be a better way!


richardshade

Posts: 61
Registered: 4/10/07
Re: ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.
Posted: Apr 11, 2007 1:53 PM PDT   in response to: propelbill
 
  Click to reply to this thread Reply

propelbill, thanks .. Another guy i work with suggested that also.. I am re-building now.. I will post and let you know how it went. thanks for the help..   


propelbill

Posts: 57
Registered: 9/1/06
Re: ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.
Posted: Apr 11, 2007 2:44 PM PDT   in response to: richardshade
Correct
  Click to reply to this thread Reply

I have verified that the chkconfig --del kudzu "fix" works. No .bak files and I'm able to SSH in and DNS lookup work (from the instance). Woo hoo!


richardshade

Posts: 61
Registered: 4/10/07
Re: ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.
Posted: Apr 12, 2007 9:36 AM PDT   in response to: propelbill
 
  Click to reply to this thread Reply

propelbill- it worked great .. thanks for the help  



Point your RSS reader here for a feed of the latest messages in all forums