nordvpn

How to install Vagrant on Centos 7

Install Vagrant on Centos 7

 

install vagrant on centos 7

Vagrant is computer software that creates and configures virtual development environments. It can be seen as a higher-level wrapper around virtualization software such as VirtualBox, VMware, KVM and Linux Containers (LXC), and around configuration management software such as Ansible, Chef, Salt, and Puppet.

Vagrant was originally tied to VirtualBox, but version 1.1 added support for other virtualization software such as VMware and KVM, and for server environments like Amazon EC2. Vagrant is written in Ruby, but can be used in projects written in other programming languages such as PHP, Python, Java, C# and JavaScript.

Since version 1.6, Vagrant natively supports Docker containers, which in some cases can serve as a substitute for a fully virtualized operating system.

Read Also: How to create virtual machine in virtualbox?

Update your system

Firstly we need to update our system use following command:

yum -y update

After updating your system we will install prerequisites of vagrant.

Prerequisites for Vagrant

The prerequisite is you need to install Virtualbox before working on Vagrant because Vagrant uses Virtualbox to install virtual machines. So, now we will install Virtual Box using yum or you can check put my previous post on How to install Virtualbox 5

You might also like: How to install vagrant on Ubuntu 16.04

Install VirtualBox 5

Now we will install Virtualbox use following command to install virtualbox

cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
yum update -y
yum install binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
yum install virtualbox-5.0

Install Vagrant

Finally we will install Vagrant on Centos go to http://www.vagrantup.com/downloads to download the latest version of the vagrant or use following Command to install Vagrant 1.8.1 which is latest at the time of this post.

wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.rpm

then use the following command to install rpm vagrant package

yum localinstall vagrant_1.8.1_x86_64.rpm

Now you have successfully installed vagrant version on centos 7.

You can go to http://www.vagrantbox.es/ here you will find a lot of stuff related to vagrant.

If you got any problem installing vagrant feel free to comment below..

Read Also: How to install vagrant on Ubuntu 16.04

Leave a Reply

Your email address will not be published.


*



The reCAPTCHA verification period has expired. Please reload the page.

48-Hour Flash Sale! Courses from just $10.99