Vagrant For Magento Development


Using vagrant we can create multiple development environments.

Download and Install Vagrant – Click here and follow the steps

Download and Install Virtual Box – Click here and follow the steps (You can also use VMWare or KVM or Parallels instead of Virtual Box)

Create a directory where you want to place your Vagrant environment

For Example : C:\<my-vagrant-directory>


cd <my-vagrant-directory>

Open the terminal or command prompt and run the following command

If you are using windows machine then you need to add the vagrant’s bin directory to environmental variables

You can see that one file has been created in your vagrant directory. That is “Vagrantfile

Open that file in your text editor and edit the line as follows (Uncomment the lines by removing #):

There are so many boxes where you can choose according to your requirements

You can find the vagrant boxes in the following links :

There are so many vagrant boxes which has pre-installed LAMP stack, I recommend to use scotch box(scotch/box) which has all the softwares you need for Magento development

Then save the Vagrantfile file and run the following command :

For the first time it will take some time because vagrant will download the OS files and install into Virtual Box

To ssh into your vagrant, run the following command :

Bingo, Now you are into your new development environment 🙂

I will write more about this in my next post.

Feel free to leave your comments.


  • mukesh May 16, 2016 Reply

    How to add vagrant’s bin directory to environmental variables?

  • Girish March 18, 2017 Reply

    Nice post.
    Maybe for startup you can also use the below vagrant that is easy to install in virtual box


    • Girish April 23, 2017 Reply

      Thanks for the link Girish, I will check it

Leave a Reply