VBoxAdditions just wouldn't run on CentOS Guest

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
oontvoo
Posts: 1
Joined: 24. Feb 2012, 21:23

VBoxAdditions just wouldn't run on CentOS Guest

Post 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!!!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxAdditions just wouldn't run on CentOS Guest

Post 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.
Post Reply