Page 1 of 1

vboxdrv kernel is not loaded in 4.4.0-119-generic

Posted: 14. Apr 2018, 16:48
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

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

Posted: 14. Apr 2018, 17:13
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.

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

Posted: 14. Apr 2018, 21:10
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

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

Posted: 19. Apr 2018, 10:47
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