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.
Install VBoxdrv on custom kernel
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Install VBoxdrv on custom kernel
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.
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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
Re: Install VBoxdrv on custom kernel
Thanks. I googled a lot before posting. The word external is the key.
Re: Install VBoxdrv on custom kernel
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.
vboxdrv: no symbol version for struct_module
Others on the forums were having this same problem, but creating a headers package fixed it.