Is it possible to set a permanent MAC address for a VMWare virtual machine

networkingvirtual-machinesvirtualizationvmware-server

I have some software running on a Windows virtual machine. I am using VMWare as the virtualization technology. The problem comes in with the software's activation / registration. The company who created the software is using the machine's MAC address to uniquely identify the machine during the process.

Whenever I reboot the VM image I get a new dynamic MAC address, which then causes the software to de-activate itself. Is there a way I can setup the VM image so that it will always use the same static MAC address?

Best Answer

Short answer that glosses over the details; VMware will usually provide a unique MAC address for a VM on a network. It will usually provide the same MAC address to a VM so long as the VM is not moved between hosts. In circumstances where this a changing mac address is a problem, you can manually set one.

To manually assign an address, edit the config file for the VM; Remove

ethernetN.generatedAddress
ethernetN.addressType
ethernetN.generatedAddressOffset

and add

ethernetN.address = 00:50:56:XX:YY:ZZ

XX must be a valid hexadecimal number between 00h and 3Fh, and YY and ZZ must be valid hexadecimal numbers between 00h and FFh

This is how it's done with Server, Workstation, and GSX (and I presume Fusion) The basics are the same for ESX, but what mac addresses you can use are different.

For more, search the VMware knowledge base for the articles

"Setting a static MAC address for a virtual NIC", "Changing the MAC Address of a virtual Machine" and other articles with "MAC Address" in their title.

Related Topic