Edit the configuration file: # vi/etc/sysconfig/network-scripts/ifcfg-eth0 change ONBOOT = no to yes exit save #: wq restart Nic #/etc/init. d/networkrestartvm VM clone. the MAC and UUID of the system will be repeated, leading to the following error if the IP address cannot be obtained: dev
Edit the configuration file:
# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Change ONBOOT = no to yes
Exit save
#: Wq
Restart Nic
#/Etc/init. d/network restart
Vmvm clone. the MAC and UUID of the system are duplicated, leading to the failure to obtain the IP address.
Error: device eth0 does not seem to be present, delaying initialization
File to be modified
1,
Vi/etc/sysconfig/network-scripts/Ifcfg-eth0
The ifcfg-eth0 configuration file saves the previous MAC address, the line is deleted in the restart Nic
2,
/Etc/udev/rules. d/70-persistent-net.rules delete and restart the machine
Because this file is bound to the NIC and mac address, the MAC address changes after the NIC is changed, so it cannot be started normally, you can also directly edit this configuration file to replace the NIC and mac address in it. However, if you delete and restart the configuration file, it will automatically generate one.