Oracle VirtualBox: Installing Guest Additions in Fedora 18 (and all others)

Unfortunately you cannot just install VirtualBox Guest Additions  in a fresh Fedora 18 install, as it will require a few additional packages to be installed and a few minutes checking on the logs to identify any possible further issues.

While the Guest Additions are not required to use a CLI-based Virtual Machine,¬† they are essential if you’re using it as a Desktop/Workstation OS (over Windows in this example).

Moving on, here’s the procedure to properly install VirtualBox Guest Additions in Fedora 18.
(This procedure may or may not work for other distros using the same package manager and for other versions of Fedora)

  1. Open a new console window, and type the following commands, one per line (I’ll explain what they do below):

    yum -y update kernel
    yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
    yum -y update

    The commands above will authenticate you as root (su), update your system’s Kernel install the required packages for VirtualBox Guest Additions to work properly.
    Just as a preventative measure, I recommend running “yum update” afterwards, just to ensure you’re up to date on everything else (assuming that this is just a fresh install of Fedora).

  2. In the VirtualBox menu bar, open the “Devices” menu and select “Install Guest Additions”.

    VirtualBox 4.2.6

    VirtualBox Install Guest Additions

  3. Just browse your DVD Drive contents using your file explorer and run from there (it will ask you to re-authenticate as root).

The output should be similar to this:

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.6 Guest Additions for Linux..........

VirtualBox Guest Additions installer
Removing installed version 4.2.6 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules [ OK ]
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org Server 1.13 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]
Press Return to close this window…


Let the script finish, reboot your Virtual Machine and you’re all set.
Note: I have used VirtualBox 4.2.6 and Fedora 18 (3.7.2-204) in this tutorial.

Leave a Reply