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.

Requirements

  • 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 http://download.virtualbox.org/virtualbox/debian saucy contrib
deb http://download.virtualbox.org/virtualbox/debian raring contrib
deb http://download.virtualbox.org/virtualbox/debian quantal contrib
deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free

Installing Virtualbox 4.3

# wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
# 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 http://download.virtualbox.org/virtualbox/debian xenial contrib

To install VirtualBox 5.1 Ubuntu 16.04

 # wget https://www.virtualbox.org/download/oracle_vbox_2016.asc
 # 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

Conclusion

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 DevopsRoles.com 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.