1. Update Fedora
The first thing to do is to upgrade all packages and make the system uptodate.
$ sudo yum distro-sync 2. Install kernel headers and build tools
VirtualBox guest additions are always compiled so they need necessary build tools and kernel libraries. Install them with the following command.
$ yum -y install kernel-devel kernel-headers dkms gcc gcc-c++ Reboot
After upgrading and installing kernel headers, reboot the system.
3. Compile virtualbox guest additions
Click on Devices > Insert guest additions CD image on the VirtualBox window menu.
The cd image is now available in fedora at /dev/cdrom or /dev/sr0.
Create a directory at home and mount the cd in it.
$ mkdir vboxcd
$ sudo mount /dev/cdrom ~/vboxcd
[sudo] password for silver:
mount: /dev/sr0 is write-protected, mounting read-only
$ ls
32Bit cert VBoxSolarisAdditions.pkg
64Bit OS2 VBoxWindowsAdditions-amd64.exe
AUTORUN.INF runasroot.sh VBoxWindowsAdditions.exe
autorun.sh VBoxLinuxAdditions.run VBoxWindowsAdditions-x86.exe
Next run the VBoxLinuxAdditions.run script. The output should look similar to this
$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.6 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.6 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
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.14 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 ]