problem with vbox

hi
i have downloaded vbox from its site and installed it.
i created a vm but when i try to start it, i get 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. Please reinstall 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.


and when i try ‘sudo /etc/init.d/vboxdrv setup’, i get:


Stopping VirtualBox kernel modules done
Uninstalling old VirtualBox DKMS kernel modules done
Trying to register the VirtualBox kernel modules using DKMS failed
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules failed
(Look at /var/log/vbox-install.log to find out what went wrong)

and this is /var/log/vbox-install.log:


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

so any help?
thx in advance…

hey,

can you please specify which operating system are you running? version and x86 or x64 arch?
also dump the uname -a command and which version of Vbox did you install, the PUEL ?

thanx and dont worry that’s a very common problem and can be easily fix.

mean wile you need to install the kernel sources, try this:

sudo zypper ref && zypper in kernel-sources
sudo /etc/init.d/vboxdrv restart
sudo /etc/init.d/vboxdrv setup

sry i forgot to say
im using 11.3 x86 with gnome…

uname report:

Linux vahid-laptop.site 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 i686 i686 i386 GNU/Linux

i just downloaded vbox from its site… it’s 3.2.10 and PUEL also…

i tried ‘sudo zypper ref && zypper in kernel-sources’ and it says no kernel-sources was founded…

thx

sudo zypper ref && zypper in kernel-sources
sudo /etc/init.d/vboxdrv restart
sudo /etc/init.d/vboxdrv setup

as far as i know, it’s not “zypper in kernel-sources” but “zypper in kernel-source”, singular.

and then, what’s the point restarting the driver before setup? running setup stops the driver anyway, then uninstalls the present version and tries to register the new one.

also, in openSUSE you can just run “rcvboxdrv setup” instead of /etc/init.d/~


phani.

You might be missing things if you only install the kernel-sources. Start the software installer, or start yast in a terminal window (as root), and install the Linux Kernel Development Pattern. That pulls in all packages needed for kernel development, which is needed to compile the Vbox kernel module. Minds you’d have to run /etc/init.d/vboxdrv setup after a kernel update.

Virtual Box (Sun Version) Install HowTo

Check thru that
You still will get this error:
Trying to register the VirtualBox kernel modules using DKMS failed
(Failed, trying without DKMS)

But if everything is satisfied it should build without DKMS

Please note the kernel headers are now: linux-glibc-devel

hey, thank you for your enlightment. i always like to know when im wrong. im not a programer and i do many things at the same time so sometimes i can miss a carachter, you know im not perfect.

as for the restating the service, i learned that each step in case of a problem, should be taken care each at a time so you can properly understand what is happening. nothing much, just a proceedure iv learn and i like to stick with it, but yes you can always do multiple command combination, thats one of the differences between any linux distro and other OSes.

On Thu, 21 Oct 2010 17:06:02 +0530, Knurpht <Knurpht@no-mx.forums.opensuse.org> wrote:

> You might be missing things if you only install the kernel-sources.
> Start the software installer, or start yast in a terminal window (as
> root), and install the Linux Kernel Development Pattern

i’ve got these packages anyway, but perhaps not the original poster. still, if gcc or such were missing, wouldn’t that throw an error in the terminal?


phani.

On Thu, 21 Oct 2010 17:36:03 +0530, caf4926 <caf4926@no-mx.forums.opensuse.org> wrote:

>
> ‘Virtual Box (Sun Version) Install HowTo’ (http://tinyurl.com/32zwok9)
>
> Check thru that
> You still will get this error:
> -Trying to register the VirtualBox kernel modules using DKMS
> failed
> (Failed, trying without DKMS)-
>
> But if everything is satisfied it should build without DKMS
>
> Please note the kernel headers are now: -linux-glibc-devel-
>
>

seeing on the VirtualBox site that DKMS was recommended i installed it, but trying to use DKMS, the module re-kompile generated a bunch of DKMS related errors. after that it tried to build without DKMS, and generated many more errors. (i think it was building modules for all kernels i have installed, which is quite a few at this time.) in the end, the virtualBox module, with DKMS installed, did not build properly.

only after removing the DKMS package again was i able rebuild & register the virtualBox kernel module. (i still can’t get any vBox guest to run, but that’s probably because i’m using the latest kernel from Kernel:/HEAD, so i’m not complaining about that; still fiddling with various settings, and in the end i may have to use an earlier kernel again.)


phani.

u know, im getting a bit confused now! im not as pro as that u say here
im just installing kernel-source now, using software manager(or whatever name is)…
and about that ‘Linux Kernel Development Pattern’, should i search it in software manager? or install it using zypper?
thx 4 all replies!

Software Manager
View Patterns
Check base-development

i installed kernel-source and all of base-development packages
still same error but ‘/var/log/vbox-install.log’ has changed…
here us the log: Upload Your content
ok, so what next?
modprobe still gives error…
thx 4 all replies again!

Please post result of

rpm -qa | grep kernel
rpm -q make gcc linux-glibc-devel

On Thu, 21 Oct 2010 19:06:02 +0530, thelastblack <thelastblack@no-mx.forums.opensuse.org> wrote:

> i installed kernel-source and all of base-development packages
> still same error but ‘/var/log/vbox-install.log’ has changed…

i had the same error messages you had in the beginning, but compiling the module without the DSMK package installed solved the problem for me, i.e., no errors during vBox driver setup. to me this looks as if your kernel source isn’t the same as your running kernel. can you open a terminal as root and post the output of “ls -l /usr/src/” please?


phani.

oops, caf4926 replied before my message came thru’. he knows a lot more than i do, so follow his instructions first!

I just do this to install the kernel devel pattern. Useful for VBox and fglrx:

zypper in patterns-openSUSE-devel_kernel

Are you sure you downloaded the proper VirtualBox package? Maybe you should uninstall it and use oracles VirtualBox repository to reinstall it from there, to make sure it matches your SuSE version.

http://download.virtualbox.org/virtualbox/rpm/opensuse/11.3/

Or use such a service to do it automatically: automatically recompile kernel modules after kernel update
:wink:

ok thx for all answers:
here is all the results:


vahid-laptop:/etc/rc.d # rpm -qa | grep kernel
kernel-xen-devel-2.6.34.7-0.4.1.i586
kernel-devel-2.6.34.7-0.4.1.noarch
kernel-desktop-2.6.34-12.3.i586
kernel-default-devel-2.6.34.7-0.4.1.i586
kernel-firmware-20100617-2.2.noarch
patterns-openSUSE-devel_kernel-11.3-22.1.i586
kernel-desktop-devel-2.6.34.7-0.4.1.i586
kernel-xen-2.6.34-12.3.i586
kernel-pae-devel-2.6.34.7-0.4.1.i586
kernel-source-2.6.34.7-0.4.1.noarch
vahid-laptop:/etc/rc.d # rpm -q make gcc linux-glibc-devel
make-3.81-135.1.i586
gcc-4.5-4.2.i586
linux-glibc-devel-2.6.32-3.3.noarch
vahid-laptop:/etc/rc.d # ls -l /usr/src/
total 16
lrwxrwxrwx 1 root root 18 2010-10-22 15:17 linux -> linux-2.6.34.7-0.4
drwxr-xr-x 24 root root 4096 2010-10-23 12:10 linux-2.6.34.7-0.4
drwxr-xr-x 3 root root 4096 2010-10-23 12:20 linux-2.6.34.7-0.4-obj
drwxr-xr-x 3 root root 4096 2010-10-23 12:20 linux-obj
drwxr-xr-x 8 root root 4096 2010-07-06 10:13 packages
lrwxrwxrwx 1 root root 32 2010-10-19 20:36 vboxhost-3.2.10 -> …/share/virtualbox/src/vboxhost

and im almost sure i downloaded the right version…
also i checked automatically recompile kernel modules after kernel update
i created ‘modautocompile’ and ‘modautocompile.conf’ in /etc/rc.d and run modautocompile but nothing happened… even no errors, not any texts…

and about download: i downloaded ‘VirtualBox-3.2-3.2.10_66523_openSUSE113-1.i586.rpm’ and i think it’s right version, isn’t it?

Just so you can compare here is my details

kernelcruncher@LENOVO-G550:~> rpm -qa | grep kernel
kernel-desktop-devel-2.6.34.7-0.4.1.x86_64
kernel-source-2.6.34.7-0.4.1.noarch
kernel-desktop-2.6.34.7-0.4.1.x86_64
kernel-devel-2.6.34.7-0.4.1.noarch
kernelcruncher@LENOVO-G550:~> rpm -q make gcc linux-glibc-devel
make-3.81-135.1.x86_64
gcc-4.5-4.2.x86_64
linux-glibc-devel-2.6.32-3.3.noarch

You seem to have a bit of dross hanging around. Which kernel are you actually booting?

Perhaps go back to the beginning. Remove Virtual Box and the follow my install method using the repo.