Virtualbox 5 - Kernel Modules do not match

I’m running OpenSUSE 13.2 with latest updates, Virtualbox installed from openSUSE packages

If I upgrade virtualbox 5 none of my VMs will start and all come up with error ‘RTR3InitEx failed with rc=-1912 (rc=-1912) - The VirtualBox kernel modules do not match this version of VirtualBox’ and suggests I try running vboxdrv setup which will not run because it has been packaged.

I’ve tried restarting vboxdrv, rebooting the machine etc. but nothing seems to work except downgrading virtualbox to version 4.

Can anyone give me some pointers to fixing this?

Post:

zypper se -si kernel virtualbox
uname -a
zypper se -si kernel virtualbox

S | Name                           | Type    | Version                         | Arch   | Repository          
--+--------------------------------+---------+---------------------------------+--------+---------------------
i | devel_kernel                   | pattern | 20141007-5.1                    | x86_64 | openSUSE-13.2-Update
i | kernel-default-devel           | package | 3.16.7-35.1                     | x86_64 | openSUSE-13.2-Update
i | kernel-desktop                 | package | 3.16.7-35.1                     | x86_64 | openSUSE-13.2-Update
i | kernel-desktop                 | package | 3.16.6-2.1                      | x86_64 | openSUSE-13.2-Oss   
i | kernel-desktop-devel           | package | 3.16.7-35.1                     | x86_64 | openSUSE-13.2-Update
i | kernel-devel                   | package | 3.16.7-35.1                     | noarch | openSUSE-13.2-Update
i | kernel-firmware                | package | 20141122git-5.1                 | noarch | openSUSE-13.2-Update
i | kernel-macros                  | package | 3.16.7-35.1                     | noarch | openSUSE-13.2-Update
i | kernel-source                  | package | 3.16.7-35.1                     | noarch | openSUSE-13.2-Update
i | kernel-syms                    | package | 3.16.7-35.1                     | x86_64 | openSUSE-13.2-Update
i | kernel-xen-devel               | package | 3.16.7-35.1                     | x86_64 | openSUSE-13.2-Update
i | nfs-kernel-server              | package | 1.3.0-4.4.1                     | x86_64 | openSUSE-13.2-Update
i | patterns-openSUSE-devel_kernel | package | 20141007-5.1                    | x86_64 | openSUSE-13.2-Update
i | python-virtualbox              | package | 5.0.20-46.1                     | x86_64 | openSUSE-13.2-Update
i | texlive-l3kernel               | package | 2013.84.svn_4469svn29409-16.1.7 | noarch | openSUSE-13.2-Oss   
i | texlive-l3kernel-doc           | package | 2013.84.svn_4469svn29409-16.1.7 | noarch | openSUSE-13.2-Oss   
i | virtualbox                     | package | 5.0.20-46.1                     | x86_64 | openSUSE-13.2-Update
i | virtualbox-devel               | package | 5.0.20-46.1                     | x86_64 | openSUSE-13.2-Update
i | virtualbox-guest-kmp-desktop   | package | 5.0.20_k3.16.7_35-46.1          | x86_64 | openSUSE-13.2-Update
i | virtualbox-guest-tools         | package | 5.0.20-46.1                     | x86_64 | openSUSE-13.2-Update
i | virtualbox-host-kmp-desktop    | package | 5.0.20_k3.16.7_35-46.1          | x86_64 | openSUSE-13.2-Update
i | virtualbox-qt                  | package | 5.0.20-46.1                     | x86_64 | openSUSE-13.2-Update

uname -a

Linux nikyo 3.16.7-35-desktop #1 SMP PREEMPT Sun Feb 7 17:32:21 UTC 2016 (832c776) x86_64 x86_64 x86_64 GNU/Linux

Try to uninstall all virtualbox-guest-kmp-desktop (not needed on the host anyway) and virtualbox-host-kmp-desktop packages, reinstall virtualbox-host-kmp-desktop, and it should work.

sudo rpm -e --allmatches --nodeps virtualbox-guest-kmp-desktop virtualbox-host-kmp-desktop
sudo zypper in -f virtualbox-host-kmp-desktop

This seems to have cured it - I’ve only had chance to test one of my VMs but that came up OK. I’ll check the others tomorrow

Many thanks

As this was a host problem, all other guests should work as well…

Many thanks

You’re welcome.