Bsierad.com – I found this out quickly after upgrading from CentOS 5 to CentOS 6, when cloning your CentOS 6 virtual machine in VMware you will not have any network access.
When you clone your CentOS 6 VM you will see that CentOS 6 is still expecting to see your old MAC address.
- In VMware right click on your cloned CentOS 6 vm and go to properties.
- Click on your network adapter and write down your MAC address
- Open the console to your cloned CentOS 6 VM and edit your /etc/udev/rules.d/70-persistent-net.rules
- Comment out the line with eth0
- You should see another entry with eth1, change eth1 to say eth0
- On that same line, edit the MAC address to match what your wrote down earlier.
- Save and quit the file
- Edit your /etc/sysconfig/network-scripts/ifcfg-eth0
- Change the MAC address to what you wrote down earlier
- Change your network settings if you need to.
- save and quit
- Restart your computer (doing a service network restart will not work, you have to do a full reboot)
Or
- Copy mac addres from old / master VM into clone VM << [ tested by me ]
There you go! You will now have network access on your cloned CentOS 6 VM after rebooting.