Setup Vagrant On Mac



Yesterday I had some fun getting Vagrant + boot2docker working on my mac with VMware Fusion. It really wasn't all that hard but some people have had some issues so I'll document my steps. I chose to use VMware Fusion instead of VirtualBox for Vagrant because I don't need 2 products that essentially do the same thing. At the same time, Fusion has reported better consistency with experience and performance time and time again.

Vagrant init bento/ubuntu-16.04 Next, build and start the vagrant hosted VM, and you will install Singularity by sending the entire install script as a command (with the -cargument). You could just as easily shell into the box first with vagrant ssh, and then run. I want to uninstall Vagrant on a mac running El Capitan. The Vagrant docs say: On Mac OS X, remove the /Applications/Vagrant directory and the /usr/bin/vagrant file. Also execute sudo pkgutil -forget com.vagrant.vagrant to have OS X forget that Vagrant was ever installed. Follow along to see how to install VirtalBox and Vagrant on Windows 10. Once you've done thisyou will be up and running and ready to take the rest of the cou. Step 3: Once the.exe program is downloaded, please locate the file and double-click it to start setup. Step 4: Please read Microsoft Sync Framework 2.0 Core Components agreement and click the Accept button to continue.

1. Install Vagrant

  • Go to the Vagrant Website downloads and install the vagrant package. That should have been relatively simple
Setup Vagrant On Mac

2. Create a Vagrant directory

  • I created a Vagrant directory under my Documents folder. /Users/kcoleman/Documents/Vagrant
  • You will use this directory to place vagrant files

3. Buy the vSphere Vagrant Plugin License

  • Yeah, VirtualBox sucks and I would rather pay the $80 convienance fee. So purchase your .lic
  • Place the .lic in the Vagrant folder from step 2
Setup Vagrant On Mac

Setup Vagrant On Mac

Install vagrant on windows

Install Vagrant Mac

Setup Vagrant On Mac

4. Install the Vagrant vSphere Provider and your license

  • Open up the Terminal app on your mac

5. Create a a directory called boot2docker inside of the Vagrant directory

  • the folder structure should be /Users/*yourname*/Documents/Vagrant/boot2docker
Setup Vagrant On Mac

6. Within the terminal, change to your boot2docker directory and run the following init and then vagrant up. We are using mitchellh's repo

Iclipboard

7. Now we can ssh into our boot2docker box from this directory

This is running boot2socker v0.8. The latest is v 1.1.2. But the gist of it hasn't changed. Hopefully mitchellh will update he repo soon to use the latest. ISO Build file says it should be using v1.1.1 but boot2docker v0.8 is loading. I haven't taken the time to explore a fix.