Creating a macOS Mojave Virtual Machine

Dghammett
New Contributor II

I am trying to create a VM of Mojave. I have the installer file from the App Store but it seems to be way more difficult than I think it should be. I've used VM's for windows machines but I've never done it for macOS on a Mac. All of the "tutorials" I've seen have been for putting macOS VMs on Windows machines which doesn't help me.

Based on what I've seen on Jamf, I feel like I am making this a little more difficult than it should be.

What are some better methods of Virtualizing macOS on a Mac?

(Also, I am using VirtualBox)

11 REPLIES 11

sdagley
Esteemed Contributor II

@Dghammett Personally I use VMware Fusion Pro for virtualizing macOS, but VirtualBox will also work. One issue you may be running into is that creating a VM using the Install macOS...app might not work when the installer app is located in the Applications folder. Try copying it into your user directory and then using it as the source for a VM (I haven't used VirtualBox in several years so I can't describe the exact process)

JustCallMeAJ
New Contributor III

We use Parallels, instead of Virtual Box, and it allows you to create a vm from the recovery partition. Just wondered if Virtual Box had a similar feature ?

Dghammett
New Contributor II

@sdagley Unfortunately, VirtualBox requires a DMG file or something similar to boot the VM. Is there any way to put the installer package in to a bootable DMG? also, if there are any other methods of doing this I am open to suggestions.

Dghammett
New Contributor II

@JustCallMeAJ if there is a feature for that on VirtualBox, I haven't seen it. Unfortunately, Parallels is a word we don't really use a lot in our IT department because of how many issues we had with it so we're trying to stay clear of that.

sdagley
Esteemed Contributor II

@Dghammett This might be useful: https://github.com/AlexanderWillner/runMacOSinVirtualBox

You might also consider getting VMware Fusion Pro. I know they offer a pretty good educational discount and it's a much more polished tool than VirtualBox.

kendalljjohnson
Contributor II

This is the method I use for VM's, specifically being able to use DEP as well:

http://www.modtitan.com/2018/11/fall-spring-and-testing-vms.html

There should be a JNUC session video posted about it but it may not be posted yet.

seann
Contributor

I use esxi/vcenter running on the only officially supported mac hw (the garbage can mac pro). Works pretty well.

You need to change some hw options - set the serial number to a 12 digit number, hw.model to what the underlying hardware is, and boot firmware should be EFI. You'll also need to install vmware tools for optimal performance.

Please chime in with anything I may have missed.

erict
New Contributor

This is what I did for VMWare Fusion. VMWare Fusion was worth the purchase for me to be able to virtualize mac on mac easier.

If I remember correctly I found a .vmdk or similar file compatible with VirtualBox within the contents of my vfuse output, it still might be worth it for you.

  1. Use your installer with AutoDMG https://github.com/MagerValp/AutoDMG
  2. Use that AutoDMG installer with VFuse to prep for VMWare Fusion

https://www.rderewianko.com/how-to-create-a-vm-thatll-work-with-dep-on-vmware-fusion/

donmontalvo
Esteemed Contributor III

@seann wrote:

You'll also need to install vmware tools for optimal performance.

Curious how you're doing that...

Re: VMware Tools: Failed - The operation is not allowed in the current state.

[EDIT: Fixed...had to download the darwin.* files from VMware and install on ESXi...now can trigger install/reinstall of VMware Tools on ESXi hosted virtual machines through VMware Fusion 11 Pro.]

--
https://donmontalvo.com

seann
Contributor

@donmontalvo im still running vcenter v6.0, so i guess i havent seen that problem, good to know the fix though

Stormes
New Contributor

This resource was great to get a Mojave instance up in VirtualBox. Even though it says it is for windows, it will work for mac. https://techsviewer.com/install-macos-10-14-mojave-virtualbox-windows/.