Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Vagrant prerequisites

giovino edited this page Dec 14, 2014 · 5 revisions

Why Vagrant?

  • Vagrant allows you to programmatically spin up a Virtual Machine from a template VM (think .iso) to a configured VM (think post OS installer). Post install being all the things you would have to configure during a distribution setup (networking, users, etc)
  • You can easily share these Vagrant configurations amongst your team
  • You can configure Vagrant to bring up more than one machine in a single "vagrant up" command
  • You can script post install actions (e.g. apt-get install apache2)

Common Vagrant commands

  • vagrant up - starts and provisions the vagrant environment
  • vagrant halt - stops the vagrant machine
  • vagrant status - outputs status of the vagrant machine
  • vagrant global-status - outputs status Vagrant environments for this user
  • vagrant destroy - stops and deletes all traces of the vagrant machine
  • vagrant resume - resume a suspended vagrant machine
  • vagrant suspend - suspends the machine
  • vagrant -h - help

Prerequisites for OS X

  1. Install Virtualbox
  2. Install Vagrant

If you do not have Apple Xcode installed:

  1. Install Git

  2. Place Git in the PATH of your shell

  3. Create/edit your bash_profile

    vim ~/.bash_profile
  4. Add the following:

    PATH=/usr/local/git/bin:$PATH
    export PATH
  5. Reload your bash_profile

    source ~/.bash_profile
Clone this wiki locally