- Mar 31, 2016
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
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