Virtual Box on OpenSUSE

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Virtual Box on OpenSUSE

Postby neilj » Tue Jun 05, 2012 11:42 am

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. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

I have DKMS installed and I ran /etc/init.d/vboxdrv setup.

Any help in getting a virtual machine running would be appreciated.
neilj
LXF regular
 
Posts: 106
Joined: Sun Oct 23, 2005 1:12 pm
Location: Kloof,KwaZulu Natal,South Africa

Postby Ram » Tue Jun 05, 2012 1:31 pm

You don't say which distro your using...

If Ubuntu then the command is

Code: Select all
sudo /etc/init.d/vboxdrv setup


Enter your password when requested.

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
User avatar
Ram
LXF regular
 
Posts: 1676
Joined: Thu Apr 07, 2005 9:44 pm
Location: Guisborough

Postby Rhakios » Tue Jun 05, 2012 4:56 pm

Ram wrote:You don't say which distro your using...


It helps if you read the post title.

Personally, I've always had problems running Virtual Box on Linux, but then I have VMWare Workstation, so it's not a critical problem.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

Postby Ram » Tue Jun 05, 2012 5:15 pm

Rhakios wrote:
Ram wrote:You don't say which distro your using...


It helps if you read the post title.

Personally, I've always had problems running Virtual Box on Linux, but then I have VMWare Workstation, so it's not a critical problem.


Urm... I do need some new glasses, well reading specs.

I've had no problem running VB on OS11 ( I know, I need to update my server )

nelij did you run the command as root ?

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
User avatar
Ram
LXF regular
 
Posts: 1676
Joined: Thu Apr 07, 2005 9:44 pm
Location: Guisborough

Postby nelz » Tue Jun 05, 2012 7:56 pm

Is the vboxdrv module loaded?

Code: Select all
sudo lsmod | grep vbox


will show all the vbox modules that are loaded.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8494
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby neilj » Wed Jun 06, 2012 4:09 am

develop:~ # /etc/init.d/vboxdrv setup
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
Stopping VirtualBox kernel modules done
Uninstalling old VirtualBox DKMS kernel modules done
Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 3.1.10-1.9-desktop cannot be found at
/lib/modules/3.1.10-1.9-desktop/build or /lib/modules/3.1.10-1.9-desktop/source.
failed
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules failed
(Look at /var/log/vbox-install.log to find out what went wrong)

This is the output of vbox-install.log

Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.16

------------------------------
Deleting module version: 4.1.16
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.1.16/source ->
/usr/src/vboxhost-4.1.16

DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

sudo lsmod | grep vbox
showed a empty screen.
neilj
LXF regular
 
Posts: 106
Joined: Sun Oct 23, 2005 1:12 pm
Location: Kloof,KwaZulu Natal,South Africa

Postby nelz » Wed Jun 06, 2012 8:24 am

It's trying to build modules to match your kernel but can't find the kernel sources. Install the kernel source package that exactly matches the version of your kernel.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8494
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby neilj » Thu Jun 07, 2012 7:36 am

nelz wrote:It's trying to build modules to match your kernel but can't find the kernel sources. Install the kernel source package that exactly matches the version of your kernel.

How do I get the correct source package. How do I find out my kernel version. I thought I had the latest from the Linuxformat DVD
neilj
LXF regular
 
Posts: 106
Joined: Sun Oct 23, 2005 1:12 pm
Location: Kloof,KwaZulu Natal,South Africa

Postby nelz » Thu Jun 07, 2012 8:32 am

You can get the kernel version by running uname -r. The package is usually called either linux-source or kernel-source, it varies between distros.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8494
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby neilj » Thu Jun 07, 2012 9:44 am

The result is 3.1.10-1.9-desktop
neilj
LXF regular
 
Posts: 106
Joined: Sun Oct 23, 2005 1:12 pm
Location: Kloof,KwaZulu Natal,South Africa


Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest