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.


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:

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.

Enter in the following information and save the file.

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

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

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.

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


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.