Error Reason
cloned Linux system running on new machine, the physical address of the new server NIC has changed. And/etc/udev/rules.d/70-persistent-net.rules This file determines the network card and the MAC address of the binding between the information, the cloned Nic Mac has changed, so that the system does not think the network device exists, the network can not start normally. The other one is the/etc/sysconfig/network-scripts/ifcfg-eth0 inside the MAC address is also old information.
about/etc/udev/rules.d/70-persistent-net.rules This file, the system will automatically monitor the change when it is started, and then written by/lib/udev/write_net_rules to/ Etc/udev/rules.d/70-persistent-net.rules A new configuration section, the serial number of the network card is incremented sequentially (for example, the original is eth0, then modify the first generation into a eth1, again modified to generate a eth2 ... ), and the value of its attr{address} is the corresponding MAC address of the current network card.
Workaround
1. Edit the/etc/sysconfig/network-scripts/ifcfg-eth0 configuration file, Remove or modify the previous line of MAC addresses in the Ifcfg-eth0 configuration file. In addition, the cloned server's IP setting is static IP, either modified to a different IP address or set to dynamic IP, restart the network card service
2. Find/etc/udev/rules.d/70-persistent-net.rules Delete, Modify Ifcfg-eth0 Delete or note the configuration of MAC address, restart the machine, the system will automatically generate a 70-persistent-net.rules file. If you do not modify Ifcfg-eth0, the network card detected in this newly generated file will start from eth1. This file is bound to the network card and MAC address, changed the network card after the MAC address has changed so can not start normally, or directly edit the configuration file inside the network card and MAC address modified to correspond, but this much trouble, directly delete the restart, it will automatically generate a new file .
Clone virtual machine NIC appears Device eth0 does not seem to be present, delaying initialization error