A few days ago I was P2V’ing some servers for a customer. The servers had application license bound to the MAC address of the NIC adapter so I had to change the auto-generated MAC address to a static one.
Follow these steps to change the MAC address from auto-generated to static.
- First, remove the VM from the vCenter Server inventory.
- Open the datastore containing the VM and download the .vmx file. Optionally, make a back-up copy of this file for safe keeping.
- Open the .vmx file (I use Notepad++) and modify the following entries:
- Change the ethernet0.addressType to static: ethernet0.addressType = “static”
- Add the following line: ethernet0.checkMACAddress = “FALSE”
- Change the ethernet0.generatedAddress line to: ethernet0.Address = “<00:AA:BB:CC:DD:EE>” (enter the old MAC address here)
- You should end up with something similar to this:
- Next, save the .vmx file and upload it back to the datastore. Overwrite the existing file.
- Add the VM back to the vCenter Server inventory and power on the VM.
- Done 🙂
You can verify the MAC address in the Windows VM by typing: C:\>ipconfig /all from the command prompt.
Be the first to comment