WebDevelopment using vagrant

Posted marzo 21st, 2012 in Blog, Web Development by Gastón Acosta Ramas

if you’re working on various web projects, and some of them are based in different technologies, and/or using different frameworks, it’s difficult to have one development environment, and keep it tidy, clean and working.

In my case, i’ve some projects under NginX others under Apache2, others in different architectures, and i’ve to test some projects in different SO.

well, here i’ll show you how i used vagrant as a solution for this problem.

vagrant uses VirtualBox headless to provide you, an easy to use/handle VM.


  1. download vagrant from here.
  2. add your boxes (base vms.) by default you can download ubuntu base box, but here, you have a list of Vagrant boxes you can add.
  3. usefull commands you should know.

in my case i have /home/gargrag/projects/, and inside one folder per project with a vagrant box .

editing Vagrantfile you could  forward ports to your phisical vm, add shared folders and setup many other things like chef provisioning.

for example you can forward 3306 to 3306, 80 to 8080 and whatever you need.


happy develop!.