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
- open the file 70-persistent-net.rules using Nano.
Nano /etc/udev/rules.d/70-persistent-net.rules
- 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
Once rebooted, run ifconfig to check to see if the network card has been detected.
There you have it, the network card is now working.
Leave a Reply