17Dec/072

VMWare Server + Ubuntu Gutsy Gibbon + Cloned Servers = Unnecessary Pain

At work, I wanted to build a single Ubuntu image for VMWare, which I could then clone for virtual appliances.

I settled on 64-bit Gutsy Gibbon Server, as it was the latest and greatest. I built my generic image, which worked great. But then I built my clone.

The clone's ethernet card never showed up. I used every tool; I could see it on the PCI bus, and I could examine it to my hearts' content, but ifconfig just wouldn't see eth0.

Finally, today, I found the culprit. I'd rebuilt the image again, cloned it, told the clone to create a new ID, and immediately the Ethernet interface disappeared.

The culprit? /etc/udev/rules.d/70-persistent-net.rules, which relies on the MAC address of the network card to assign ethernet devices. Changing the ID changes the MAC address, which breaks the existing rule.

Solution? Delete the rule for the old card, on eth0, and change the eth1 in the rule for the new MAC to eth0.

That's it. Wish it hadn't taken me days of messing around to figure that out. Makes me feel old and not very bright.

Comments (2) Trackbacks (0)
  1. Great!!! Thanks a lot for this tip!

    For several months I had been suffering a lot with this issue, and not being able to solve it made me feel VERY old and ABSOLUTELY NOT bright. ;)

  2. you could have also done ifconfig -a found out that eth1 existed and just configured that … if your a lazy bastard like I am.


Leave a comment


No trackbacks yet.

The Rest of Me

Recent Comments

Tweets

  • Dressed for the funeral. I miss you, Grandma. 1 day ago
  • My grandmother is dying. Heading to New York tomorrow. 3 days ago
  • Returned from Mexico to dead hard disk in my iMac. Was hours to notice I was running off my bootable backup! Thanks, SuperDuper! 5 days ago
  • Wow. In four hours, I'll be on vacation. No cell phone until March 5th. Send e-mail if necessary. 2 weeks ago
  • Going-away party tonight for JerV, starting sometime after 7pm. Call or DM if you need directions or more info. 2 weeks ago
  • More updates...

Posting tweet...

Blogroll

Meta