The operation of the network card after the VM virtual machine Linux is cloned

I. Overview

Please reprint from the source: http://eksliang.iteye.com/blog/2223180

After the Vmware virtual machine performs the cloning operation, it will find that the original eth0 of the cloned host will disappear, and instead there will be a new MAC network card eth1; after restarting the network card, an error will be reported, no device found for connection 'System eth0', specifically The error code is as follows:

Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Error: No suitable device found: no device found for connection ‘ System eth0′.[FAILED]

 

Second, the solution

1) Modify the MAC address of the new network card

After the virtual machine is copied, because the physical address has changed, the VM usually regenerates a MAC address at this time. The specific steps are as follows:

  • Step 1: Determine the new MAC address

  •  Step 2. Modify the MAC address
vim /etc/sysconfig/network-scripts/ifcfg-eth0
#The following HWADDR is to set the MAC address
HWADDR="00:0C:29:AD:81:E4"
2) is to solve the problem of eth1

Delete the /etc/udev/rules.d/70-persistent-net.rules file, this file is deleted, it is automatically generated after restarting the system, you can delete it with confidence.

rm -rf /etc/udev/rules.d/70-persistent-net.rules
3) Restart the system to complete the clone: ​​reboot

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326338651&siteId=291194637