Skip to content

Instantly share code, notes, and snippets.

@TheBojda
Created May 28, 2022 09:30
Show Gist options
  • Save TheBojda/95ef6967a9009ece1331781c77797177 to your computer and use it in GitHub Desktop.
Save TheBojda/95ef6967a9009ece1331781c77797177 to your computer and use it in GitHub Desktop.
VirtualBox settings for installing MacOS Monterey to a VM on Linux
#!/bin/sh
# replace ${VM} with your VM name (ex: MacOSX Monterey)
# replace $RES with your resolution (ex: 1920x1080)
VBoxManage modifyvm "${VM}" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac19,1"
VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-AA95B1DDAB278B95"
VBoxManage setextradata "${VM}" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "${VM}" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
VBoxManage setextradata "${VM}" "VBoxInternal/TM/TSCMode" "RealTSCOffset"
VBoxManage setextradata "${VM}" "VBoxInternal2/EfiGraphicsResolution" "$RES"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment