How to Install macOS on a VirtualBox VM

If you would like to try out the Apple macOS on a virtual machine, you can do so for free using Oracle VirtualBox. You just need to download the macOS ISO file online and then install the operating system on your VM. How well it works will depend on which version of the macOS you are using, where you got it and what version of VirtualBox you are running so your results may vary. If you get the iCloud unsupported device error, you may have to use a local account and try and add your Apple ID later.

Here is the information from the video.

Use this command to change to your VirtualBox installation directory.

cd “C:Program FilesOracleVirtualBox”

Replace Your VM Name with the name of your virtual machine and run all of the following commands on your host.

VBoxManage.exe modifyvm “Your VM Name” –cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “MacBookPro11,3”

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Mac-2BD1B31983FE1663”

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc”

VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1

macOS Monterey ISO file download


  1. Thank you for this tutorial, I've made several unsuccessful attempts at installing a macOS VM and your method did the trick. Had some issues along the way but was able to get it worked out.

  2. Hello I really enjoyed the video it helped me a ton! One issue I'm having though is when I get to the install section of MacOS Monterey and I have to pick the disk it says the disk does not have enough space to install. Is there a way to change the disk space? I noticed yours has 53 gb mine only has 35 for some reason

  3. I get to 4:27 in the video and where you cut to the lanaguage selection , I still get the same error from before I made changes in the command prompt as administrator. Running on a 3700x processor. Gave it the exact same specs as your machine, even named it the same thing. Didn't get any error from the command prompt and still stuck. Any suggestions?

  4. Failed to query SMC value from the host (VERR_INVALID_HANDLE).

    Result Code:

    E_FAIL (0x80004005)




    IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

    ……………What should I do?