vboxdrv kernel is not loaded in 4.4.0-119-generic

Discussions related to using VirtualBox on Linux hosts.
Post Reply
sothy
Posts: 2
Joined: 14. Apr 2018, 16:44

vboxdrv kernel is not loaded in 4.4.0-119-generic

Post by sothy »

Hello,

When I run virtualbox command in terminal (ubuntu 16.04). I got the following error.

Code: Select all

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.4.0-119-generic) 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.
I checked dmesg also. The relevant part regarding vboxconfig.

Code: Select all

[  150.795111] vboxdrv: version magic '4.4.0-119-generic SMP mod_unload modversions ' should be '4.4.0-119-generic SMP mod_unload modversions retpoline '
[  397.074809] audit: type=1400 audit(1523714175.612:33): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/local/lib/libgnutls.so.30.14.0" pid=8180 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[  397.076502] audit: type=1400 audit(1523714175.612:34): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/local/lib/libnettle.so.6.1" pid=8180 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[  397.076652] audit: type=1400 audit(1523714175.612:35): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/local/lib/libhogweed.so.4.1" pid=8180 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 1676.726866] vboxdrv: version magic '4.4.0-119-generic SMP mod_unload modversions ' should be '4.4.0-119-generic SMP mod_unload modversions retpoline '
[ 1687.746667] vboxdrv: version magic '4.4.0-119-generic SMP mod_unload modversions ' should be '4.4.0-119-generic SMP mod_unload modversions retpoline '
[ 1726.416317] vboxdrv: version magic '4.4.0-119-generic SMP mod_unload modversions ' should be '4.4.0-119-generic SMP mod_unload modversions retpoline '
[ 1737.273556] vboxdrv: version magic '4.4.0-119-generic SMP mod_unload modversions ' should be '4.4.0-119-generic SMP mod_unload modversions retpoline '
My uname -r
4.4.0-119-generic

virtualbox version 5.2.8.
How to solve this problem.

Thanks
Last edited by socratis on 14. Apr 2018, 17:48, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: vboxdrv kernel is not loaded in 4.4.0-119-generic

Post by andyp73 »

You have a Linux kernel that has been built using retpoline support as part of the mitigation for the Meltdown / Spectre bugs. The compiler that you have installed and which has been used to compile the VirtualBox drivers hasn't been updated to include retpoline support.

You either need to upgrade your compiler or downgrade your kernel so that they match.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
sothy
Posts: 2
Joined: 14. Apr 2018, 16:44

Re: vboxdrv kernel is not loaded in 4.4.0-119-generic

Post by sothy »

Hello,
I am using now gcc (ubuntu 7.2.0) and getting same error. What version of compiler I should have it in Ubuntu?
Thanks Andy
alex44
Posts: 1
Joined: 19. Apr 2018, 10:44

Re: vboxdrv kernel is not loaded in 4.4.0-119-generic

Post by alex44 »

I have the same issue with gcc 7.2 on ubuntu 16.04 LTS.
I have got the following message:
vboxdrv: version magic '4.4.0-119-generic SMP mod_unload modversions ' should be '4.4.0-119-generic SMP mod_unload modversions retpoline '
when I run /sbin/vboxconfig.

There had already an issu with 4.4.0-116-generic, where you must compile with older gcc version.
Please if you have more informations.

Alex
Post Reply