Page 1 of 1

Install VBoxdrv on custom kernel

Posted: 15. May 2009, 23:05
by Silvr
So I built a custom kernel and installed it with:

make
make modules
make modules_install install
mv -r 2.6.29.2 /usr/src
ln -s 2.6.29.2 linux

Now I am trying to install a VirtualBox 2.2 and it cannot create the module. It says "the kernel source cannot be found at /lib/modules/2.6.29.2/build or lib/modules/2.6.29.2/source."

I made a new symlink to changing lib/modules/2.6.29.2/build and ~/source to /usr/src/2.6.29.2 but vboxdrv still will not build. It fails with "modprobe vboxdrv failed. please use 'dmesg' to find out why", but my dmesg log does not show anything relating to VBox. Is there something else I am supposed to do? The vbox-install log log shows nothing wrong since I made the symlinks, DKMS installs fine.

Re: Install VBoxdrv on custom kernel

Posted: 16. May 2009, 00:42
by Sasquatch
Google is your friend for this. Keywords are build external module. I got this hit, which might help you. http://lwn.net/Articles/81398/
And here is the google search I used: http://www.google.com/search?hl=en&safe ... tnG=Search
Good luck following some howto's. It can be a pain when you don't know what's going wrong.

Re: Install VBoxdrv on custom kernel

Posted: 16. May 2009, 01:15
by Silvr
Thanks. I googled a lot before posting. The word external is the key.

Re: Install VBoxdrv on custom kernel

Posted: 16. May 2009, 11:36
by Silvr
Ok so I have made and installed a headers package in /usr/src/and have my source in /usr/src/ but I am still getting an error creating the vboxdrv module. The dmesg reports:

vboxdrv: no symbol version for struct_module

Others on the forums were having this same problem, but creating a headers package fixed it.