Skip to content

Instantly share code, notes, and snippets.

@GamePlayer-8
Created August 29, 2023 15:27
Show Gist options
  • Save GamePlayer-8/899fce8661bf174460690f9b29d71ebb to your computer and use it in GitHub Desktop.
Save GamePlayer-8/899fce8661bf174460690f9b29d71ebb to your computer and use it in GitHub Desktop.
Configure Mac OS X for Virtualbox
#!/bin/sh
VM_NAME="${VM_NAME:-$1}"
VM_NAME="${VM_NAME:-'Ventura'}"
VBoxManage modifyvm "$VM_NAME" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "$VM_NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac19,3"
VBoxManage setextradata "$VM_NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "$VM_NAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "$VM_NAME" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "$VM_NAME" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
VBoxManage modifyvm "$VM_NAME" --cpu-profile "Intel Core i7-2635QM"
VBoxManage setextradata "$VM_NAME" "VBoxInternal/TM/TSCMode" "RealTSCOffset"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment