Skip to content

Instantly share code, notes, and snippets.

@dospuntocero
Last active February 23, 2020 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dospuntocero/1cb03d178ec1936f7dd771e306400c60 to your computer and use it in GitHub Desktop.
Save dospuntocero/1cb03d178ec1936f7dd771e306400c60 to your computer and use it in GitHub Desktop.
Running MacOS on Debian/Ubuntu/Pop_OS!

If you want to experiment with a MacOS system and use GNU/Linux on your machines, then it’s actually quite simple to setup a virtual instance of MacOS on VirtualBox. Instead of looking for a Hackintosh image, I tried using a Vagrant image and was able to boot into MacOS within minutes.

  1. Prerequisites

    Install VirtualBox from VirtualBox’s download page Install additional dependencies: sudo apt-get install virtualbox-guest-utils virtualbox-guest-x11 virtualbox-guest-dkms

    Setup Vagrant by downloading the appropriate Vagrant DEB package from Vagrant’s download page

  2. Meat

    Setup Vagrant image. In a shell, do the following:

mkdir vagrant cd vagrant mkdir macos cd macos vagrant init jhcook/macos-sierra

Start the image!
vagrant up

Open VirtualBox and select macos_default_xxxxx VM and choose Show and it will bring up the GUI.
Start the VM from VirtualBox in future.
Default username and password is vagrant 

to fix the error:

"WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed. 4.3.10_Ubuntur93012"

run these lines before running vagrant up

sudo dpkg-reconfigure virtualbox-dkms
sudo dpkg-reconfigure virtualbox
sudo modprobe vboxdrv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment