Skip to content

Instantly share code, notes, and snippets.

@shkpk
Created November 28, 2019 08:00
Show Gist options
  • Save shkpk/611e26f1aea60c7a7240fc0d4ba1b3b4 to your computer and use it in GitHub Desktop.
Save shkpk/611e26f1aea60c7a7240fc0d4ba1b3b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
readonly VM_RES="1680x1050"
readonly NAME="Mac Catalina"
VBoxManage modifyvm "$NAME" --usbxhci on --firmware efi --chipset ich9 --mouse usbtablet --keyboard usb
VBoxManage setextradata "$NAME" "CustomVideoMode1" "${VM_RES}x32"
VBoxManage setextradata "$NAME" VBoxInternal2/EfiGraphicsResolution "$VM_RES"
VBoxManage modifyvm "$NAME" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment