search
top

How To Install VirtualBox 5 on Fedora 21

The latest VirtualBox has been released and available for use! Now it is time to get VirtualBox 5.0 installed on Fedora 21. In this post we will cover installing dependencies needed on Fedora, creating a VirtualBox repository and installing VirtualBox 5.

Preparation

First there are several packages that need to be installed on Fedora 21. You will need dkms, kernel-headers, kernel-devel, gcc.  When you install dkms several dependent packages will be installed. Open a terminal and type:

$ sudo yum -y install dkms kernel-devel kernel-headers

Once the installation has completed it is time to create a VirtualBox repo and install VirtualBox. From a terminal change to the /etc/yum.repos.d directory. Create a file called virtualbox.repo and enter in the following information.

$ cd /etc/yum.repos.d
$ sudo vi virtualbox.repo

Enter in the following information and save the file.

[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc

Next we need to perform a yum update to get the repo to update and then install VirtualBox.

$ sudo yum update

Now that the repositories are updated we can install VirtualBox 5.

$ sudo yum -y install VirtualBox-5.0

The installation will compile the needed kernel modules and dkms and VirtualBox install is completed.

At this point it is a good idea to add the user account you will be using to manage and run VirtualBox to the vboxusers group. From a terminal execute the following.

$ sudo usermod -a -G vboxusers <userid>

Time to fire up VirtualBox and start adding VM’s.

virtualbox5_1

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

top