I’m excited to be going back to Madison PHP Conference this year to give a tutorial “Create Your Own Local Development Environments With Vagrant”.

If you are planning on coming to this tutorial there are a few things you’ll want to have pre-installed to make the most of the tutorial.

Operating System Support:

If you want to follow along and run all of the examples you will need to bring a laptop running a current version of Linux or Mac OS. Unfortunately Windows is unable to run Ansible so you will not be able to run any of the Ansible Playbooks.

Note: despite Windows 10 Anniversary updating bringing BASH support to Windows, Ansible is still not yet supported.

Applications Installed:

Getting Started, Initial Downloads, and Set Up:

Install some vagrant base boxes:

Ubuntu 14.04.x

vagrant box add ubuntu/trusty64

PuPHPet Ubuntu 14.04 base

vagrant box add puphpet/ubuntu1404-x64

Laravel Homestead

vagrant box add laravel/homestead

Testing Vagrant:

  • Create a new folder to hold your vagrant test
  • Change directory into that folder
  • Create a new Vagrant environment
  • Start the Vagrant
mkdir test-vagrant
cd test-vagrant
vagrant init ubuntu/trusty64

You should see the following output:

A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

Screenshot:
Screenshot 2016-09-05 11.36.15
Now we can start the vagrant

vagrant up

You should see the following output:

Screenshot 2016-09-05 11.42.17

Once you have similar output to the above you can go a head and destroy the vagrant box to free up system resources. Your output may not exactly match the example. If there are any errors please feel free to leave me a comment below.

Destroy the vagrant machine:
Screenshot 2016-09-05 11.44.49

Thanks for reading, I look forward to seeing you at Madison PHP Conference, if you have any problems or errors as you worked through this please feel free to leave me a comment below.