Apparently networking in Ubuntu goes funny when you change it’s Mac Address, and picks up the changed MAC as a new NIC, and assigns it the next number sequentially. While you can get around this by statically setting the MAC address, you generally want to avoid that. Having duplicate MAC addresses is a “Bad Idea”
Instead, what you want to do, either prior to cloning, or after the fact (prior if you’re making more than one copy), is to edit the “/etc/udev/rules.d/70-persistent-net.rules” file, and remove the eth0 entry. Lets take a look:
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:02:51:cf", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
An ugly beast of a file but that last line is the one that needs deleting. Another method of doing this, is to edit the ‘persistent-net-generator.rules’ file to include something similar to:
# ignore VMware virtual interfaces
ATTR{address}=="00:0c:29:*", GOTO="persistent_net_generator_end"
This ought to take care of it on an ongoing basis, and eliminates the need for the first line.
This came up in the VMware Communities this weekend.
Perhaps this is going to be an enormous fail and I'm going to embarras myself on VMware forums around the world, but my ESXs have OUI's of 00-50-56-xx-yy-zz, which a search at ieee.org confirms is correct, so the above would not apply to me. Obviously I realise that, but somebody copying and pasting and not thinking might end up saying it doesn't work for them.
00-50-56 (hex) VMware, Inc.
005056 (base 16) VMware, Inc.
3401 Hillview Avenue
PALO ALTO CA 94304
UNITED STATES
A search for the above also returns VMware. It should be noted that this should be tailored to your environment.
—
Here are the results of your search through the public section of the IEEE Standards OUI database report for 00-0c-29:
00-0C-29 (hex) VMware, Inc.
000C29 (base 16) VMware, Inc.
3401 Hillview Avenue
Palo Alto CA 94304
UNITED STATES
hi
i read this article.it is relay nice but please tell Can I make a clone of my modified Ubuntu Linux distro?
You should be able too, yes. If you need live cloning, make sure you have
the VMware tools installed.
s/too/to dang word use.
excellent post, I'll have to check back more often, thanks!
No problem!
Finally I have fount this! I am using vmware for a while now but i didnt use ubuntu with it because of the funny problem when you change mac adresses. hopefully this is going to work now!
If not, let me know and we can dig a bit deeper.
-C
If not, let me know and we can dig a bit deeper.
-C
Yeah, I know, this article is from 2009, but well…
In Ubuntu 12 LTS (and probably others as well), that’s no longer needed. They now have the following in /lib/udev/rules.d/75-persistent-net-generator.rules
# ignore VMWare virtual interfaces
ENV{MATCHADDR}==”00:0c:29:*|00:50:56:*”, GOTO=”persistent_net_generator_end”
Thanks for that!