Resolved the problem of failed IP address, MAC address, and UUID modification after cloning the centos virtual machine.

Source: Internet
Author: User

Solution:

 

So here's how we fix it:

  1. Remove the kernel's networking interface rules file so that it can be regenerated

     

    # rm -f /etc/udev/rules.d/70-persistent-net.rules

     

  2. Restart the VM

     

    # reboot

     

  3. Update your interface configuration file

     

    # vi /etc/sysconfig/network-scripts/ifcfg-eth0 

    Remove the macaddr entry or update it to the new macaddr for the interface (listed in this file:/etc/udev/rules. d/70-persistent-net.rules ).

    Remove the uuid entry

    Save and exit the file

  4. Restart the networking service

     

    # service network restart

     

Happy cloning!

 

2. Another MethodThis is because the file corresponding to the centos system is moved in the Virtual Machine (VMware), and the MAC address of the NIC changes when the configuration is reconfigured. Enter ifconfig-, unable to find eth0 · after installing a centos virtual machine, copy another copy. After the boot, the NIC cannot start properly. The error message is: Device eth0 does not seem to be present, delaying initialization solution: # mv/etc/sysconfig/network-scripts/ifcfg-eth0 sysconfig/network-scripts/ifcfg-eth1 Vim sysconfig/network-scripts/ifcfg-eth1 modify device = "eth0" to device = "eth1" Modify IP address, delete the MAC address (hwaddr) and UUID. Restart the NIC and try again.
Related Article

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.