|
Discussion Forums
|
Thread: ec2-bundle-vol on FC6 volume cause /etc/ifcfg-eth0 to be renamed.
 |
This question is answered.
|
|
|
|
Replies:
6
-
Pages:
1
-
Last Post:
Apr 12, 2007 9:36 AM
by: 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
|
|
|
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
|
|
Posts:
57
Registered:
9/1/06
|
|
|
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
|
|
|
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
|
|
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
|
|
|
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!
|
|
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
|
|
|
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..
|
|
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 |
|
|
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!
|
|
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
|
|
|
propelbill- it worked great
.. thanks for the help
|
|
|
|