Features | Documentation | Knowledge Base | Discussion Forums
Maintaining and Changing the MAC Address of a Virtual Machine
When a virtual machine is powered on, VMware Workstation automatically assigns each of its virtual network adapters an Ethernet MAC address. MAC stands for media access control. A MAC address is the unique address assigned to each Ethernet network device.
The software guarantees that virtual machines are assigned unique MAC addresses within a given host system. In most cases, the virtual machine is assigned the same MAC address every time it is powered on, so long as the virtual machine is not moved (the path and filename for the virtual machine's configuration file must remain the same) and no changes are made to certain settings in the configuration file.
Open a web browser and navigate to the Hazard Leopards website (see Resources). MacOS should now be installed in VirtualBox. Any time you want to use it, simply launch VirtualBox, and start your virtual machine. When you're done, you can either close VirtualBox or shut down through your macOS virtual machine. If you want to continue dabbling in virtual machines, here's how to convert VM files between Virtualbox and VMWare.
Creating a mac Virtual Machine on Windows You'll want to create a virtual machine, and this is really easy. You'll open up VirtualBox and click New. You'll want to have the following parameters selected or entered before clicking Next. The final eight bits of the MAC address are set to a hash value based on the name of the virtual machine's configuration file. For example, if a machine's IP address was 192.34.14.81 (or in hex, 0xc0220e51) and the configuration file was hashed to the value of 95, the MAC address would have the following value: 00:05:69:0e:51:95. How to Find a MAC Address in VMware and Hyper-V. There might be a time when your network team asks you to check on a MAC address coming from your virtualization infrastructure this could be for a number of reasons. Or you have the MAC address of a virtual machine and have no idea which virtual machine the MAC address belongs to. If your environment is small it shouldn't be too hard to do.
In addition, VMware Workstation does its best, but cannot guarantee, to automatically assign unique MAC addresses for virtual machines running on multiple host systems.
Avoiding MAC 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 following options:
ethernet[n].generatedAddress
ethernet[n].addressType
ethernet[n].generatedAddressOffset
uuid.location
uuid.bios
ethernet[n].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 receive a different MAC address.
Manually Assigning a MAC Address
If you want to guarantee that the same MAC address is assigned to a given virtual machine every time, even if the virtual machine is moved, or if you want 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.
Remove the three lines that begin with the following from the configuration file:
ethernet[n].generatedAddress
ethernet[n].addressType
ethernet[n].generatedAddressOffset
In these options, [n] is the number of the virtual Ethernet adapter — for example ethernet0.
Add the following line to the configuration file:
ethernet[n].address = 00:50:56:XX:YY:ZZ
In this line, XX must be a valid hexadecimal number between 00h and 3Fh, and YY and ZZ must be valid hexadecimal numbers between 00h and FFh. Because VMware Workstation virtual machines do not support arbitrary MAC addresses, you must use the above format.
So long as you choose a value for XX:YY:ZZ that is unique among your hard-coded addresses (where XX is a valid hexadecimal number between 00h and 3Fh, and YY and ZZ are valid hexadecimal numbers between 00h and FFh), conflicts between the automatically assigned MAC addresses and the manually assigned addresses should never occur.
25 March 2017, 13:58
Recently the folks behind the useful but expensive Parallels Desktop virtualization app released Parallels Desktop Lite, which is available in the Mac App Store. Although it requires an in-app purchase if you want to install Windows as a virtual machine, Parallels Desktop Lite is entirely free of charge if you just want to install Linux or macOS as a virtual machine. It's also quick and easy to use – a far cry from other methods up until now that have been complicated, time-consuming and of dubious legality.
Here are the steps required to create a macOS virtual machine using Parallels Desktop Lite.
- Open the Mac App Store on your Mac and search for Parallels Desktop Lite. Click to 'buy' it and install it (it's free).
- Remaining in the Mac App Store, search for the version of macOS that is installed on your Mac. For example, if this is Sierra then search for that. Click to Download it, if it isn't already downloaded. Note that once the download finishes the macOS installer will automatically start, but you don't need this and can simply click the Quit menu option.
- Open Parallels Desktop Lite and choose the free use option. Its label tells you that this merely lets you install Linux. For some reason this doesn't mention macOS, but using Parallels Desktop Lite to install macOS is possible – and if you read the App Store description you'll see it's mentioned there.
- Next, click the right-hand option in the New Virtual Machine window – 'Install Windows or Another OS from a DVD or Image File' – and click Continue.
- macOS will appear in the list, so simply click Continue to carry on.
- You'll be told a bootable disk image file will need to be created, which is fine – this will happen automatically. Just click the Continue button. The default save location for the image file is OK, so just click Select in the File Open/Save dialog box that appears.
- Once creation of the disk image has finished, you'll be prompted to give the new virtual machine a name, and choose a location to save it. Once done, click Continue.
- Your new virtual machine will boot, and installation will begin as if you're booting a new Mac. Select to install macOS from the recovery menu when it appears, and ensure the power is attached if you're using a portable Mac, otherwise installation cannot continue. Note that there was a weird bug on my MacBook Pro that meant the screen was stretched in an odd way, but resizing it slightly by clicking and dragging the edge fixed this.
Once installation has finished, you can simply click the red close button at the top left of the virtual machine window to suspend your virtualized macOS. Each time you start Parallels Desktop Lite you'll be able to click the large play button to unsuspend the macOS virtual machine.
For what it's worth, creating a macOS/OS X virtual machine in this way is entirely legal. The macOS/OS X End-User License Agreement (EULA) provides explicit permission: '… you are granted a limited, non-transferable, non-exclusive license… (iii) to install, use and run up to two (2) additional copies or instances of the Apple Software within virtual operating system environments on each Mac Computer you own or control that is already running the Apple Software, for purposes of: (a) software development; (b) testing during software development; (c) using macOS Server; or (d) personal, non-commercial use.'
Leave a comment..
Why would you call Parallels Desktop 'expensive'? With Parallels (OR VM Ware), you get fast and reliable windows machines on your Mac for less than $100.-
Get rid of the idea that everything should be for free today!
— EfficientBizz · Mar 26, 12:21 AM · #
How far back can you go with Mac OS versions with this method? Can you do 10.4 for example?
— Scott Siegling · Mar 26, 04:51 AM · #
Scott you can theoretically install many older versions of macOS/OS X but the problem is that the Mac App Store won't let you download older versions. The way around this is to create a macOS/OS X virtual machine as described above, and then USETHAT to open Mac App Store and download the older versions of OS X. For some reason Apple doesn't bother checking if you're using a virtual machine to download them. Then you can copy them off the virtual machine and use them to create virtual machines on your Mac.
— Keir Thomas · Mar 26, 08:33 AM · #
How about installing a more recent version of MacOS than the one you are using? I have Yosemite on my Early 2011 macBook Pro and I would llike to see if Sierra is not too slow to use before upgrading.
— YvesD · Mar 26, 09:46 AM · #
YvesD, yes that would work fine. But you don't get anywhere near native performance in a virtual machine, so your test wouldn't be conclusive.
— Keir Thomas · Mar 26, 10:08 AM · #
I think Parallels is expensive, too. I like how they often have 80 percent off sales on it. The idea is to get you to buy it and then upgrade when the expensive new edition comes out.
we don't experct it to be free — just affordable and reasonable in price. It isn't.
— Steve · Mar 26, 10:44 AM · # Free copy of mac os x.
Once you create a mac vm, is there a way to run that vm in windows via a different virtual machine manager?
— Sirpingalot · Mar 26, 04:05 PM · #
Hi!
Is it possible to install Sierra in a Virtual Machine on a mid-2007 iMac?
— Roger WORROD · Mar 27, 03:34 PM · #
Is there a decent resource for downloading older disk images of macOS, to be used in this fashion?
For instance, I'd like to be able to test older versions of Safari in VMs.
— Brad Bice · Apr 4, 07:03 AM · #
Hi Brad, there's nowhere online that I know about, or at least nowhere legal (you might find them on BitTorrent websites, for example).
How To Set Up A Virtual Machine
However even old OS X downloads are available under the Purchased tab of the Mac App Store. For example, I have most versions of OS X doing back to Lion listed there. As mentioned you can download them and then just cancel the download.
If you can't download them because the App Store won't let you then, again as mentioned above, you can download them within a virtual machine.
— Keir Thomas · Apr 4, 08:19 AM · #
How To Get A Mac Virtual Machines
@Roger Worrod. I am running macOS sierra 10.12.4 on a MBP late 2008 with a little help (no, a lot of help) from dosdude1. the laptop runs fine, but I installed parallels desktop lite (PDL) to run W10, because I had used the trial version of parallel desktop to run W10, with no problem. PDL refused to start because my hardware did not meet with its specifications. Apparently, it checks the hardware type and year (mine is MBP4,1; 2008) and decides whether to run or not.
— Ola · Apr 12, 01:08 AM · #
Hi Ola
Yes, that's correct – unlike the desktop version of Parallels, which I believe has its own virtualisation engine as well as the option to use Intel's built-in virtualisation technology, the version of Parallels discussed above – Parallels Desktop Lite – can only use the built-in Intel virtualisation. Although this has been around since 2005 in selected Intel chips I'm not sure when support arrived in Intel Macs. Obviously your model from 2008 isn't one of those supported.
— Keir Thomas · Apr 12, 01:36 AM · #
Apple Virtual Machine
I can't believe you'd go to all the trouble of writing so detailed an article on using an app (Parallels Lite) that won't do Windows, which is probably the most likely need for virtualization, when there is a mature, stable product that will do everything all the other apps do, is written by a highly reputable company (Oracle) and is absolutely free?
I am referring, of course, to Virtualbox, which I have used for many years to provide me with a copy of Windows so I can run the one or two apps that simply don't exist on the OS X platform, such as the outdated program that our condo's gate uses to manage our owners (via a 1200 baud dialup modem no less!). Even with something as exotic (?) as a USB dialup modem, Virtualbox worked flawlessly.
I can't recommend it highly enough.
— Michael · Apr 15, 02:47 PM · #
I see all my other OS installers in the purchased section of the mac app store going all the way back to mountain lion. The only one not available is sierra but you can download this way
https://support.apple.com/en-us/HT208202
— Greg · Jan 18, 12:51 PM · #
◀︎ Kill all logging in macOS Sierra – and (maybe) save battery life
Charge your iPhone without the chime or buzz ▶︎