Install virtualbox guest additions in Fedora 18
Virtualbox guest additions on Fedora
If you are trying out fedora inside virtualbox then you need to install the virtualbox guest additions in order to get better hardware support like proper screen resolution, mouse scroller support and shared clipboard.
Installing virtualbox guest additions on fedora 18 is pretty simple. First prepare the system by installing the following.
Update all packages.
$ sudo yum distro-sync
Install kernel headers and make utilities
Next thing to install is the kernel headers and other utilities needed in order to compile and build virtualbox guest additions
$ yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
Install VirtualBox guest additions
Now click Devices > Install Guest additions in virtualbox to mound the guest addition cd image inside fedora. The disk should get mounted to the following location.
Check the directory contents and it should look something like this
[silver@localhost VBOXADDITIONS_4.2.12_84980]$ ls 32Bit cert VBoxSolarisAdditions.pkg 64Bit OS2 VBoxWindowsAdditions-amd64.exe AUTORUN.INF runasroot.sh VBoxWindowsAdditions.exe autorun.sh VBoxLinuxAdditions.run VBoxWindowsAdditions-x86.exe
We have to run the the linux installer named VBoxLinuxAdditions.run.
[silver@localhost VBOXADDITIONS_4.2.12_84980]$ sudo ./VBoxLinuxAdditions.run
The output should look something like this
[silver@localhost VBOXADDITIONS_4.2.12_84980]$ sudo ./VBoxLinuxAdditions.run [sudo] password for silver: Verifying archive integrity... All good. Uncompressing VirtualBox 4.2.12 Guest Additions for Linux............ VirtualBox Guest Additions installer Removing installed version 4.2.12 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 Building the main Guest Additions module [ OK ] Building the shared folder support module [ OK ] Building the OpenGL support module [ OK ] Doing non-kernel setup of the Guest Additions [ OK ] You should restart your guest to make sure the new modules are actually used 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 ] [silver@localhost VBOXADDITIONS_4.2.12_84980]$
The most important line in the above output is the following which must show OK.
Building the main Guest Additions module [ OK ]
Now virtualbox guest additions shall be compiled and installed. Once the installation completes, restart your system and everything should look better.