Skip to content

Instantly share code, notes, and snippets.

@seccomiro
Created March 15, 2019 12:03
Show Gist options
  • Save seccomiro/a07136f5b2b82f6792eb241b961f640e to your computer and use it in GitHub Desktop.
Save seccomiro/a07136f5b2b82f6792eb241b961f640e to your computer and use it in GitHub Desktop.
SH file to configure a virtual machine named "macOS" on VirtualBox (Linux)
#!/bin/bash
VBoxManage modifyvm "macOS" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "macOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "macOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "macOS" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "macOS" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
VBoxManage setextradata "macOS" VBoxInternal2/EfiGraphicsResolution 1920x1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment