[et_pb_section fb_built=”1″ admin_label=”section” _builder_version=”3.0.47″][et_pb_row admin_label=”row” _builder_version=”3.0.48″ background_size=”initial” background_position=”top_left” background_repeat=”repeat”][et_pb_column type=”4_4″ _builder_version=”3.0.47″ parallax=”off” parallax_method=”on”][et_pb_text admin_label=”Text” _builder_version=”3.0.74″ background_size=”initial” background_position=”top_left” background_repeat=”repeat”]
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 to the current vagrant package in the rpm section (at the time of writing the current version is 1.7.2 https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm)
Installing vagrant on centos 7
You can now install vagrant using rpm (or yum)
rpm -i url-from-rpm-section
This will download and install the vagrant rpm from the vagrant site above. Once downloaded and installed, you need to make sure you have a provider to do the actual virtualisation (this example uses virtualbox as the provider as it is freely available).
Installing virtualbox as a vagrant provider on centos 7
open your terminal and type the following to install virtualbox:
cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
This command will add the virtualbox repo to your centos system, once added you will be able to download virtualbox and keep it up to date with the rest of your system.
If you don’t already have dkms installed, then I recommend that you install it now, before you install virtualbox, as doing so will help when updating virtualbox in the future (you won’t have to recompile kernel modules if they are built with dkms initially and your machine will install the updates faster when they are available)
yum install dkms
You can find out which is the latest version of virtualbox with the following command:
yum provides virtualbox
You can then copy the last entry (at the bottom of the list) and install that in your system:
yum install VirtualBox-4.3-4.3.28_100309_el7-1
Once You have virtualbox installed, you now need to add the system 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 now use vagrant as normal on their system
vagrant add
vagrant init
vagrant up
vagrant ssh
vagrant destroy
like they would do day to day :D
http://www.vagrantbox.es has a list of awesome resources that can help :)
You might like Vagrant with nfs and public network
[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]