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.
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:
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/~
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.
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.
> 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?
>
> ‘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.)
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!
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!
> 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?
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.
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?