vboxdrv problem with virtualbox 2.0.2 in opensuse 11

Discussions related to using VirtualBox on Linux hosts.
Post Reply
rxnjlm
Posts: 3
Joined: 13. Sep 2008, 19:12

vboxdrv problem with virtualbox 2.0.2 in opensuse 11

Post 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.
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

Post 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?
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.
rxnjlm
Posts: 3
Joined: 13. Sep 2008, 19:12

Update

Post 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?
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

Post 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.
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.
greenpossum
Volunteer
Posts: 98
Joined: 11. Jul 2008, 08:10

Re: Update

Post 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.
rxnjlm
Posts: 3
Joined: 13. Sep 2008, 19:12

Success

Post 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!
Post Reply