Uninstalling old VirtualBox DKMS kernel modules [ OK ]Building the VirtualBox Guest Additions kernel modules [FAILED]Your system does not seem to be set up to build kernel modules.Look at /var/log/vboxadd-install.log to find out what went wrong. Once you have corrected it, you canrun

When checking the logs :

more /var/log/vboxadd-install.log

Output:

Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again.. Stop.Creating user for the Guest Additions.Creating udev rule for the Guest Additions kernel module.[root@syslog1 ~]#

Answer: To solve this, as root install these packages:

yum install gcc dkms kernel-devel (use rpmfusion) directory

. now try again /etc/init.d/vboxadd setup

/etc/init.d/vboxadd setup

Output

Uninstalling old VirtualBox DKMS kernel modules [ OK ]Building the VirtualBox Guest Additions kernel modulesYour guest system does not seem to have sufficient OpenGL support to enableaccelerated 3D effects (this requires Linux 2.6.27 or later in the guestsystem). This Guest Additions feature will be disabled.

I can confirm that this works. Thank you very much as i spent all night trying to figure this out.

AJ

I got this error: yum install gcc DKMS kernel-devel Loading "installonlyn" plugin Setting up Install Process Setting up repositories No Repositories Available to Set Up Reading repository metadata in from local files Parsing package install arguments Setting up repositories No Repositories Available to Set Up

DKMS: add completed. Failed to install using DKMS, attempting to install without Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop. [root@nchaudhari ~]#