Solve the MAC address problem after Virtual Machine migration

Source: Internet
Author: User

Solve the MAC address problem after migration of virtual machines. After migration of virtual machines under vmware, if the NIC cannot be started, as shown in
Nic startup failed, mainly because of replication. the vmdk file completely copies the Virtual Machine (including the MAC address). Because the MAC of the NIC of the new hardware platform is different from that of the NIC in the system, the NIC cannot be started. Solution: 1. Copy the VM file. vmdk (to prepare for Migration) 2. Create a VM and remove the hard disk from www.2cto.com.
3. Add a hard disk, select an existing virtual disk, and specify the Virtual Machine file. After vmdk is configured, start the virtual machine.

4. Modify the nic mac address assigned to the VM Nic MAC address, enter the following command # vi/etc/sysconfig/network-scripts/ifcfg-eth0 [root @ lnmp-cent6 ~] # Vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = "eth0" HWADDR = "00: 0C: 29: 2f: db: f9 "IPADDR = 10.10.223netmask = 255.255.255.0GATEWAY = 10.10.254nm _ CONTROLLED =" yes "ONBOOT =" yes "~ Www.2cto.com writes the MAC address from the gray MAC address on the right to the ifcfg-eth0 File

5. delete the 70-persistent-net.rules file # rm-rf/etc/udev/rules. d/70-persistent-net.rules6. restart the server # shutdown-r now7. verify whether the NIC can be started # ifconfig # service network restart note: This method is applicable to migration between virtual machines in linux and migration between virtual machines-physical machines. Author ciywind

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.