If it’s the latter, I would recommend to use the one from the Kernel:stable repo, there are virtualbox packages built against this in a separate repo.
So, I’ve run the command bellow
sudo zypper in make gcc gcc-c++ kernel-source kernel-syms
That’s not necessary if you intend to use openSUSE’s packages.
Then I’ve downloaded rpm for OpenSUSE Tumbleweed and installed it.
Which one?
And how did you download and install it?
Please post the output of:
rpm -qa | egrep -i "kernel|virtualbox"
It doesn’t helped.
Then I’ve installed dkms package and run
sudo /etc/init.d/vboxdrv setup
The same result.
As the message said, you cannot run “vboxdrv setup” with openSUSE’s packages, as they include an already compiled kernel module.
And that’s why the packages have to match the installed kernel.
You could download and install the RPM from http://virtualbox.org/ , this requires you to compile the kernel module yourself, and should work with dkms.
But if you do this, please uninstall all openSUSE virtualbox* packages before.
Remove those kernel-xxx-base packages. Those are stripped down packages that don’t include most kernel modules.
And you don’t need both kernel-desktop and kernel-default either, but that should at least give no problem as you installed the kmp for both.
Then I’d rather use the Kernel:stable repo, and the VirtualBox repo for Kernel:stable.
For my sorrow I can’t use default kernel because there is a problem with wifi.
What kernel are you actually running now?
uname -a
3.15.7-42.g972d9a6-desktop
Remove those kernel-xxx-base packages.
When I removes kernel-desktop-base zypper installs kernel-default-base and vice versa, when I removes kernel-default-base zypper installs kernel-desktop-base.
Add both repos, and install the corresponding packages.
I would suggest YaST, click on “Versions” below the package lists to see all available/installed versions of a package.
3.15.7-42.g972d9a6-desktop
Ok, then something is wrong with the kmp package installation.
What does “rpm -V virtualbox-host-kmp-desktop” say?
When I removes kernel-desktop-base zypper installs kernel-default-base and vice versa, when I removes kernel-default-base zypper installs kernel-desktop-base.
Then you have other packages installed that require a kernel 3.11.10.
Try to deinstall both at the same time.
Or install the full kernel-desktop/kernel-default 3.11.10, that should remove the kernel-xxx-base packages.
Also check that the “vboxdrv” service is actually started during boot:
chkconfig vboxdrv
sudo /etc/init.d/vboxdrv status
and that your user is part of the “vboxusers” group (but if it’s not you would get a different error message).
Then please forget the rest I wrote (about the Kernel:stable repo).
As mentioned the VB version from the website compiles the kernel module for the running kernel when you install it, so this should always work (if the kernel version is supported of course).
Whereas the openSUSE packages contain a pre-compiled, binary, kernel module and have to match the installed/running kernel therefore.
But please note, that you will have to recompile the kernel module whenever you install a different kernel, with “/etc/init.d/vboxdrv setup”.
Using DKMS should help with that.
But IIUYC, you won’t get automatic kernel updates anyway…