Page 1 of 1

vboxdrv setup fails

Posted: 13. Jan 2009, 21:42
by remarkosmoc
Hello,

I recently transitioned my laptop from opensolaris to fedora because it had more drivers for my hardware. I installed virtualbox (the link for fedroa9 there isn't a dedicated link for fedora 10). When I try to start a virtual machine it tells me I need to run /etc/init.d/vboxdrv setup

when I run /etc/init.d/vboxdrv.setup it errors out and I get the following error log, any ideas? FYI this is a standard fedora10 install with nothing weird going on, pretty much OOB. I did install DKMS per the installation instructions.

Creating symlink /var/lib/dkms/vboxdrv/2.1.0/source ->
/usr/src/vboxdrv-2.1.0

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.27.5-117.fc10.i686 cannot be found at
/lib/modules/2.6.27.5-117.fc10.i686/build or /lib/modules/2.6.27.5-117.fc10.i686/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:143: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

Posted: 15. Jan 2009, 00:55
by Sasquatch
Install the kernel-devel package. That should give you the ability to build kernel modules.

Posted: 15. Jan 2009, 00:57
by remarkosmoc
Its already installed.

Posted: 16. Jan 2009, 01:43
by remarkosmoc
I found the problem but don't quite know how to fix it.

/lib/modules/2.6.27.5-117.fc10-x86_64/build points to /usr/src/kernels/2.6.27.9-117.fc10.x86_64 however the only thing in the /usr/src/kernels directory is 2.6.27.9-159.fc10.x86_4 (note the difference 9-117 vs 9-159)

I do have the kernel-devel installd. I don't know how to get the appropriate source (with the 9-117).

uname-a confirms that I am running 2.6.27.9-117.fc10.x86_64

Posted: 18. Jan 2009, 19:55
by Sasquatch
Update your system. Make sure that it grabs a new kernel so that they are the same version. Now you need to boot to the new kernel build and the vboxdrv build should go without errors. Use a graphical package manager if possible, so you see what is going on and which package is upgradable.

solved

Posted: 19. Jan 2009, 17:02
by remarkosmoc
Thanks that worked! I don't understand why the default install would reference sources to a kernel that isn't installed. Thats a weakness in the distro, IMO. Upgrading the newest kernel from the repository did work.

Thanks for the help.