Linux cannot start network card after VM virtual machine replication

Source: Internet
Author: User
Tags uuid

1. One months ago because I have been developing PHP site, so the Linux thrown away for a long time without touch, in recent days to pick up some of the Linux,

But when I set up VM virtual machine due to the experiment done at home did not finish, copied to the USB flash drive Thinking company then do not imaging, the system is intact boot, but my eth0 nic is not:

Solution, open the/etc/sysconfig/netwerk-script/ifcfg-eth0 (this path I hit the wrong hand to change)

To view the configuration: Consider two points:

A.mac Address Change

B.uuid value

Operation Steps:

1.vim/etc/sysconfig/network-script/ifcfg-eth0 the MAC address line to DD (delete)

But the problem hasn't been resolved. I tried to remove the UUID and remove the UUID but considering the version after CentOS6, there are many cases where this unique identifier is used to find a solution online,

2. Rm-rf/etc/udev/rules.d/70-persistent-net.rules

This file is the network card with the MAC address binding file, so delete the next reboot will be rebuilt to change the file, that is, the network card will be re-established with the MAC address binding relationship.

3.reboot 

After the reboot, we found ifconfig with eth0 inside. 

Linux cannot start network card after VM virtual machine replication

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.