Knowledge BaseMetric InsightsSystem Network"Device eth0 does not seem to be present, delaying initialization" ERROR on VM reboot

"Device eth0 does not seem to be present, delaying initialization" ERROR on VM reboot

This error indicates that the VM can't identify the network adapter.

ISSUE

After rebooting the Metric Insights VM, I am getting a "Device eth0 does not seem to be present, delaying initialization" error. The VM then defaults to 127.0.0.1 (localhost). The network adapter itself is functioning correctly (other servers are connected to it). I can also confirm that the ifcfg-eth0 file is missing in /etc/sysconfig/network-scripts. What is this happening?

RESOLUTION

The reboot probably left the ifcfg-eth0 file in a state of limbo, possibly because a new MAC address was assigned to the network adapter. For example, if you try to recreate the file, you'll get a prompt that the file exists even though it is not visible.

To fix this, delete the networking interface rules from the command line so that they can be regenerated after another reboot:

Delete networking interface rules:
# rm /etc/udev/rules.d/70-persistent-net.rules
Reboot the VM:
# reboot

On reboot, you should see a new MAC address being generated and an IP being assigned to the VM. Confirm the IP by hitting it from a browser; it should take you to the Metric Insights login page.