Analysis and Solution of Linux Nic failure caused by cloning virtual machines

Source: Internet
Author: User


Cloning a virtual machine causes Linux to fail to start the NIC Analysis and Solution 1 problem 1 it is common to describe cloning a virtual machine in VMware. It can be used directly for cloning a virtual machine in Winows as a client. The network cannot be started after the client is cloned from a Linux virtual machine. When you run the service network start command, the following error occurs: device eth0 does not seem to be present www.2cto.com 2 cause analysis using the clone function of Vmware, A new virtual machine is configured with a different MAC address from the original Virtual Machine Nic. For a Linux system such as CentOS, the MAC address of the NIC during running is recorded in the/etc/udev/rules. d/70-persistent-net.rules file. This record is also saved in the cloned new system. When the new system is started, because vmware has configured different MAC addresses for it, the system will regard the NIC of the new MAC address as eth1 when scanning the hardware, in addition, it is added to the above files. At this time, the/etc/sysconfig/network-scripts/ifcfg-eth0 in the configuration file records the original MAC address, and this MAC address does not exist in the new system, so it cannot be started. Www.2cto.com 3 solution in the new system, delete the eth0 line corresponding to the old MAC recorded in the rules file, and change the eth1 name corresponding to the new MAC to eth0. Then change the hdaddr value in the ifcfg-eth0 file to the new MAC address. In this way, rules and ifcfg-eth0 correspond to each other (the eth0 in rules corresponds to the ifcfg-eth0 file name, the mac in rules corresponds to the hdaddr in the ifcfg-eth0 file. In this case, you need to restart the system and everything will be OK.
 

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.