
So vboxadd script can enter your kernel source directory and run make kernelrelease, get the value and compare with your current kernel version. If it's not, please install them to the right folder (e.g. So basically vboxadd script is expecting your kernel sources to be available at the following dir: ls -la /lib/modules/$(uname -r)/buildĬheck if the kernel dir exists (symbolic link points to the existing folder). If you installed them already as instructed above, run this command: $ sudo sh -x /opt/VBoxGuestAdditions-5.0.16/init/vboxadd setup 2>&1 | grep KERN This means either you didn't install kernel sources, or they cannot be found. The headers for the current running kernel were not found. If in /var/log/vboxadd-install.log you've the following error: The most common reason why mounting shared folder doesn't work may related to building Guest Additions module which failed. This assumes that you've already VBoxGuestAdditions installed (as shown above). If above didn't work, here are more sophisticated steps to fix it.


If you can't find it, check by dpkg -l | grep virtualbox. If you can't find it, check by aptitude search virtualbox.ĭebian: sudo apt-get -y install build-essential module-assistant virtualbox-ose-guest-utils Ubuntu: sudo apt-get -y install dkms build-essential linux-headers-$(uname -r) virtualbox-guest-additions-iso Install Guest Additions (this depends on the operating system). CentOS: sudo yum update & sudo yum -y install kernel-headers kernel-devel.RHEL: sudo apt-get update & sudo apt-get install kernel-devel.

Install kernel include headers (required by VBoxLinuxAdditions). This depends on the guest operating system, so here are brief steps: Inside VM, you should install Guest Additions, kernel headers and start the service and double check if kernel extension is running. Maybe you're just missing the kernel header files. vagrant ssh -c "cat /var/log/vboxadd-install.log" If you're using Vagrant (OS X: brew cask install vagrant), run: vagrant plugin install vagrant-vbguest You're using share folders, so you need to install VirtualBox Guest Additions inside your virtual machine to support that feature.
