VMware ESXI5.5 Virtual machine Change MAC address

Source: Internet
Author: User
Tags dell r710

Last week in the inventory and collation of server information, found a last year on-line temporary server (POS check system) is also running on the PC. It seems that the company is not going to change the new server, in order to prevent unintended plans to migrate to the VMware virtual machine. The existing vsphere environment can use less resources, and then intends to replace the previous year's A8 server (the OA system has been replaced, but the original data should be retained for more than 3 years for inquiry. Less than half of the hardware resource usage) reload into a vsphere environment, and then migrate the POS system to the A8 server. Implementation steps:

First, P2V migration A8 system to vCenter6.5 (ESXi host for 5.5,ibmx3650m2 compatibility issues are not recommended upgrade), the migration process is relatively smooth, due to the need to modify the configuration and use file-level data migration, in the case of more files, the speed is relatively slow;

Second, stop the original A8 system, plug the dongle into the ESXi host, edit the virtual machine settings, add the host USB device devices, and select the identified dongle. Start the migrated virtual machine and install VMware tools.

Third, after restarting the A8 service can not start, after the check found that the dongle is bound to the MAC address of the network card, when the migration did not modify the MAC address, resulting in MAC address changes after loading the dongle times wrong.

To modify the virtual machine MAC address as the original physical MAC address, the workaround:

1. Close the VM virtual machine and remove the virtual machine from the list;

2. Open the ESXi host SSH service, log in to the ESXi host using putty, and go to the virtual machine directory as follows:

# Cd/vmfs/volumes/datastorename/vmfoldername

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9A/54/wKiom1lUc_rBY0taAAAxytdQOsM339.jpg "title=" Screenshot3898.jpg "alt=" Wkiom1luc_rby0taaaaxytdqosm339.jpg "/>

3. Back up the original vmname.vmx file and modify the. vmx file

# CP VMNAME.VMX Vmname.vmx.old

# VI VMNAME.VMX Modify or add the following:

Ethernetn.checkmacaddress = "false"
Ethernetn.addresstype = "Static"
ethernetn.address = "XX:XX:XX:XX:XX:XX"

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9A/55/wKioL1lUd4axJCdLAADCINrs1bM327.jpg "title=" Screenshot3899.jpg "alt=" Wkiol1lud4axjcdlaadcinrs1bm327.jpg "/>

Where XX:XX:XX:XX:XX:XX is the new MAC address of the virtual machine. Change N in ETHERNETN to the network adapter value. For example:
Network Adapter 1-ethernet0
Network Adapter 2-Ethernet1

Attention:

When modifying the MAC address, you can also modify the network connection in the edit virtual machine settings, and specify the MAC address as manual and enter a new MAC address to save. Such as:

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9A/55/wKioL1lUggiQ9tIeAAAoXt82Q3s291.jpg "title=" Screenshot3902.jpg "alt=" Wkiol1luggiq9tieaaaoxt82q3s291.jpg "/>

However, when the modification is complete, the virtual machine will be started with an error: Invalid Ethernet address

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9A/55/wKiom1lUexeBkE94AAAhxIg1zIw144.jpg "title=" Screenshot3896.jpg "alt=" Wkiom1luexebke94aaahxig1ziw144.jpg "/>

You need to check if ethernetn.checkmacaddress = "false" is set, and whether the virtual network card type (Adapter type) is "Vmxnet3". If the E1000 type, you can remove and then re-add the network card and select the network card type of "Vmxnet 3". Otherwise, the above error will be reported, even if the. vmx file is modified.

Initially did not notice the network card type problem, the test modification several times cannot turn on.

4. Locate the virtual machine VMX file in the storage and register the virtual machine

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9A/55/wKioL1lUeWWjafZsAABQnJLhFI8781.jpg "title=" Screenshot3900.jpg "alt=" Wkiol1luewwjafzsaabqnjlhfi8781.jpg "/>

5, start the virtual machine.

Reference: Failed to turn on virtual machine power after migrating to VMware VCenter Server 5.x with error: The specified MAC address is invalid (2102096)

Re-install the original A8 server for ESXI6.0 (Dell R710 compatibility up to 6.0), and add vCenter6.5. Online migration A8 System back to the original server.

Five, P2V migration POS system to the original A8 server, eliminate the PC.

VMware ESXI5.5 Virtual machine Change MAC address

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.