Can't run any machine with Virtualbox

Hi. I have a problem with Virtual Box.
My laptop is running OpenSUSE 13.1 x64 with Tumbleweed kernel.
So, I’ve run the command bellow

sudo zypper in make gcc gcc-c++ kernel-source kernel-syms

Then I’ve downloaded rpm for OpenSUSE Tumbleweed and installed it.
When I;m trying to run any machine, I’m getting an error
http://storage9.static.itmages.ru/i/14/0802/h_1406976691_7657572_6a8a6f8935.png

Next step was

kozlone@linux-z6mh:~> sudo /etc/init.d/vboxdrv setup
root's password:
Recompiling VirtualBox kernel module, NOT. It has been packaged.     done

It doesn’t helped.
Then I’ve installed dkms package and run

sudo /etc/init.d/vboxdrv setup

The same result.

Are you using Tumbleweed, or only the kernel?

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.

Just only the kernel.

Which one?
And how did you download and install it?

For tumbleweed I’ve downloaded from softawre.opensuse.org. And also I’ve installed the package for openSUSE Tumbleweed from the official website.

Please post the output of:

rpm -qa | egrep -i "kernel|virtualbox"
kernel-firmware-20130714git-2.17.1.noarch
kernel-syms-3.15.7-42.1.g972d9a6.x86_64
kernel-desktop-base-3.11.10-17.2.x86_64
virtualbox-host-kmp-desktop-4.3.12_k3.15.7_42.g972d9a6-2.21.x86_64
kernel-desktop-devel-3.15.7-42.1.g972d9a6.x86_64
kernel-default-base-3.11.10-17.2.x86_64
virtualbox-guest-kmp-default-4.3.12_k3.15.7_42.g972d9a6-2.21.x86_64
virtualbox-qt-4.3.12-2.21.x86_64
kernel-source-3.15.7-42.1.g972d9a6.noarch
virtualbox-host-kmp-default-4.3.12_k3.15.7_42.g972d9a6-2.21.x86_64
kernel-xen-devel-3.15.7-42.1.g972d9a6.x86_64
kernel-default-3.15.7-42.1.g972d9a6.x86_64
kernel-desktop-3.15.7-42.1.g972d9a6.x86_64
virtualbox-4.3.12-2.21.x86_64
kernel-default-devel-3.15.7-42.1.g972d9a6.x86_64
virtualbox-guest-kmp-desktop-4.3.12_k3.15.7_42.g972d9a6-2.21.x86_64
kernel-devel-3.15.7-42.1.g972d9a6.noarch


Then I’d rather use the Kernel:stable repo, and the VirtualBox repo for Kernel:stable.

For tumbleweed I’ve downloaded from softawre.opensuse.org.

What kernel are you actually running now?

uname -a
kernel-firmware-20130714git-2.17.1.noarch
kernel-syms-3.15.7-42.1.g972d9a6.x86_64
kernel-desktop-base-3.11.10-17.2.x86_64
virtualbox-host-kmp-desktop-4.3.12_k3.15.7_42.g972d9a6-2.21.x86_64
kernel-desktop-devel-3.15.7-42.1.g972d9a6.x86_64
kernel-default-base-3.11.10-17.2.x86_64
virtualbox-guest-kmp-default-4.3.12_k3.15.7_42.g972d9a6-2.21.x86_64
virtualbox-qt-4.3.12-2.21.x86_64
kernel-source-3.15.7-42.1.g972d9a6.noarch
virtualbox-host-kmp-default-4.3.12_k3.15.7_42.g972d9a6-2.21.x86_64
kernel-xen-devel-3.15.7-42.1.g972d9a6.x86_64
kernel-default-3.15.7-42.1.g972d9a6.x86_64
kernel-desktop-3.15.7-42.1.g972d9a6.x86_64
virtualbox-4.3.12-2.21.x86_64
kernel-default-devel-3.15.7-42.1.g972d9a6.x86_64
virtualbox-guest-kmp-desktop-4.3.12_k3.15.7_42.g972d9a6-2.21.x86_64
kernel-devel-3.15.7-42.1.g972d9a6.noarch

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.

I’ve removed virtualbox and kernel-xxx-base and then reinstalled VB from the official website and it’s works :sarcastic:
**Great thanks to **wolfi323](https://forums.opensuse.org/member.php/40214-wolfi323)

???
Kernel:stable contains the latest stable kernel, i.e. 3.15.7 at the moment.
Actually Tumbleweed gets its kernel from there as well.

Here’s the repo URL:
http://download.opensuse.org/repositories/Kernel:/stable/standard/

And the VirtualBox repo for Kernel:stable:
http://download.opensuse.org/repositories/Virtualization/Kernel_stable_standard/

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).

Good to hear. :slight_smile:

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… :wink:

Ok, get it. :slight_smile: