Resolves an issue where the IP, Mac, UUID of a modified machine after cloning a Linux virtual machine failed

Source: Internet
Author: User
Tags uuid

So here's how we fix it:


Remove The kernel ' s networking interface rules file so it can regenerated


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


Restart the VM


# reboot


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-pers Istent-net.rules).


Remove The UUID entry


Save and exit the file


Restart the Networking service


# Service Network Restart


Happy cloning!


Two. Another approach

This is caused by the move of the CentOS system files in the virtual machine (Vmware), resulting in reconfiguration, the MAC address of the NIC has changed, input ifconfig-a, cannot find eth0

·······

Install a CentOS virtual machine, and another copy, boot after the network card does not start normally, error: Device eth0 does not seem to be present,

Delaying initialization


FIX: # Mv/etc/sysconfig/network-scripts/ifcfg-eth0

Sysconfig/network-scripts/ifcfg-eth1


Vim

Sysconfig/network-scripts/ifcfg-eth1


Modify Device= "Eth0"

For device= "Eth1"

Modify the IP address, remove the MAC address (HWADDR), and remove the UUID entry.

Then reboot the boot Nic and try


Resolves an issue where the IP, Mac, UUID of a modified machine after cloning a Linux virtual machine failed

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.