VBoxMacSetup
Bash Script to Setup VBox MacOS Guest
Install / Use
/learn @hkdb/VBoxMacSetupREADME
VBoxMacSetup v1.2
maintained by: hkdb <hkdb@3df.io><br />
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"
It also executes the following if the host is not on an Intel CPU:
VBoxManage modifyvm "${VM}" --cpu-profile "Intel Core i7-6700K"
RELEASE
v1.2 - Added support for non-Intel hosts based on @jld3103
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?
DEPENDENCIES
- Bash
- Virtualbox 5.x and 6.x
- MacOS High Sierra Final
TESTED ON
- Ubuntu Linux 18.04, 18.10, 19.04
INSTALLATION
Nothing needs to be installed. It's just a script that runs commands for you.
USAGE
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
OVERALL PROCEDURE
- 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
- Voila!
Related Skills
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.5kCommit, push, and open a PR
