For 3.1 kernels (certainly if you are building a kernel with 3.1 rc9 sources or later) a patch is required to virtualbox to fix the vboxdrv issue. I can't find the link to the patch now, but fortunately I have a copy and have attached.
I also can't quite remember where the patch is applied, but best guess is /usr/share/virtualbox/src/vboxhost/vboxdrv/
Once you are there, and assuming that you have extracted the patch to your desktop,:
- Code: Select all
patch -Np1 -i ~/Desktop/virtualbox.patch
then re-do /etc/init.d/vboxdrv setup
NOTE. This patch tests against the version number of the kernel, which is likely to change to 3.2, and when it does it will break the patch, though it should be easy to amend and re-apply.
NOTE 2: This is only for vboxdrv failures, and only with 3.1 kernels.