The cloned virtual machine host cannot access the Internet and restart the network to report device eth0 does not seem to be present, delaying initializ

        Problem: After the virtual machine is completely cloned, it is found that some hosts can access the Internet, but the cloned hosts cannot access the Internet. If the network is restarted, an error will be reported, and the ssh connection cannot be performed, as shown in the figure:



 

 reason:

         This is because in ifcfg-eth0, the MAC address of the cloned host is saved, and a new network card is used after cloning with a new MAC address.

Solution:

    1. Modify according to the picture

vi /etc/sysconfig/network-scripts/ifcfg-eth0

 Modify according to the picture:




 


 2. Restart the system after deleting 70-persistent-net.rules

rm -rf  /etc/udev/rules.d/70-persistent-net.rules
shutdown  -r now

 After the system is started, you can access the Internet and connect via ssh.

       

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326676773&siteId=291194637
Recommended