Bug 17818

Summary: VirtualBox kernel modules fail to load automatically on x86_64
Product: Mageia Reporter: David Walser <luigiwalser>
Component: RPM PackagesAssignee: Thomas Backlund <tmb>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: Normal    
Version: 5   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: virtualbox-5.0.14-1.mga5.src.rpm, kmod-virtualbox-5.0.14-1.mga5.src.rpm CVE:
Status comment:

Description David Walser 2016-02-25 01:04:19 CET
With VirtualBox installed, these modules should be loaded automatically at boot:
vboxdrv
vboxnetadp
vboxnetflt

On Mageia 5 i586, they do and everything is fine.  Note that I'm using kernel-server there (not sure if it makes a difference).

On Mageia 5 x86_64, they do not and you have to modprobe them manually.  It could be worked around by putting them in a file in /etc/modprobe.preload.d/, but this should not be necessary.

Relevant installed packages are:
virtualbox-kernel-4.1.15-desktop-2.mga5-5.0.14-1.mga5
virtualbox-kernel-desktop-latest-5.0.14-1.mga5
kernel-desktop-4.1.15-2.mga5-1-1.mga5
kernel-desktop-latest-4.1.15-2.mga5
virtualbox-5.0.14-1.mga5
Comment 1 James Kerr 2016-02-25 03:05:24 CET
I'm using the same 64 bit packages and have never had to manually load vboxdrv 

lsmod | grep vboxdrv
vboxdrv   458752  2 vboxnetadp,vboxnetflt
Comment 2 David Walser 2016-02-25 14:19:32 CET
OK, I figured it out again.  I had figured it out when I set up the 32-bit install and then forgot about it.

In msec secure mode, services aren't enabled by default when you install packages that call _post_service, so virtualbox.service isn't enabled, and therefore the kernel modules aren't loaded.

Maybe rather than using a SysV service to load the kernel modules, the virtualbox package should just install a file /etc/modprobe.preload.d/virtualbox with the three kernel modules listed.

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