All credits for this Vagrant profile go to “jhcook”
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install virtualbox sudo apt-get install vagrant
vagrant init jhcook/macos-sierra
This may take a while as this downloads the full image of an installed MacOS. But don't worry, we only have to do this once.
Thats it! We now have a virtual machine of MacOS. Vagrant and jhcook have made this process a lot easier. Setting up my first virtual machine of MacOS a couple years back did not go this smoothly.
PLEASE NOTE: If you have a slow internet connection when doing vagrant up the download may timeout after sometime, I worked round this by leaving it for a while in a while loop Like so: "while sleep 2; do vagrant up; done"