Created
April 16, 2019 12:34
-
-
Save zeekhuge/80ac9acaea2a931a8c2ac792c9cc6879 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## script to fix mac on vbox | |
| ## set up these variables and run the script | |
| VBOX_NAME='MacOS' | |
| RESOLUTION_W=1366 | |
| RESOLUTION_H=768 | |
| COLOR_DEPTH=32 | |
| ## change settings | |
| VBoxManage modifyvm ${VBOX_NAME} --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff | |
| VBoxManage setextradata ${VBOX_NAME} "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" | |
| VBoxManage setextradata ${VBOX_NAME} "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" | |
| VBoxManage setextradata ${VBOX_NAME} "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" | |
| VBoxManage setextradata ${VBOX_NAME} "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" | |
| VBoxManage setextradata ${VBOX_NAME} "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 | |
| VBoxManage setextradata ${VBOX_NAME} VBoxInternal2/EfiGopMode 4 | |
| ## change resolution | |
| VBoxManage controlvm ${VBOX_NAME} setvideomodeint ${RESOLUTION_W} ${RESOLUTION_H} ${COLOR_DEPTH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment