How to install vagrant on ubuntu

Vagrant is a Configuration Management (CM). Development environment made easy use vagrant. To knowledge, vagrant to help for building and deployment. It’s open-source. let’s go! In this post, we are installing vagrant on Ubuntu. Vagrant the essential for DevOps Roles.


  • Install VirtualBox
  • Install vagrant
  • A sudo user

Install vagrant on ubuntu

To update the repository in ubuntu

# apt-get update

Step 1: Installing VirtualBox on Ubuntu

To install Virtualbox Ubuntu 14.04

Open /etc/apt/sources.list file.

# vim /etc/apt/sources.list

Add lines as bellow

deb saucy contrib
deb raring contrib
deb quantal contrib
deb precise contrib
deb lucid contrib non-free
deb wheezy contrib
deb squeeze contrib non-free

Installing Virtualbox 4.3

# wget
# apt-key add oracle_vbox.asc
# apt-get install virtualbox-4.3

For installing VirtualBox ubuntu 16.04

Open /etc/apt/sources.list file.

# vim /etc/apt/sources.list

Append the line in sources.list file as below

deb xenial contrib

To install VirtualBox 5.1 Ubuntu 16.04

 # wget
 # apt-key add oracle_vbox.asc
 # apt-get install virtualbox-5.1

To add sudo user huupv to vboxusers

# usermod -a -G vboxusers huupv

Step 2: To install vagrant ubuntu

# apt-get install vagrant


Thought the article, you can use How to install vagrant on Ubuntu as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!

, ,

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

3 thoughts on “How to install vagrant on ubuntu

Leave a Reply

Your email address will not be published.

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.