The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.13.0-26-generic) or it failed to load
7,957
Virtualbox 5.0.40 is not working with the new kernel (4.13.0-26), but the new version of VBox (5.2) works fine. Check out this question and the provided answer.
Related videos on Youtube
Author by
Rizwan
i know jsp, jquery, java script , css,oracle, html and love to code and find new things and apply in my project which is based on a ecommerce web-site's.
Updated on September 18, 2022Comments
-
Rizwan over 1 year
I installed Virtualbox 5.0 using DEB package, I completely installed it, then I created a virtual machine of Mac OS Sierra.
Then I executed this command:
VBoxManage modifyvm "MacOsSierra" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
It gives me this error:
The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.13.0-26-generic) or it failed to load. Please recompile the kernel module and install it by sudo /sbin/rcvboxdrv setup
So as the error says, I executed the suggested command:
sudo /sbin/rcvboxdrv setup
And it gives me this error:
Stopping VirtualBox kernel modules ...done. Uninstalling old VirtualBox DKMS kernel modules ...done. Trying to register the VirtualBox kernel modules using DKMSERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox- 5.0.0.crash' Error! Bad return status for module build on kernel: 4.13.0-26-generic (x86_64) Consult /var/lib/dkms/vboxhost/5.0.6/build/make.log for more information. ...failed! (Failed, trying without DKMS) Recompiling VirtualBox kernel modules ...failed! (Look at /var/log/vbox-install.log to find out what went wrong)
The content of the
make.log
file is:DKMS make.log for vboxhost-5.0.6 for kernel 4.13.0-26-generic (x86_64) Tue Jan 23 10:26:19 IST 2018 make: Entering directory '/usr/src/linux-headers-4.13.0-26-generic' AR /var/lib/dkms/vboxhost/5.0.6/build/built-in.o AR /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/built-in.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/linux/SUPDrv- linux.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/SUPDrv.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/SUPDrvGip.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/SUPDrvSem.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/SUPDrvTracer.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/SUPLibAll.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/alloc- r0drv.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/initterm- r0drv.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/memobj- r0drv.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/mpnotification- r0drv.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/powernotification- r0drv.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/assert- r0drv-linux.o CC [M] /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/alloc-r0drv- linux.o In file included from /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/alloc-r0drv- linux.c:31:0: /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/alloc-r0drv- linux.c: In function ‘VBoxHost_RTMemContAlloc’: /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/the-linux- kernel.h:309:47: error: implicit declaration of function ‘set_pages_x’ [-Werror=implicit-function-declaration] # define MY_SET_PAGES_EXEC(pPages, cPages) set_pages_x(pPages, cPages) ^ /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/alloc-r0drv- linux.c:444:13: note: in expansion of macro ‘MY_SET_PAGES_EXEC’ MY_SET_PAGES_EXEC(&paPages[iPage], 1); ^ /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/alloc-r0drv- linux.c: In function ‘VBoxHost_RTMemContFree’: /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/the-linux- kernel.h:310:47: error: implicit declaration of function ‘set_pages_nx’ [-Werror=implicit-function-declaration] # define MY_SET_PAGES_NOEXEC(pPages, cPages) set_pages_nx(pPages, cPages) ^ /var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/alloc-r0drv- linux.c:492:13: note: in expansion of macro ‘MY_SET_PAGES_NOEXEC’ MY_SET_PAGES_NOEXEC(&paPages[iPage], 1); ^ cc1: some warnings being treated as errors scripts/Makefile.build:308: recipe for target '/var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/alloc-r0drv- linux.o' failed make[2]: *** [/var/lib/dkms/vboxhost/5.0.6/build/vboxdrv/r0drv/linux/alloc-r0drv- linux.o] Error 1 scripts/Makefile.build:581: recipe for target '/var/lib/dkms/vboxhost/5.0.6/build/vboxdrv' failed make[1]: *** [/var/lib/dkms/vboxhost/5.0.6/build/vboxdrv] Error 2 Makefile:1550: recipe for target '_module_/var/lib/dkms/vboxhost/5.0.6/build' failed make: *** [_module_/var/lib/dkms/vboxhost/5.0.6/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.13.0-26-generic'
-
AmeyaVS over 6 yearsDo you have the
linux-headers-generic
or more specificallylinux-headers-4.13.0-26-generic
package installed? If yes, then most probably the VirtualBox is not compatible with thelinux-kernel
installed.
-