Engine23

Centos 6.5 - eth0 is not present

How to fix this issue when you move a virtual machine from one computer to another.

The mac is set in the config and needs to be updated on the VMWare.

First ssh into the server and get the information from /etc/sysconfig/network-scripts/ifcfg-eth0

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:0C:29:48:56:52
#IPV6INIT=yes
IPV6_AUTOCONF="yes"
#NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
#USERCTL=no
#PEERDNS=yes

Now get the HWADDR=00:0C:29:48:56:52 ( <-- note yours will be different !! ) and in the VMWare ( after you shut down the virtual machine ) go to Settings -> Network adapter -> Advanced and put the HWADDR ( just the 00:0C:29:48:56:52 part and remember yours will be different ) address there.

Another option is to get the current MAC address in the Virtual Machine settings and insert it into /etc/sysconfig/network-scripts/ifcfg-eth0 but I did not try that to see if it works.

Good luck and enjoy your Centos server

Share: