These are simple steps to create and configure a vagrant environment using VirtualBox.
- Install VirtualBox
- Install Vagrant
- (optional) Download target
boximage. - Configure Vagrantfile
- Configure to use the downloaded
boximage - Optionally configure Network and VM Settings
- Optionally configure provisioner (Chef, Puppet, etc.).
- Configure to use the downloaded
- Startup Vagrant and Experiment
You can get faster performance if boxes installed from local directory. You can find a bunch of boxes at http://www.vagrantbox.es/.
This is what I do:
$ BOXURL={Your box URL goes here}
$ mkdir ~boxen
$ cd ~boxen
$ curl -O $BOXURLYou can download and install Virtualbox and Vagrant. Personally, I like to use Homebrew and Cask for installation of these pieces.
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
$ brew doctor
$ brew install caskroom/cask/brew-caskOnce the package management systems are install, I can install the components.
$ sudo brew cask install virtualbox
$ brew cask install vagrant