Network issues on Centos After Cloning VMware guest


I have recently come across an issue when repurposing Centos VMware clones. After cloning the Virtual Machines, the Virtual Network Card shows as not present.  This is because the VMware guest will keep the IP configuration details of its parent, and even after changing the Static address, the network card is still unavailable.

The following Steps will address this problem:

  • Load the VM guest console
  • Edit the network file for eth0 using Nano
Nano /etc/sysconfig/network-scripts/ifcfg-eth0
  • Change the Mac address to the virtual network adapter’s

centos MAC

  • open the file 70-persistent-net.rules using Nano.
Nano /etc/udev/rules.d/70-persistent-net.rules

Centos network issues 1

Centos network issues 2

  • Delete all the PCI devices which don’t reference the MAC address of the virtual network card. Then change the name from “eth1” to “eth0”.
 # PCI device 0x15ad:0x07b0 (vmxnet3) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:95:49::bd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
  • Once complete, reboot the virtual machine

Centos network issues 3

Once rebooted, run ifconfig to check to see if the network card has been detected.

Centos network issues 4

There you have it, the network card is now working.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s