The cloned Centos virtual machine starts, but the network card does not start up

created at 11-27-2021 views: 4

error

Vcenter cloned a virtual machine and found that the network card could not be found when it started, as shown below:

> service network restart
Bringing ip loopback interface
Bringing up interface eth0: Device eth0 does not seem to be present, denitialization.

The reason is that the physical MAC and the system MAC are inconsistent.

solution

vim /etc/rc.local
# Join as follows:
>/etc/udev/rules.d/70-persistent-net.rules
# Restart

Or delete the 70-persistent-net.rules`` file, and then restart the system to regenerate it.

created at:11-27-2021
edited at: 11-27-2021: