Page 1 of 1

VBoxAdditions just wouldn't run on CentOS Guest

Posted: 24. Feb 2012, 21:30
by oontvoo
I'm running CentOS 6.1 (final released) on VirtualBox, and I've been trying for days to set up a shared folder between the guest and host machines.

The typical error is

Code: Select all

"Building the main Guest Additions module     [FAILED] (Look at /var/log/vboxadd-instal.log to find out what went wrong)
The log file essentially says

Code: Select all

Failed to install using DKMS, attempting to isntall without /tmp/vbox.0/Makefile.include.header:94 *** Error: unable to find the sources for your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.
Any idea what might've gone wrong?

Thanks!!!

Re: VBoxAdditions just wouldn't run on CentOS Guest

Posted: 24. Feb 2012, 21:33
by Perryg
You need to add a few extra packages.
This should help Howto: Install Linux Guest Additions
CentOS is rpm based so use the Fedora example. Be sure that Cent is up-to-date as well.