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.

    • http://jadedgeek.com/ jadedgeek

      You don’t have to reboot, simply run › start_udev and restart network services and it’ll bring the interface up

  • Patryk1098

    I have to say, after reading a lot of articles on Linux routing, how to use the ip and route commands, where and how to configure network interfaces, this article is the one that finally resolved my issue. Thanks for writing this up. Knowing I can blow away that file safely and that it was causing the problems really helped.
    Thanks!

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

      You are most welcome.

  • Haseeb

    Thanks buddy. It works for the error “device eth0 does not seem to be present delaying initialization”.

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

      No problem!

Request an article ←