[Linux] Fixing network issues when cloning a CentOS 6.x in VM (Virtual Machine

Posted on

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.

  1. In VMware right click on your cloned CentOS 6 vm and go to properties.
  2. Click on your network adapter and write down your MAC address
  3. Open the console to your cloned CentOS 6 VM and edit your /etc/udev/rules.d/70-persistent-net.rules
  4. Comment out the line with eth0
  5. You should see another entry with eth1, change eth1 to say eth0
  6. On that same line, edit the MAC address to match what your wrote down earlier.
  7. Save and quit the file
  8. Edit your /etc/sysconfig/network-scripts/ifcfg-eth0
  9. Change the MAC address to what you wrote down earlier
  10. Change your network settings if you need to.
  11. save and quit
  12. Restart your computer (doing a service network restart will not work, you have to do a full reboot)
Baca Juga :  Cara Cek domain Email Dari Black List

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.

Gravatar Image
http://bakhtiyar.bsierad.com/

Leave a Reply