Installing vagrant on centos 7 with virtualbox provider

Installing vagrant on centos 7 with virtualbox provider

This is a short post on Installing vagrant on centos 7.

First, you need to download vagrant – head over to http://www.vagrantup.com/downloads and copy the url tot he current vagrant package in the rpm section (currently https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm)

Installing vagrant on centos 7

You can now install vagrant using rom (or yum)


rpm -i url-from-rpm-section

This will download and install the vagrant rpm from the vagrant site above. You now need to make sure you have a provider (this example uses virtualbox) to do the actual virtualisation

Installing virtualbox as a vagrant provider on centos 7

open your terminal and type the following:


cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

this will add the virtualbox repo to your centos system, you’ll be able to download virtualbox and keep it up to date.

If you dont already have dkms installed, then install it now before you install virtualbox as it will help when updating virtualbox (you wont have to recompile modules if they are built with dkms and your machine will installt he updates faster)


yum install dkms

Find out which virtualbox is the latest version with the following command


yum provides virtualbox

Then copy the last entry (at the bottom) and install that:


yum install VirtualBox-4.3-4.3.28_100309_el7-1

You now need to add the users who will run virtualbox to the virtualbox group


usermod -a -G vboxusers username

vagrant init and vagrant up

You now have vagrant installed, virtualbox installed and users added to the virtualbox group. users can just


 vagrant add  
 vagrant init 
 vagrant up 

like they would normally do :D

http://www.vagrantbox.es has a list of awesome resources that can help :)

Tags for Installing vagrant on centos 7 with virtualbox provider

command group install list machine open sure terminal updates url version