Skip to content

Instantly share code, notes, and snippets.

@DenisFrezzato
Last active March 9, 2024 22:25
Show Gist options
  • Save DenisFrezzato/4c1099d543af156c4a7928ec52b18540 to your computer and use it in GitHub Desktop.
Save DenisFrezzato/4c1099d543af156c4a7928ec52b18540 to your computer and use it in GitHub Desktop.
Configuration script for a Mac OS X VirtualBox virtual machine.
# The first parameter is the name of the virtual machine.
# @see https://medium.com/@twister.mr/installing-macos-to-virtualbox-1fcc5cf22801
# @see https://techsviewer.com/how-to-install-mac-os-x-el-capitan-on-pc-on-virtualbox/
VBoxManage modifyvm "$1" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "$1" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "$1" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "$1" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "$1" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "$1" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
# The second parameter is the graphic resolution.
# Valid values are: 640×480, 800×600, 1280×1024, 1440×900, 1900×1200.
VBoxManage setextradata "Mac OS X 10.13" "VBoxInternal2/EfiGraphicsResolution" "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment