VirtualBox Kernel Driver not installed

Hey all

So when I open virtualbox OSE and tried to run a vm i get this error

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

So i tried doing what it said and I got this error when i tried to run /etc/init.d/vboxdrv setup (as root)

Stopping VirtualBox kernel module                                    done
Recompiling VirtualBox kernel module, NOT. It has been packaged.Recompiling VirtualBox netflt kernel module, NOT. It has been packaged.              done
Starting VirtualBox kernel module                                    failed
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)

Then i ran dmesg and there was a ton of stuff that seemed to be unreleated so i ran dmesg -c to clear it. then i ran the vboxdrv this again then checked dmesg again expecting there to be nothing but the vboxdrv stuff but it was still blank.
I really dont know what to do at this point I tried uninstalling and reinstalling but that makes no difference

  1. Find an OSE version that matches the running kernel version (I don’t know how closely they keep up to date with kernel updates, there may be a lag), or

  2. Abandon OSE and use the PUEL version from virtualbox.org. If you search the forum you will find a howto for adding this repo and instructions on how to make sure you have the dependencies to build the driver.

Ok so I install the no opensource edition and I got the same problem and when I tried to run /etc/init.d/vboxsetup i get the same error. so I checked the logs and it said

Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.

Where do I specify that and what to. I’m running OpenSuse 11.2 x86_64 on an IBM Intellistation A Pro. (If Thats matters)

Virtual Box (Sun Version) Install HowTo - openSUSE Forums

Instead of downloading the RPM, you can also add the Sun Virtualbox repo (not the SUSE OSE repo!) and then use zypper or YaST to install the RPM following this howto:

http://forums.opensuse.org/applications/433011-how-upgrade-latest-sun-virtualbox-cli-method.html

Oh and delete the OSE version first, apparently it can interfere with the PUEL version.

Ok so i tried what you said and downloaded that repo file and put it where it said to and refreshed sypper virtualbox and the ran zypper up -r virtualbox and it said “nothing to do” then i ran service vboxdrv setup and got the same error i always get when i try to do that.

Stopping VirtualBox kernel module                                    done
Recompiling VirtualBox kernel module                                 failed
  (Look at /var/log/vbox-install.log to find out what went wrong)

Heres the log:

Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.

So do you have the kernel-source package installed for your running kernel?? Also need gcc

Yes I think I am i used to run virtualbox fine so I must have had it at one point. but if it got deleted some how where can I get it.

-Thanks
~Jay Anderson~