Wednesday, November 16, 2011

Install VirtualBox on Fedora 16 Host

This installation procedure can be applied to both Fedora 15 and Fedora 16. If you had follow my post before and confident with my script, you can scroll down to the bottom of the post and download the script. The script will automatically download, configure and install VirtualBox.

First, you need to download the repository file from:

Then you need to move the file "virtualbox.repo" to the folder /etc/yum.repos.d/. In the terminal, navigate to the location where you kept the file and use the command:
$sudo mv virtualbox.repo /etc/yum.repos.d/

Then you need to install dkms as follows:
$sudo yum install dkms

To install the latest version of VirtualBox use the command:
$sudo yum install virtualbox-4.1

If you prefer the older version of VirtualBox just change the version number such as:
$sudo yum install virtualbox-3.2
$sudo yum install virtualbox-3.1
$sudo yum install virtualbox-3.0
$sudo yum install virtualbox-2.2
$sudo yum install virtualbox-2.1

Automation Script
I've created an automation script that perform the previous steps and install the latest version of VirtualBox. You can download this script FC16-vbox-install-noarch. If you prefer to install the older version, you need to modify the script.

Please remember to change the script to execution mode:
$chmod +x FC16-vbox-install-noarch

To sun the script use the command:
$sudo ./FC16-vbox-install-noarch

*** End ***


  1. I tried to install as per your instructions. It didn't work. Said no package to install. I ran your script and that worked but I get an error when I run it:
    WARNING: The vboxdrv kernel module is not loaded. Either there is no module
    available for the current kernel (3.2.6-3.fc16.i686) or it failed to
    load. Please recompile the kernel module and install it by

    sudo /etc/init.d/vboxdrv setup

    You will not be able to start VMs until this problem is fixed.
    Qt WARNING: QGtkStyle was unable to detect the current GTK+ theme.

    It fails when I run that script. Did you run into thLinux adrenaline 3.2.6-3.fc16.i686 #1 SMP Mon Feb 13 20:52:22 UTC 2012 i686 i686 i386 GNU/Linuxis? I am running fedora 16

    1. Recompile the kernel module $sudo /etc/init.d/vboxdrv setup and reboot your system.

      If the problem still exists please consult the forum at


Note: Only a member of this blog may post a comment.