Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Virtual Box on OpenSUSE

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
neilj
LXF regular


Joined: Sun Oct 23, 2005 2:12 pm
Posts: 106
Location: Kloof,KwaZulu Natal,South Africa

PostPosted: Tue Jun 05, 2012 12:42 pm    Post subject: Virtual Box on OpenSUSE Reply with quote

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.
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1658
Location: Guisborough

PostPosted: Tue Jun 05, 2012 2:31 pm    Post subject: Reply with quote

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

If Ubuntu then the command is

Code:
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.....
Back to top
View user's profile Send private message MSN Messenger
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7602
Location: Midlands, UK

PostPosted: Tue Jun 05, 2012 5:56 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1658
Location: Guisborough

PostPosted: Tue Jun 05, 2012 6:15 pm    Post subject: Reply with quote

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.....
Back to top
View user's profile Send private message MSN Messenger
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Tue Jun 05, 2012 8:56 pm    Post subject: Reply with quote

Is the vboxdrv module loaded?

Code:
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)
Back to top
View user's profile Send private message
neilj
LXF regular


Joined: Sun Oct 23, 2005 2:12 pm
Posts: 106
Location: Kloof,KwaZulu Natal,South Africa

PostPosted: Wed Jun 06, 2012 5:09 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Wed Jun 06, 2012 9:24 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
neilj
LXF regular


Joined: Sun Oct 23, 2005 2:12 pm
Posts: 106
Location: Kloof,KwaZulu Natal,South Africa

PostPosted: Thu Jun 07, 2012 8:36 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Thu Jun 07, 2012 9:32 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
neilj
LXF regular


Joined: Sun Oct 23, 2005 2:12 pm
Posts: 106
Location: Kloof,KwaZulu Natal,South Africa

PostPosted: Thu Jun 07, 2012 10:44 am    Post subject: Reply with quote

The result is 3.1.10-1.9-desktop
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast