For the past few days I am trying to setup Vagrant for uniform development environment in our company, personall I work on Windows 8.1, iMac, Fedora for development and our servers are running CentOS. It is pain I know.
Last weekend I installed and understood Vagrant on windows 8.1, it was great. I will not get into the details on setup here. You can check the documentation on their website.
Today I cloned my Vagrant box, which I want to duplicate on my fedora machine. So for that I need to install VirtualBox first on Fedora 20. It is not as simple as yum install VirtualBox, it requires some effort. Here are the steps.
Step 1: Add the VirtualBox .repo
-
su -
-
cd /etc/yum.repos.d/
-
wget <a href="http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
-
[/geshifilter-code">http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
-
[/…</a>]
-
-
<strong>Step 2: Update your system</strong>
-
-
[geshifilter-code]
-
sudo yum update
Step 3: Install the required packages
-
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
Step 4: Install VirtualBox
-
sudo yum install VirtualBox-4.3
Step 5: Build modules
-
/etc/init.d/vboxdrv setup
Step 6: Add the user in vboxusers group
-
sudo usermod -a -G vboxusers YOUR_USERNAME
Installation complete. Now I will install Vagrant on Fedora 20. Have fun.