How to install Vagrant and virtualise MacOS [UBUNTU 17.04]

All credits for this Vagrant profile go to “jhcook”

  • Firstly lets update our packages:

    sudo apt-get update && sudo apt-get upgrade
  • Now lets install Virtualbox (Used for the emulation) and Vagrant (Used for VM management):

    sudo apt-get install virtualbox
    sudo apt-get install vagrant
  • Now we have our programs installed, lets grab jhcook’s vagrant profile of MacOS:

    vagrant init jhcook/macos-sierra
  • Last step already! I know! Now lets download the virtual machine we set up in the last step:

    vagrant up

    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"

    You May Also Like

    Leave a Reply

    Your email address will not be published. Required fields are marked *