Quote
fuliang@fuliang-VirtualBox:~$ sudo /etc/init.d/vboxadd setup
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
In Building VirtualBox Guest Additions kernel modules when the lack of kernal header files,
use the following command to install:
Quote
sudo apt-get install dkms build-essential linux-headers-$(uname -r)
In fact, build-essential linux-headers already up to date, but the lack dkms (Dynamic Kernel Module Support), when there is a new kernal installation time, it allows kernal device drivers automatically rebuild.
For details, see: http://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support
after another
Quote
sudo /etc/init.d/vboxadd setup
success:
Quote
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used