Vagrant is used to create and configure lightweight, reproducible, and portable development environments. Download from Pick the package that matches your system.

Once installed you can open your favorite console window and type

vagrant --version

and you should see some output similar to

Vagrant 1.7.3

Connect to Host

In the default setup, you should be able to reach your host through your vm default gateway, generally

Setup Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # please see the online documentation at
  config.vm.define "website" do |website| = "trusty64"
    website.vm.provision :shell, :path => ""
    website.vm.synced_folder "./", "/sites"
    website.vm.box_url = "" :forwarded_port, guest: 80, host: 7081 :forwarded_port, guest: 22, host: 7024 "private_network", ip: ""

To bring up this new virtual machine, in the same folder as your Vagrantfile, open a command line and run

vagrant up

To delete the virtual machine run

vagrant destroy -f

To rerun the bootstrap script on a running vm run

vagrant provision

To reload the vm config options from the Vagrant file on a runnint vm

vagrant reload

To shutdown a vm run

vagrant halt

This will bring up the virtual machine and run your bootstrap file.