Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

My Subscriptions

Loading

Knowledge Base

Changing the MAC address of a hosted virtual machine (507)

Last Updated: 9/14/2020Categories: Best PracticesTotal Views: 51891Language:
Chinese (Simplified)Portuguese (European)JapaneseSpanishEnglish

13 like this article

Subscribe to get an email
newsletter with new updates

13 people found this helpful Please provide article feedback:

Details

This article provides steps to change the MAC address of a hosted virtual machine.

For an ESX/ESXi virtual machine, see Setting a static MAC address for a virtual NIC (219).

For a Fusion virtual machine, see Setting a MAC address for a virtual machine in VMware Fusion (1003479).

Solution

When a virtual machine is powered on, the VMware application automatically assigns it a MAC address. The software guarantees that virtual machines are assigned unique MAC addresses within a given host system. However, the software does not guarantee that a given virtual machine is assigned the same MAC address every time it is powered on. In addition, the VMware application does its best, but cannot guarantee, to automatically assign unique MAC addresses for virtual machines running on multiple host systems. A conflict may arise, for example, if the virtual network adapters on different physical servers share the same subnet and are assigned the same MAC address.

Avoiding MAC Address Changes

To avoid changes in the MAC address automatically assigned to a virtual machine, you must not move the virtual machine's configuration file. Moving it to a different host computer or even moving it to a different location on the same host computer changes the MAC address.

You also need to be sure not to change certain settings in the virtual machine's configuration files. If you never edit the configuration file by hand and do not remove the virtual Ethernet adapter, these settings remain untouched. If you do edit the configuration file by hand, be sure not to remove or change the options:

ethernetN.generatedAddress
ethernetN.addressType
ethernetN.generatedAddressOffset
uuid.location
uuid.bios
ethernetN.present

In these options, N is the number of the virtual Ethernet adapter. For example, ethernet0.

Note: To preserve a virtual Ethernet adapter's MAC address, you also must be careful not to remove the adapter. If you remove the adapter, then recreate it, the adapter may be assigned a new MAC address.

Manually Assigning a MAC Address

To guarantee that the same MAC address is assigned to a given virtual machine every time, even if the virtual machine is moved, or to guarantee a unique MAC address for each virtual machine within a networked environment, you can assign the address manually instead of allowing VMware Workstation to assign it automatically.

To assign the same, unique MAC address to any virtual machine manually, use a text editor to remove three lines from the configuration file and add one line. The configuration file has a .vmx extension at the end of the filename. On a Linux host, a virtual machine created with an earlier VMware product may have a configuration file with a .cfg extension.

Open the virtual machine's .vmx configuration file with a text editor. For more information about editing a virtual machine's configuration file (.vmx), see Tips for editing a .vmx file (1714).

Remove the three lines from the configuration file that begin with:

ethernetN.generatedAddress
ethernetN.addressType
ethernetN.generatedAddressOffset

Add a new static MAC address line to the configuration file with help of the following entries:

ethernetN.address = "00:50:56:XX:YY:ZZ"
ethernetN.addressType = “static”

Save the configuration file.

In this example, XX must be a valid hexadecimal number between 00h and 3Fh, and YY and ZZ must be valid hexadecimal numbers between 00h and FFh. VMware Workstation and Fusion virtual machines do not support arbitrary MAC addresses, you must use this format.

As long as you choose a value for XX:YY:ZZ that is unique among your hard-coded addresses, conflicts between the automatically assigned MAC addresses and the manually assigned addresses should never occur.

To change the MAC address to a non-vmware address (in the case of a P2V where software on the PC is licensed against the original MAC address) add these lines to the .vmx:

ethernetN.addressType = “static”
ethernetN.address = “

”

where N is the adapter being changed.

For translated versions of this article, see:

Portuguese: Alterar o endereço MAC de uma máquina virtual hospedada (2016880)

Spanish: Cómo cambiar la dirección MAC de una máquina virtual alojada (2016703)

日本語： ホストされた仮想マシンの MAC アドレスの変更 (2078400)

简体中文： 更改托管虚拟机的 MAC 地址 (2040906)

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)Portuguese (European)JapaneseSpanishEnglish

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Workstation Pro

VMware Workstation Player

VMware Workstation

VMware Server

VMware Player

VMware GSX Server

VMware ACE

Related Versions:

VMware Workstation Pro 14.x (for Windows)

VMware Workstation Pro 14.x (for Linux)

VMware Workstation Pro 12.x (Windows)

VMware Workstation Pro 12.x (Linux)

VMware Workstation Player 14.x (Windows)

VMware Workstation Player 14.x (Linux)

VMware Workstation Player 12.x (Windows)

VMware Workstation Player 12.x (Linux)

VMware Workstation 9.x (Windows)

VMware Workstation 9.x (Linux)

VMware Workstation 8.x (Windows)

VMware Workstation 8.x (Linux)

VMware Workstation 7.x (Windows)

VMware Workstation 7.x (Linux)

VMware Workstation 6.x (Windows)

VMware Workstation 6.x (Linux)

VMware Workstation 11.x (for Windows)

VMware Workstation 11.x (for Linux)

VMware Workstation 10.x (Windows)

VMware Workstation 10.x (Linux)

VMware Player Pro 7.x (Windows)

VMware Player Pro 7.x (Linux)

VMware Player 7.x (Windows)

VMware Player 7.x (Linux)

VMware Player 6.x (Windows)

VMware Player 6.x (Linux)

VMware Player 5.x (Windows)

VMware Player 5.x (Linux)

VMware Player 4.x (Windows)

VMware Player 4.x (Linux)

VMware Player 3.x (Windows )

VMware Player 3.x (Linux)

view all

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant