How to install Vagrant on Ubuntu 16.04




I this post we will see How to install and setup Vagrant on Ubuntu 16.04. Vagrant is an open-source software for building and maintaining portable virtual software development environments. Vagrant is an application which enables us in building consistent development environments with ease using Vagrantfile.

I order to set up vagrant environment on your Ubuntu operating system will need to install Virtual Box . So let us see what steps we need to follow in order to get up and running with vagrant.
Step 1 – Install VirtualBox.

Step 2 – Install Vagrant.

Step 3 – Verify Vagrant version
once vagrant is installed on Ubuntu operating system, we can verify it by following command:

And if you see the following response then vagrant is install perfectly on your system.

Setup Ubuntu 16.04 to be used with Vagrant and Virtualbox

Step 4 Install Ubuntu Box
We can find Vagrant Boxes on the Vagrant Cloud. ubuntu/trusty64 is one of the most popular box (machine), which has nearly 30 million installs. So we will install this box.

ubuntu/trusty64

Run the following command in your terminal.

Output:

Now initialize the vagrant box using the following command.

Output

Finally run the following command to start your box.

Output:

Now connect to you newly created machine via ssh using following command

if the above command works fine then you will see the following output:

If the vagrant ssh command does not work then use the following command to know your ssh config

And use the following ssh command to connect via ssh

Thanks.


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com