Bug 26846 - The vboxdrv kernel module is not loaded if one is using a locally rebuilt kernel from Cauldron in Mageia 7
Summary: The vboxdrv kernel module is not loaded if one is using a locally rebuilt ker...
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-22 02:21 CEST by Kristoffer Grundström
Modified: 2020-07-03 20:58 CEST (History)
2 users (show)

See Also:
Source RPM: virtualbox
CVE:
Status comment:


Attachments
Output from running VirtualBox in the terminal window (369 bytes, text/plain)
2020-06-22 02:22 CEST, Kristoffer Grundström
Details

Description Kristoffer Grundström 2020-06-22 02:21:24 CEST
Description of problem: I decided to rebuild the 5.7.1-desktop-1.mga8 src.rpm from Cauldron and it installed and runs without any apparent issues. However, if I decide to reinstall Virtualbox to create a new VM it doesn't seem to find the vboxdrv kernel module. I tried using the solution mentioned here ( https://askubuntu.com/questions/53364/command-to-rebuild-all-dkms-modules-for-all-installed-kernels ), but that fails due to initramfs-tools being nonexistant in Mageia 7. Can any of the solutions mentioned on that page be adapted to work with future kernels and virtualbox versions?

dkms status shows: virtualbox, 6.0.20-1.mga7, 5.6.14-desktop-2.mga7, x86_64: installed-binary from 5.6.14-desktop-2.mga7

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

How reproducible: All the time.

Steps to Reproduce:
1. Uninstall Virtualbox. 
2. Rebuild a kernel src.rpm from Cauldron.
3. Boot the rebuilt kernel.
4. Install Virtualbox.
5. Run VirtualBox from terminal since there is no menu item readded.
6. See the error displayed in the attached file.
7. Run sudo /sbin/vboxconfig and confirm that it doesn't work because vboxconfig does not exist in /sbin/
Comment 1 Kristoffer Grundström 2020-06-22 02:22:56 CEST
Created attachment 11710 [details]
Output from running VirtualBox in the terminal window

CC: (none) => lovaren

Comment 2 Lewis Smith 2020-07-03 20:43:59 CEST
Kristoffer, this is another bug based on a DIY build. Because the kernel is not a standard Mageia package ("I decided to rebuild the 5.7.1-desktop-1.mga8 src.rpm") I doubt whether it will be accepted; I leave that to the kernel people to judge; who also do Vbox.
Since the attachment is short, I reproduce it here:-

$ VirtualBox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.7.1-desktop-1.mga7) or it failed to
         load. Please recompile the kernel module and install it by
           sudo /sbin/vboxconfig
         You will not be able to start VMs until this problem is fixed.

Assignee: bugsquad => kernel

Comment 3 Pascal Terjan 2020-07-03 20:58:08 CEST
If you use a newer kernel, you need tu also update at least dkms-virtualbox as the old one does not build with new kernels.

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


Note You need to log in before you can comment on or make changes to this bug.