VirutalBox error - Kernel driver not installed (rc=-1908)

I did an upgrade of OpenSUSE using

zypper up

. After a while, I tried turning on my W7 VM from a saved snapshot and I got this error.


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

'/sbin/rcvboxdrv 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.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 

Running

/sbin/rcboxdrv setup

in terminal(as root) returns

-bash: /sbin/rcvboxdrv: No such file or directory

How do I solve this issue? This VM is vital for my daily activities.

Hi, and welcome to the Forums!
Please show the output of


# zypper se -iv virtualbox

in a terminal with superuser (root) rights.
Maybe you don’t have the right virtualbox-host-kmp-default package installed (if you have the OpenSUSE virtualbox) or the new kernel module has not yet been built if you have the Oracle VirtualBox-5.0.
Booting an older kernel (Advanced Options at the GRUB menu) might help in both cases.

This is the output:


Retrieving repository 'multimedia:libs' metadata ...............................[done]
Building repository 'multimedia:libs' cache ....................................[done]
Retrieving repository 'openSUSE-42.1-Update' metadata ..........................[done]
Building repository 'openSUSE-42.1-Update' cache ...............................[done]
Loading repository data...
Reading installed packages...

S | Name                         | Type    | Version                | Arch   | Reposit
ory                                       
--+------------------------------+---------+------------------------+--------+--------
-----------------------------------------
i | virtualbox                   | package | 5.0.24-25.1            | x86_64 | Online 
updates for openSUSE Leap:42.1 (standard)
    name: virtualbox
i | virtualbox                   | package | 5.0.24-25.1            | x86_64 | openSUS
E-42.1-Update                             
    name: virtualbox
i | virtualbox                   | package | 5.0.24-25.1            | x86_64 | (System
 Packages)                                
    name: virtualbox
i | virtualbox-guest-kmp-default | package | 5.0.24_k4.1.27_27-25.1 | x86_64 | Online 
updates for openSUSE Leap:42.1 (standard)
    name: virtualbox-guest-kmp-default
i | virtualbox-guest-kmp-default | package | 5.0.24_k4.1.27_27-25.1 | x86_64 | openSUS
E-42.1-Update                             
    name: virtualbox-guest-kmp-default
i | virtualbox-guest-kmp-default | package | 5.0.24_k4.1.27_27-25.1 | x86_64 | (System
 Packages)                                
    name: virtualbox-guest-kmp-default
i | virtualbox-guest-tools       | package | 5.0.24-25.1            | x86_64 | Online 
updates for openSUSE Leap:42.1 (standard)
    name: virtualbox-guest-tools
i | virtualbox-guest-tools       | package | 5.0.24-25.1            | x86_64 | openSUS
E-42.1-Update                             
    name: virtualbox-guest-tools
i | virtualbox-guest-tools       | package | 5.0.24-25.1            | x86_64 | (System
 Packages)                                
    name: virtualbox-guest-tools
i | virtualbox-host-kmp-default  | package | 5.0.24_k4.1.27_27-25.1 | x86_64 | Online 
updates for openSUSE Leap:42.1 (standard)
    name: virtualbox-host-kmp-default
i | virtualbox-host-kmp-default  | package | 5.0.24_k4.1.27_27-25.1 | x86_64 | openSUS
E-42.1-Update                             
    name: virtualbox-host-kmp-default
i | virtualbox-host-kmp-default  | package | 5.0.24_k4.1.27_27-25.1 | x86_64 | (System
 Packages)                                
    name: virtualbox-host-kmp-default
i | virtualbox-qt                | package | 5.0.24-25.1            | x86_64 | Online 
updates for openSUSE Leap:42.1 (standard)
    name: virtualbox-qt
i | virtualbox-qt                | package | 5.0.24-25.1            | x86_64 | openSUS
E-42.1-Update                             
    name: virtualbox-qt
i | virtualbox-qt                | package | 5.0.24-25.1            | x86_64 | (System
 Packages)                                
    name: virtualbox-qt


Assuming I manage to get it working after booting from an older kernel, how do I go about this problem when updating my kernel?

Booting an older kernel is a workaround until you fix everything, since apparently “This VM is vital for my daily activities”.

Try to uninstall virtualbox-guest-kmp-default (you do not need it on the HOST system), then reboot.

Please also post result of


zypper lr -d

since apparently you have two copies of an update repository enabled.
There should also be another thread with a similar problem in the last few weeks, but I can’t remember exactly right now.

Output:

#  | Alias                               | Name                                             | Enabled | GPG Check | Refresh | Priority | Type   | URI                                           
                                        | Service                                                                                                                                                
---+-------------------------------------+--------------------------------------------------+---------+-----------+---------+----------+--------+-----------------------------------------------
----------------------------------------+--------                                                                                                                                                
 1 | google-chrome                       | google-chrome                                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x
86_64                                   |                                                                                                                                                        
 2 | http-download.opensuse.org-21e1eaec | server:database                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/serv
er:/database/openSUSE_Leap_42.1/        |                                                                                                                                                        
 3 | http-download.opensuse.org-2491c1e3 | Kernel:stable                                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Kern
el:/stable/standard/                    |                                                                                                                                                        
 4 | http-download.opensuse.org-2aee2a8f | Printing                                         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Prin
ting/openSUSE_Leap_42.1/                |                                                                                                                                                        
 5 | http-download.opensuse.org-5e67923f | home:auxsvr                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home
:/auxsvr/openSUSE_Leap_42.1/            |                                                                                                                                                        
 6 | http-download.opensuse.org-6c588ac4 | multimedia:libs                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mult
imedia:/libs/openSUSE_Leap_42.1/        |         
 7 | http-download.opensuse.org-8189982b | multimedia:apps                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mult
imedia:/apps/openSUSE_Leap_42.1/        |         
 8 | http-download.opensuse.org-8bfc30d1 | mozilla:Factory                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mozi
lla:/Factory/openSUSE_Leap_42.1/        |         
 9 | http-download.opensuse.org-bc7337aa | home:sbrabec                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home
:/sbrabec/openSUSE_Leap_42.1/           |         
10 | http-download.opensuse.org-c282278a | X11:XOrg                                         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11:
/XOrg/openSUSE_Leap_42.1/               |         
11 | http-download.opensuse.org-f64d0355 | home:alteratio:Common                            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home
:/alteratio:/Common/openSUSE_Leap_42.1/ |         
12 | http-download.opensuse.org-fa6cf747 | server:monitoring                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/serv
er:/monitoring/openSUSE_Leap_42.1/      |         
13 | http-ftp.uni-erlangen.de-571d12f1   | Packman Repository                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.uni-erlangen.de/pub/mirrors/packman
/suse/openSUSE_Leap_42.1                |         
14 | openSUSE_Leap_42.1_Update           | Online updates for openSUSE Leap:42.1 (standard) | Yes     | (r ) Yes  | No      |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/
oss/                                    |         
15 | packman                             | packman                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse
/openSUSE_Leap_42.1/                    |         
16 | repo-debug                          | openSUSE-leap/42.1-Debug                         | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distributio
n/leap/42.1/repo/oss/                   |         
17 | repo-debug-update                   | openSUSE-leap/42.1-Update-Debug                  | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/leap
/42.1/                                  |         
18 | repo-debug-update-non-oss           | openSUSE-leap/42.1-Update-Debug-Non-Oss          | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/leap
/42.1-non-oss/                          |         
19 | repo-non-oss                        | openSUSE-leap/42.1-Non-Oss                       | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap
/42.1/repo/non-oss/                     |         
20 | repo-oss                            | openSUSE-leap/42.1-Oss                           | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap
/42.1/repo/oss/                         |         
21 | repo-source                         | openSUSE-leap/42.1-Source                        | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distributi
on/leap/42.1/repo/oss/                  |         
22 | repo-update                         | openSUSE-42.1-Update                             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/
oss/                                    |         
23 | repo-update-non-oss                 | openSUSE-42.1-Update-Non-Oss                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/
non-oss/ 

Please remove repo #14 : it is a duplicate of #22 and it is not refreshed and so useless anyway.


zypper removerepo 14

The most relevant other thread seems this: https://forums.opensuse.org/showthread.php/518947-Virtualbox-guest-additions-not-working-with-latest-kernel-update

It references this bug: https://bugzilla.suse.com/show_bug.cgi?id=987990
that seems to be fixed by kernel-default-4.1.27-27.1

Check that you are currently using that kernel:


uname -r

or update accordingly.

Other relevant threads, but with no solution at the moment:
https://forums.opensuse.org/showthread.php/518729-Kernel-driver-not-installed-(rc-1908)
https://forums.opensuse.org/showthread.php/518794-VirtualBox-5-0-22-Kernel-driver-not-installed-(rc-1908)

I think, this is the Mistake:

3 | http-download.opensuse.org-2491c1e3 | Kernel:stable | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/Kernel:/stable/standard/

If you installed any Kernel from that Repo, the virtualbox-host-kmp from your Update Repo will not work.
So post as mentioned by OrsoBruno:

uname -a

There was an Update to kernel 4.7 so maybe thats also an Problem…

And any virtualbox-guest Package is not needed on a host, so delete them.

On 07/26/2016 05:06 AM, giantas wrote:
>
> I did an upgrade of OpenSUSE using
> Code:
> --------------------
> zypper up
> --------------------
> . After a while, I tried turning on my W7 VM from a saved snapshot and I
> got this error.
>
> Code:
> --------------------
>
> 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
>
> ‘/sbin/rcvboxdrv 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.
>
> where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
>
> --------------------
>
>
> Running
> Code:
> --------------------
> /sbin/rcboxdrv setup
> --------------------
> in terminal(as root) returns
> Code:
> --------------------
> -bash: /sbin/rcvboxdrv: No such file or directory
> --------------------
>
> How do I solve this issue? This VM is vital for my daily activities.
>
>

Run the command as displayed. you have a typo: you left out the “v” in vbox.


Ken
linux since 1994
S.u.S.E./openSUSE since 1996

uname -a

Returns,

Linux linux-stz5.site 4.7.0-4.g89a2ada-default #1 SMP PREEMPT Mon Jul 25 08:42:47 UTC 
2016 (89a2ada) x86_64 x86_64 x86_64 GNU/Linux

This typo just occured while copying the code here.Otherwise the command displayed same result

Linux linux-stz5.site 4.7.0-4.g89a2ada-default #1 SMP PREEMPT Mon Jul 25 08:42:47 UTC
2016 (89a2ada) x86_64 x86_64 x86_64 GNU/Linux

2 possible Solutions:

  1. Delete the kernel, delete the kernel:stable Repo and install the latest kernel from Update Repo, also delete all with virtualbox-guest in the name and virtualbox should work.

  2. Delete all with virtualbox in the name, add the Virtualbox Repo from Oracle and install VirtualBox 5.1
    Index of http://download.virtualbox.org/virtualbox/rpm/opensuse/13.2
    It is the URL for Leap but it will work also with Kernel from kernel:stable.

You cannot run virtualbox with virtualbox-host-kmp-default 5.0.24_k4.1.27_27-25.1 on kernel-default 4.7.0-4.g89a2ada-default as the version number don’t match.
So you have 3 choices:

  1. boot kernel 4.1.27_27 when you plan on using virtualbox;
  2. install matching 4.7 kernel-devel and kernel-default-devel, virtualbox-host-source, gcc, make, maybe other development stuff and build the needed kernel modules yourself.
  3. install VirtualBox-5.0 from Oracle as suggested by sauerland.

Rebooting into kernel 4.1.27_27 anytime I would like to use VM seems impossible for me. I have removed all virtualbox packages using Yast2. I have downloaded VirtualBox 5.1 rpm. I have deleted the kernel:stable repo. Now how do I delete kernel? Furthermore, I still see the Oracle VirtualBox icon and on clicking it I get

Unable to make the service Oracle VM VirtualBox executable, aborting execution

. Are there any other files associated with virtualbox that I should delete before installing the new verson?

Just installed virtualbox 5.1 but on trying to start my VMs i get

RTR3InitEx failed with rc=-1912 (rc=-1912)
The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'/sbin/vboxconfig'

may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.

I feel there are configurations or something else I should delete
on running

/sbin/vboxconfig

I get

vboxdrv.sh: Starting VirtualBox services.

But on opening the VM i still get the earlier error

You have a mismatch between virtualbox from openSUSE and VirtualBox5.1 from Oracle.

You have not read my possible Solution carefully.

Post:

zypper se -si kernel virtualbox

Output


Loading repository data...                                                                                                                                                                       
Reading installed packages...                                                                                                                                                                    
                                                                                                                                                                                                 
S | Name                 | Type    | Version                    | Arch   | Repository                                                                                                            
--+----------------------+---------+----------------------------+--------+---------------------                                                                                                  
i | VirtualBox-5.1       | package | 5.1.2_108956_openSUSE132-1 | i586   | (System Packages)                                                                                                     
i | kernel-default       | package | 4.7.0-4.1.g89a2ada         | x86_64 | (System Packages)                                                                                                     
i | kernel-default       | package | 4.1.27-27.1                | x86_64 | openSUSE-42.1-Update                                                                                                  
i | kernel-default-devel | package | 4.7.0-4.1.g89a2ada         | x86_64 | (System Packages)                                                                                                     
i | kernel-default-devel | package | 4.1.27-27.1                | x86_64 | openSUSE-42.1-Update                                                                                                  
i | kernel-devel         | package | 4.7.0-4.1.g89a2ada         | noarch | (System Packages)                                                                                                     
i | kernel-devel         | package | 4.1.27-27.1                | noarch | openSUSE-42.1-Update                                                                                                  
i | kernel-firmware      | package | 20160503-3.1               | noarch | openSUSE-42.1-Update                                                                                                  
i | kernel-macros        | package | 4.1.27-27.1                | noarch | openSUSE-42.1-Update                                                                                                  
i | kernel-source        | package | 4.7.0-4.1.g89a2ada         | noarch | (System Packages)                                                                                                     
i | kernel-source        | package | 4.1.27-27.1                | noarch | openSUSE-42.1-Update

I chose option 2 and it worked! My VM is up and running.
However, since you mentioned a problem with the kernel from kernel:stable, how can I change the kernel back to the one in the OpenSUSE update repo and be updating from there?

Assuming that your VM is “up and running” while using the 4.1.27 kernel from the update repo (your last few posts are not really clear to me), simply issue:


zypper remove -D -C 'kernel-default=4.7.0-4'

This is a dry run command (-D) just to be safe.
If the system replies, as it should, with:


The following package is going to be REMOVED:
  kernel-default-4.7.0-4.1.g89a2ada

you can continue with the “really remove” command as:


zypper remove -C 'kernel-default=4.7.0-4'

and the suspect kernel will be removed.
A similar procedure exist in Yast - Software, but I’m not sure that the version removal really works as intended and I’m not willing to risk thrashing the “good” kernel version.
Afterwards, the system should update from the “Update” repo since you apparently already disabled the “Kernel:stable” repo.

I think i should inform you that I tried removing kernel from Yast and, when I reboot, the first two options in the OpenSUSE grub were gone. Thank God for snapshots - I just rolled back into one https://forums.opensuse.org/images/icons/icon10.png
Either way, I’ll try that on an OpenSUSE VM (since mine is working well) and get back to you.
Lots of thanks.https://forums.opensuse.org/images/icons/icon14.png (same goes to Sauerland](https://forums.opensuse.org/member.php/56271-Sauerland))