Running macOS in VirtualBox with Ubuntu
Are you a full stack developer that writes code for multiple platforms and need to do testing on macOS? Do you find yourself needing macOS for certain things after having switched to Ubuntu? Need to compile a test app with xcode on your Ubuntu host? Here’s a quick guide on getting the latest macOS High Sierra build running in VirtualBox with an Ubuntu host.
- Download macOS High Sierra 10.13.6 (6.8GB) that’s graciously made available by Techsviewer
- Install VirtualBox 5.x
sudo apt install virtualbox virtualbox-dkms virtualbox-ext-pack virtualbox-guest-additions-iso virtualbox-guest-utils virtualbox-qt
3. Launch VirtualBox
4. Create Virtual Machine w/ existing vmdk that’s in the rar file you downloaded in step 1.
5. Name your VM without spaces. I read somewhere that spaces could potentially cause issues. Mine is named “MacOS”
6. Configure at least 2 cores, 4GB of RAM, and 128MB of graphics with 3D acceleration on
7. Quit VirtualBox
8. Download (Clone, Pull, or Download) the setup script from GitHub
git clone
9. In the terminal, cd to the directory where you downloaded the setup script to and run: