After testing the Instant Recovery of a Linux web server. See my previous post about this Recovery process. The Linux web server has no network connection. I quick look at ifconfig only showed the loopback adapter. So I tried ifup eth0 and run into to following error:
This can simply be fixed by changing the MAC address. Open the Virtual Machine Properties and write down the MAC Address:
open the /etc/sysconfig/network-scripts/ifcfg-eth0 in your favorite editor and change the HWADDR to the new MAC address and save the file.
The final step is to restart networking via /etc/init.d/network restart.
Alternately, you can just remove the HWADDR line from the offending ifcfg-eth* file and restart the network, too. In nearly every case the interfaces will be correct based on the detection order. I do this with my template VMs so there’s one less step at provisioning time.
I tried this on a cloned CentOS-5.5 VPS and it did not work. I also changed the network.addr parameter of /etc/sysconfig/hwconf to resemble the MAC address of VMWare configuration. However, I still get the same error (even after a reboot).
Anyother suggestions?
dung
did you every resolve this? i have the same issue.
Hello, i did exactly the same and it worked. Thankx for the assistance. Cheers!!!
Yes. works under VM with Fedora12. Long pain solved at last!!! I edited from GUI. Before was enough just to unplug network cable and that ruined connection between VM and host. Also always was after hibernate. Now all solved. Great!!!