Setup local Environment using vagrant


Vagrant is an open source tool for building a complete virtual development environment. Very often, a test environment is required for testing the latest release and new tools. Also, it reduces the time spent in re-building your OS. By default, vagrant uses virtualbox for managing the Virtualization. Vagrant acts as the central configuration for managing/deploying multiple reproducible virtual environments with the same configuration.

Vagrant is a tool that provisions virtual machines in a scripted way, so that the machines can be rolled out to a team of developers, or as nodes of a cluster, with ease.


Create and configure lightweight, reproducible, and portable development environments.



I am having Ubuntu machine so i need the Debian package.

Let’s get it running on your machine:

  1. First, download Vagrant and VirtualBox.
  2. Second, let’s download an image, spin it up and SSH in:

After download double click on download package to install virtual Box.

Screenshot from 2016-05-25 22-17-42

It popup for sudo password.

or install using terminal access.

#dpkg -i  virtualbox-5.0_5.0.20-106931-Ubuntu-xenial_i386.deb

and also install vagrant

Screenshot from 2016-05-25 22-34-46

or install from terminal

#dpkg -i vagrant_1.8.1_i686.deb

check the version

#vagrant -v 

#vagrant version

Screenshot from 2016-05-25 23-44-27

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.

Get the image that you want to install.

These standard templates are called base boxes,

 $ vagrant box add {title} {url}
 $ vagrant init {title}
 $ vagrant up
#mkdir vagrant 

#cd vagrant

#vagrant box add ubuntu14.04

Screenshot from 2016-05-25 22-38-32

check for image that you want,i would be downloading ubuntu 14.04.

Screenshot from 2016-05-25 23-55-07

# vagrant init ubuntu14.04

Screenshot from 2016-05-26 00-10-41

#vagrant up

Screenshot from 2016-05-26 00-12-05Screenshot from 2016-05-26 00-13-29.png

Vagrantfiles. This allows you to setup your box on init: installing packages, modifying configuration, moving code around.

#vagrant ssh

Screenshot from 2016-05-26 00-14-53.png

Screenshot from 2016-05-26 00-16-53



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s