Page 1 of 1

vboxdrv problem with virtualbox 2.0.2 in opensuse 11

Posted: 13. Sep 2008, 19:33
by rxnjlm
Hello,

I just installed 2.0.2 after uninstalling 2.0 on opensuse 11 and whenever I try to launch a VM, I get "spawning session" window which hangs and I have to kill the process. After uninstalling 2.0, I removed all hidden directories which could have caused any problems and installed 2.0.2. YAST is saying that the vboxdrv is enabled, but when I launch Virtual Box from the command line, it says that the vboxdrv kernel is not loaded. I tried sudo /etc/init.d/vboxdrv setup, but it failed to compile saying

Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again. Stop.

Virtual Box 2.0 was working fine on the system prior to trying to install 2.0.2.

Any help on how to get Virtual Box up and running again is appreciated.

Posted: 13. Sep 2008, 19:48
by Sasquatch
See if this topic: http://forums.virtualbox.org/viewtopic.php?t=9546 has some help. It's about the GA on OpenSUSE 11, but it's the same idea, kernel headers/sources are needed for the kernel modules.

Have you tried searching with Google too?

Update

Posted: 13. Sep 2008, 23:39
by rxnjlm
I did a little digging around and found that the vboxdrv.ko file is in a directory called

/lib/modules/2.6.25.11-0.1-default/misc

My current LInux kernel is 2.6.25.16-0.1-default.

Could it be that because vboxdrv is not under the current kernel's directory it is not working? If so, how do I fix this?

Posted: 14. Sep 2008, 00:57
by Sasquatch
You could try to copy/symlink to the correct module, but I don't know if it would work (doubt it actually). To get it working properly, you need the kernel source and development packages for your current kernel and build the module using /etc/init.d/vbox setup as root.

Re: Update

Posted: 14. Sep 2008, 00:59
by greenpossum
rxnjlm wrote:I did a little digging around and found that the vboxdrv.ko file is in a directory called

/lib/modules/2.6.25.11-0.1-default/misc

My current LInux kernel is 2.6.25.16-0.1-default.

Could it be that because vboxdrv is not under the current kernel's directory it is not working? If so, how do I fix this?
I suspect you have an older version of the kernel-source package. What does

Code: Select all

rpm -q kernel-source
give? Should be the same as the running kernel. If not, update.

Success

Posted: 14. Sep 2008, 14:31
by rxnjlm
Thank you to greenpossum! The kernel-source package wasn't installed on my system. Once I installed it, I re-installed Virtual Box and everything is running fine.

Thank you once again!