How to fix eth0 network interface on centos, redhat clone VM

→ Are you a new visitor? Please visit the page guidance for new visitors ←

How to fix eth0 network interface on centos, redhat clone VM

I recentely finished my master degree and I’ve used some virtualization of centos and had to clone two of the virtual machines (VM). The issue I encountered was that the eth0 network interface was not present, I found it quite strange at first, then thought that I was asked if I wish to change the network interface mac address when I cloned the VM. This caused the network interface to not start on boot.

That’s the error you would receive in this case. The fix was quite easy, just have to remove the mac address from the ifcfg-eth0 file and also a 70-persistent-net.rules from the location /etc/udev/rules.d/ and then reboot the VM.

So the steps would be:
1. Remove the 70-persistent-net.rules file:

2. Edit the file ifcfg-eth0 and remove the UID and MACADDR:

Then just reboot the server, and on the next boot, we should have network connection!

  • Wade Giles

    Worked perfectly. In my case, I imported the same VirtualBox appliance twice as 2 separate VM instances.

    • http://www.yourhowto.net/ Raica Bogdan

      Hmm indeed, it can happen in that situation also, I only had to clone my vbox and encountered this. Thanks for mentioning this.

  • Ashley Smoot

    I’ve seen the same issue after RHEL kernel updates. Reinstalling VMware tools and rebooting brought the interface back.

    • http://www.yourhowto.net/ Raica Bogdan

      Thank you for sharing, that I didn’t encounter till now.

Request an article ←