Error in running a guest in VitrualBox

hi all,
i have install VirtualBox from Yast and i don’t have any problem about it in executing guest, after i updated OS when i execute my guest VirtualBox get me below message:

Kernel driver not installed (rc=-1908)

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/vboxconfig'

as root.

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

so i enter command

sudo /sbin/vboxconfig

in konsol it return me:

sudo: /sbin/vboxconfig: command not found

how do i solve this problem?
thank you everybody.

https://forums.opensuse.org/showthread.php/524321-virtualbox-problem

tnx, i read the post and your reply and ran command

sudo modprobe vboxdrv 

the result is:

modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.10.9-1-default

  1. sudo is not su…
  2. what Virtualbox is installed?
zypper se -si virtualbox vbox kernel
  1. do you reinstall the Virtualbox Packlages?
  1. sudo is not su…

sorry, i dont understand what is your purpose?

  1. what Virtualbox is installed?
    Code:
    zypper se -si virtualbox vbox kernel

S | Name                        | Type    | Version              | Arch   | Repository          
--+-----------------------------+---------+----------------------+--------+--------------------
i | kernel-default              | package | 4.10.9-1.1           | x86_64 | (System Packages)   
i | kernel-default              | package | 4.10.8-1.1           | x86_64 | (System Packages)   
i | kernel-firmware             | package | 20170404-1.1         | noarch | openSUSE-20170406-0
i | virtualbox                  | package | 5.1.18-1.9           | x86_64 | openSUSE-20170406-0
i | virtualbox-host-kmp-default | package | 5.1.18_k4.10.9_1-1.9 | x86_64 | openSUSE-20170406-0
i | virtualbox-qt               | package | 5.1.18-1.9           | x86_64 | openSUSE-20170406-0

  1. do you reinstall the Virtualbox Packlages?

i delete and install virtualbox packege by Yast

tnx

I would say:
Bugreport…

Its the same as yesterday in IRC and in the thread I posted…

yes, i saw it…tnx

It could be useful to troubleshoot and add to a bug report if vboxdrv is somewhere else in your system.

Recommend…
Install the locate app, it can find any file or file and path in your system in a split second once it’s set up as follows…

  1. Install
zypper in mlocate
  1. Update the database for locate. You only need to do this once initially and after that only if you’re looking for something new on your system within 24hrs… otherwise, it will update itself daily automatically
    From a root console, run the following
updatedb
  1. Now you can search for anything, in your case the following searches for vboxdrv anywhere in your system
locate vboxdrv

TSU

@tsu2

tnx.
excuse me for late to answer to you.

the output of command

[FONT=monospace]locate vboxdrv 


[/FONT] is:

/etc/init.d/vboxdrv
/etc/init.d/rc2.d/K50vboxdrv
/etc/init.d/rc2.d/S50vboxdrv
/etc/init.d/rc3.d/K50vboxdrv
/etc/init.d/rc3.d/S50vboxdrv
/etc/init.d/rc5.d/K50vboxdrv
/etc/init.d/rc5.d/S50vboxdrv
/etc/udev/rules.d/60-vboxdrv.rules
/lib/modules/4.10.8-1-default/weak-updates/misc/vboxdrv.ko
/lib/modules/4.10.9-1-default/misc/vboxdrv.ko
/lib/modules/4.10.9-1-default/weak-updates/misc/vboxdrv.ko

It could be useful to troubleshoot and add to a bug report if vboxdrv is somewhere else in your system.

good, i am new, how do i report a bug in opensuse?

Before you submit a report, check your kernel version with the following command

uname -a

It should match your latest installed kernel 4.10.9-1.1 , or something very close. If not, then include that as a primary suspect in your problem… You have two kernels installed for some reason, and your Virtualbox kernel modules need to match your kernel.

You can submit your situation to https://bugzilla.opensuse.org
I just checked, and I don’t see an existing bug that looks like what you are describing.

TSU

the output of command uname -a is

Linux linux-72u4 4.10.9-1-default #1 SMP PREEMPT Sat Apr 8 15:30:03 UTC 2017 (195f937) x86_64 x86_64 x86_64 GNU/Li
nux

You have two kernels installed for some reason

first, i downloaded opensuse & then installed and then updated it. i don’t installed any new kernel manually.
may update process has bug?
and can i purge old kernel?

tnx.

Try to delete the old kernel 4.10.8, install kernel-default and virtualbox-kmp once more…

Try to delete the old kernel 4.10.8, install kernel-default and virtualbox-kmp once more…

i deleted old kernel and reboot. kernel-defalult is already installed and can not find any package with virtualbox-kmp name.

after that, i enter command :

sudo modprobe vboxdrv

it get to me nothing (before it get me a FATAL error. it shown in page 1, reply #3)

As root:

zypper in -f kernel-default virtualbox-host-kmp-default

i installed 2 package and next?

after i enetered above command virtualbox get me error agian to enter command

'/sbin/vboxconfig'

and

modprobe vboxdrv

get me nothing…i only delete old guest and create new guest and load .VHD again and guest start without problem.

It is Solved.

thank all very much.

For Clarification:
The openSUSE is running inside a Virtualbox?

You need then the Virtualbox-Guest-Packages…

All what we have done before is for nothing.

Hi All,

I am facing the exact same issue on my openSUSE Tumbleweed** bare-metal** installation. Let me describe the situation:

  1. I fresh-installed Tumbleweed like a month ago.
  2. Few days ago I got the 4.10.9-1-default kernel update along with other updates.
  3. Today I tried to install VirtualBox, which installed successfully, but after creating a VM, it cannot be started, because it states the same error, that the vboxdrv kernel driver is not loaded. Indeed, modprobe vboxdrv gave module not found error.
  4. When I checked the ‘virtualbox-host-kmp-default’ package in Yast2, it said that the module files should be placed in the module directory of the 4.10.9-1 folder:
 | virtualbox-host-kmp-default - Host kernel module for VirtualBox|
|---|


 
/lib/modules/**4.10.9-1-default**
/lib/modules/**4.10.9-1-default**/misc
/lib/modules/**4.10.9-1-default**/misc/vboxdrv.ko
/lib/modules/**4.10.9-1-default**/misc/vboxnetadp.ko
/lib/modules/**4.10.9-1-default**/misc/vboxnetflt.ko
/lib/modules/**4.10.9-1-default**/misc/vboxpci.ko

6 files total
  1. But then I opened up Snapper and I realized that the respective module files were actually placed in the leftover(?) module folder of the old kernel (4.10.8-1-default):
c..... /lib/modules/4.10.8-1-default/modules.dep
c..... /lib/modules/**4.10.8-1-default**/modules.dep.bin
c..... /lib/modules/**4.10.8-1-default**/modules.symbols
c..... /lib/modules/**4.10.8-1-default**/modules.symbols.bin
+..... /lib/modules/**4.10.8-1-default**/weak-updates/misc/vboxdrv.ko
+..... /lib/modules/**4.10.8-1-default**/weak-updates/misc/vboxnetadp.ko
+..... /lib/modules/**4.10.8-1-default**/weak-updates/misc/vboxnetflt.ko
+..... /lib/modules/**4.10.8-1-default**/weak-updates/misc/vboxpci.ko
+..... /lib/modules/4.10.9-1-default/misc


Could anybody give a hint why and how this happened, and if there is a quick workaround fix of this besides manually adding the respective files to the 4.10.9-1 modules?
Thank You.

thanks for your good explanation…this problem occurred for me as same you are said. i updated and i have 2 kernels :slight_smile: i delete old kernel but problem not solved last night. IMO when update has done fully old kernel must be deleted automatically but not. i think my problem has been solved last night but i see not, after reboot or shutdown my PC and run VBox and start my guest it show me the error that tell me use command ‘/sbin/vboxconfig’ as root.
tonight i see new thing on my problem. when i am setting “Bridged Adapter” in network setting in VirtualBox my guest not started and get me error but when i change to another option i have no any problem and guest start automatically.

The openSUSE is running inside a Virtualbox?

i have opensuse as host and inside i have windows 7 as guest.

You need then the Virtualbox-Guest-Packages…

tonight i see new thing on my problem. when i am setting “Bridged Adapter” in network setting in VirtualBox my guest not started and get me error but when i change to another option i have no any problem and guest start automatically.

tnx