Shared folders in CentOS VM


I’m trying to get shared folders working in the SciDB-R CentOS VM.
Once the VBoxGuestAdditions.iso image is mounted, VirtualBox attempts a build.

This fails because:
Your kernel headers for kernel 2.6.32-279.el6.x86_64 cannot be found at
/lib/modules/2.6.32-279.el6.x86_64/build or /lib/modules/2.6.32-279.el6.x86_64/source

Is there an easy way to add the source files or should I just build a virtual image from scratch if I want to use shared folders?



Did you try running (as root):

yum install kernel-headers.x86_64

from inside the VM? I think that might be all you need.