Skip to content

Instantly share code, notes, and snippets.

@olragon
Created October 18, 2016 14:32
Show Gist options
  • Save olragon/457ed89662d142a2a151e81793b248df to your computer and use it in GitHub Desktop.
Save olragon/457ed89662d142a2a151e81793b248df to your computer and use it in GitHub Desktop.
Install Mac OS X El Capitan on PC on VirtualBox on Ubuntu
#!/bin/bash
VM=$1
if [[ -z "$1" ]]; then
echo "Please provide your VM name."
echo " ./fix.sh \"OS X El Capitan Final\""
echo "To list your VM"
echo " VBoxManage list vms"
exit 1;
fi
VBoxManage modifyvm "$VM" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "$VM" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "$VM" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "$VM" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "$VM" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "$VM" "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