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!
3 thoughts on “How to install vagrant on ubuntu”