maintained by: hkdb <firstname.lastname@example.org>
Bash script to quickly prepare your MacOS High Sierra Virtual HD with full screen resolution.
WHAT DOES IT DO?
This script automates the following commands:
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/DmiSystemVersion" "1.0" 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"
v1.1 - Merged PR Fix, Added Version Tracking, and Fixed README
v1.0 - Initial Release
DEVELOPMENT AND PULL REQUESTS
As of v1.1, I created a develop branch for development or pull requests if it's still needed. Though, I think this is a simple enough script that probably won't require any further development?
- Virtualbox 5.x
- MacOS High Sierra Final
- Ubuntu Linux 18.04
Nothing needs to be installed. It's just a script that runs commands for you.
setup.sh takes 2 arguments which is what you named your VM led by a -v flag and the desired resolution for your VM led by -r. For example, I named mine "MacOS" and my full screen resolution is 1920x1080. Therefore, this is how I run the script:
./setup.sh -v "MacOS" -r 1920x1080
- Download the image file from this Techsviewer post: https://techsviewer.com/install-macos-high-sierra-virtualbox-windows/
- Install VirtualBox (ie. sudo apt install virtualbox, etc)
- Launch Virtualbox
- Create Virtual Machine w/ existing vmdk (ie. with what you downloaded in step 1)
- Name your VM without spaces. I read somewhere that spaces could potentially cause issues. mine is named "MacOS"
- Configure at least 2 cores, 4GB of RAM, and 128MB of graphics with 3D acceleration on.
- Close VirtualBox
- In terminal, run setup.sh -v <whatever you named your vm> -r <desired resolution>
- Launch VirtualBox again
- Play MacOS VM