Device eth0 does not seem to be present

Issues

After restoring a VM from datastore or after cloning a centos VM on Vsphere, we see the following error during network restart

“Device eth0 does not seem to be present”

Cause:

After cloning or restore from datastore, the MAC address needs to be edited on the VM configuration settings since the MAC ID tends to change during restore/clone

Solution:

The configuration file where the Centos machine stores its NIC information is in

/etc/udev/rules.d/70-persistent-net.rule

In this file, there will be MAC address inforamtion (ATTR{address}) for each device name (eth0, eth1). Once in, we have to update the MAC information of eth0 device with the MAC address of the restored/cloned VM.

After that start udev configuration using the command below

start_udev

Now restart network services

service network restart

Written by actsupp-r0cks