"How to install macOS in VirtualBox"

Running macOS in a VirtualBox VM

(Some details swiped from https://techsviewer.com/install-macos-10-15-catalina-on-virtualbox-on-windows-pc/)

Basic steps:
* Make sure Virtual Box Extension Pack is installed. Necessary (?) for USB setting below.

Then mount the macOS ISO as the ISO image.

VBoxManage modifyvm "Your VM Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,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" "Iloveapple"
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

No clue what these do but they appear to be necessary. I suspect they're Apple anti-piracy settings.


Tags: platform   macos  

Last modified 16 December 2024