Clone virtual machine NIC appears Device eth0 does not seem to be present, delaying initialization error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.