Bug 20358

Summary: VirtualBox cannot find vboxdrv to start up a Win10 guest
Product: Mageia Reporter: Jim Beard <jim.beard>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: ftg, marja11, tmb
Version: 5   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: kernel-tmb-desktop-4.4.50-2.mga5-1-1.mga5 CVE:
Status comment:

Description Jim Beard 2017-02-26 17:39:08 CET
Description of problem:
Startup of my Win10 VirtualBox guest under 
virtualbox-kernel-desktop-latest-5.1.10-12.mga5 works.

Startup under kernel-tmb-desktop-4.4.50-2.mga5-1-1.mga5 fails, with an error message pop-up:

VirtualBox - Error in suplibOsInit
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.

locate vboxconfig fails to find anything.

Version-Release number of selected component (if applicable):


How reproducible:
1. In the Gnome desktop, click on the virtualbox icon.  
2. Then click on START to start up the Win10 guest.  Startup fails with the error message pop-up above.
Marja Van Waes 2017-02-27 07:45:29 CET

CC: (none) => marja11
Assignee: bugsquad => kernel

Comment 1 Frank Griffin 2017-02-27 15:57:23 CET
I could be mistaken, but I think the vbox packages are designed to install in the /lib directories for the official MGA kernels, complete with version information.  Maybe the tmb kernels use different /lib directories.  Have you successfully used vbox with tmb kernels before ?

CC: (none) => ftg

Comment 2 Thomas Backlund 2017-02-27 16:01:45 CET
did you install the matching kernel-tmb-desktop-devel package ?

Without that dkms cant rebuild matching kmods

CC: (none) => tmb

Comment 3 Jim Beard 2017-02-27 19:12:32 CET
Frank:  I do not remember if I had virtualbox running under a tmb kernel.  If so, it would have been perhaps a couple of years ago, perhaps under Mageia 4.

Thomas: The matching devel package was not installed, but I have now installed that and associated rpms.  Still no joy.

The module does not build and install.  Running VBox.sh results in an error message that either there is no module for the current kernel or it failed to load, and it appears there is no module.

Instructions in the error message to recompile the kernel module and install it using /sbin/vboxconfig fail because there is no /sbin/vboxconfig, or any vboxconfig anywhere.

/usr/lib64/virtualbox/vboxdrv.sh yields "line 393: /usr/lib64/virtualbox/src/vboxhost/build_in_tmp: No such file or directory"

May I ask how I can rebuild and install vboxdrv in the installed tmb kernel?

Or should I simply use the standard Mageia 5 kernel when I wish to use virtualbox?
Comment 4 Thomas Backlund 2017-02-27 19:19:07 CET
If you want to use virtualbox with kernel-tmb, you also need to install dkms-virtualbox, we only provide prebuilt kmods for the core kernel
Comment 5 Jim Beard 2017-02-27 20:44:33 CET
dkms-virtualbox now installed, and all is working nicely.

Apologies for my ignorance.

Status: NEW => RESOLVED
Resolution: (none) => FIXED