Broken eth0 when cloning Linux instances in Parallels / VMWare

When cloning virtual Linux instances, Parallels and VMWare pick a new random MAC address for the Ethernet adapter. The Linux udev system keeps track of MAC address to Ethernet device mappings in a persistent rule file located (in the case of Gentoo) here:

/etc/udev/rules.d/70-persistent-net.rules

If you clone a Linux instance, the kernel will boot and recognize the new MAC address, increment the eth0 device assigning the new MAC as eth1. That's probably not what you want to have happen. The easy fix is to just delete that file and reboot causing the udev system to rewrite the file with the new MAC as eth0.

Adding this to the list, when creating a master Linux instance that you intend to clone, you should blow this file away along with /etc/ssh/*key* so the newly cloned copies will find their eth0 and build a unique set of ssh keys.

Thanks to Vantoft for the hint on this.

Tags

Trackbacks

To send a trackback, use the URL of this story appending ?page=tb at the end.

Comments (0)

Leave a Comment

Name:
Location: (city / state / country)
Email: (not published / no spam)

No HTML is allowed. Cookies must be enabled to post. Your comment will appear on this page after a moderator OKs it. Offensive content will not be published.

Click the duck to submit your comment.

To create links in comments:

[link:http://www.anders.com/] becomes http://www.anders.com/

[link:http://www.anders.com/|Anders.com] becomes Anders.com

Notice there is no rel="nofollow" in these hrefs. Links in comments will carry page rank from this site so only link to things worthy of people's attention.

About Me:


Name: Anders Brownworth
Location: Boston, USA
Work: Writing iPhone and Android applications.
Play: Technology, World Traveler and Licensed Helicopter Pilot
Follow:
more...

Books:

Lars Brownworth's book on Byzantine History spawned from our 12 Byzantine Rulers podcast:



or get the Audiobook in iTunes

Contact Me:

Name:
Email:

Click the duck to submit. (Why?)

Want to stop form spam on your website? Try JustHumans.com.
user:
pass: