Virtualbox' machines don't start on openSUSE 12.3

Hi.
I’ve recently installed virtualbox from repo.

Previously I had installed kernel-devel,kernel-syms and kernel-source package.
I’m trying to install an openSUSE into virtualbox,but machine doesn’t start.

Failed to open a session for the virtual machine openSUSE12.3.

The virtual machine 'openSUSE12.3' has terminated unexpectedly during startup with exit code 1.


Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {22781af3-1c96-4126-9edf-67a020e0e858}

I tried to run /etc/init.d/vboxdrv setup.and its output is :


Recompiling VirtualBox kernel module, NOT. It has been packaged.                                          done

I’m using openSUSE 12.3 x86_64.(3.7.10-1.16-desktop)

Please guide me

You don’t need kernel-syms or kernel-source if you use virtualbox from the repo.

Also you don’t need to run “vboxdrv setup”.

The virtualbox-host-kmp package contains a precompiled kernel module.

But you have to add your user to the “vboxusers” group and logout/login again (or reboot).
Did you do that?

sudo usermod -a -G vboxusers $USER

or use YaST->Security and Users->User and Group Management.

And if your CPU supports hardware virtualization (AMD-V or Intel VT-x), make sure it is turned on in the BIOS.

I’ve already added user to vboxusers group.Also my CPU supports hardware virtualization.I’m using VMware workstation and it works properly.

Neither VMware nor VirtualBox NEED hardware virtualization to work (well, VirtualBox DOES need it for 64bit guests).
But there can be problems if your CPU supports it but it is disabled in the BIOS settings.

Is the kernel module loaded?

systemctl status vboxdrv

Which packages do you have installed?

rpm -qa |grep -i virtualbox

It works fine here.
I’m using the latest packages from the Virtualization repo
But the packages from the standard repo should work as well. I will try them later to check.


#systemctl status vboxdrv
vboxdrv.service - LSB: VirtualBox Linux module
          Loaded: loaded (/etc/init.d/vboxdrv)
          Active: active (exited) since Wed, 2013-07-31 09:24:19 IRDT; 5min ago
         Process: 975 ExecStart=/etc/init.d/vboxdrv start (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/vboxdrv.service


Jul 31 09:24:18 smart-lt.site systemd[1]: Starting LSB: VirtualBox Linux module...
Jul 31 09:24:19 smart-lt.site vboxdrv[975]: Starting VirtualBox kernel modules..failed
Jul 31 09:24:19 smart-lt.site vboxdrv[975]: (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
Jul 31 09:29:50 smart-lt.site systemd[1]: Started LSB: VirtualBox Linux module.


#zypper search -si virtualbox
S | Name                        | Type    | Version                   | Arch   | Repository          
--+-----------------------------+---------+---------------------------+--------+---------------------
i | virtualbox                  | package | 4.2.6-3.6.11              | x86_64 | openSUSE-12.3-Update
i | virtualbox-host-kmp-desktop | package | 4.2.6_k3.7.10_1.11-3.6.11 | x86_64 | openSUSE-12.3-Update
i | virtualbox-qt               | package | 4.2.6-3.6.11              | x86_64 | openSUSE-12.3-Update

On 07/31/2013 12:06 AM, zeusys wrote:
>
> Code:
> --------------------
>
> #systemctl status vboxdrv
> vboxdrv.service - LSB: VirtualBox Linux module
> Loaded: loaded (/etc/init.d/vboxdrv)
> Active: active (exited) since Wed, 2013-07-31 09:24:19 IRDT; 5min ago
> Process: 975 ExecStart=/etc/init.d/vboxdrv start (code=exited, status=0/SUCCESS)
> CGroup: name=systemd:/system/vboxdrv.service
>
>
> Jul 31 09:24:18 smart-lt.site systemd[1]: Starting LSB: VirtualBox Linux module…
> Jul 31 09:24:19 smart-lt.site vboxdrv[975]: Starting VirtualBox kernel modules…failed
> Jul 31 09:24:19 smart-lt.site vboxdrv[975]: (modprobe vboxdrv failed. Please use ‘dmesg’ to find out why)
> Jul 31 09:29:50 smart-lt.site systemd[1]: Started LSB: VirtualBox Linux module.

What did dmesg have to say?

And what kernel are you really using?

uname -a

I didn’t know what was the problem.I installed virtualbox from Virtualization repo and finally it works.

Thanks anyway

" Virtualization repo" ???
Whiche one url ??

Serg

I already posted it in comment #4:
[noparse]http://download.opensuse.org/repositories/Virtualization/openSUSE_12.3[/noparse]