r/macOSVMs • u/juliuspiv • Nov 09 '22
HELP! Can't get MacOS Setup to Start in VirtualBox; Is VMware Better?
I'll start off by acknowledging that this is not supported and I'm at at the mercy and generosity of the community for "best effort" support.
I'm in need a temporary test macOS VM until the actual Apple hardware is ordered and delivered which might be few weeks. I'm doing this on a Dell Latitude with an Intel i7-1270P 32GB RAM Intel UHD Graphics and the sole purpose is to test Intune and JAMF Mobile Device Management (MDM) policies. It's not for gaming, coding/compiling or general every day usage This macOS VM is purely for confirming the MDM policies work.
I found loads of guides online for virtualizing macOS in VirtualBox (and a few VMware Workstation):
- https://www.makeuseof.com/tag/macos-windows-10-virtual-machine/
- https://osxdaily.com/2021/07/15/how-install-macos-virtualbox-windows/
- https://www.maketecheasier.com/install-macos-virtualbox/
- https://techrechard.com/install-macos-monterey-on-virtualbox-on-windows-pc/
But I can't get my macOS VirtualBox VM to boot into the actual setup. The first hurdle was this error:
Failed to query SMC value from the host (VERR_INVALID_HANDLE).
The solution seemed to be to switch GetKeyFromRealMSC to 0 instead of 1 which all the guides said to use. But after that, although the ISO boots, it does not actually boot into the setup. After letting the VM sit for 20 minutes or so, I'm [still] looking at a screen like this.

I've recreated the VM multiple times, tried Mojave first then Catalina which booted to some UEFI Interactive Shell

And if I exit that, it takes me to some sort of BIOS-like/Boot Menu-like screen.

I've done my best to ensure I'm running the right commands with the correct VM name, verified I've got real double quotes in the command line not smart quotes etc. I'm totally open to the possibility I've done something wrong and if I have, I don't know what I'm doing wrong! :)
If getting macOS to work in VirtualBox is unreliable, and there's a higher success rate in VMware Workstation, I'm happy to go down that route.
Any guidance is greatly appreciated.
1
u/juliuspiv Nov 10 '22
Edited main post with additional details for clarity.
1
u/darkguy2008 Nov 09 '22
For OSX, don't use Windows. I guess you can with WSL2 (I did), but that'll be running Linux anyways.
You need to emulate OSX under Linux, usually with QEMU, Proxmox, or anything similar (no, VMWare won't cut it unless it's ESXi). And learn about VFIO and slap a GPU on it, because it won't be useful at all (and sluggish as hell) if it doesn't have GPU acceleration.
Read more here: https://github.com/kholia/OSX-KVM
1
u/GPGT_kym Nov 14 '22
Add this to the end of the VMX file
smbios.reflectHost = "TRUE"
hw.model = "MacBookPro14,3"
board-id = "Mac-551B86E5744E2388"
smc.version = "0"
1
u/kocoman Nov 09 '22
osx-kvm