1

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.logfile 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'

I don't know what should I do, please help.

  • Do you have the linux-headers-generic or more specifically linux-headers-4.13.0-26-generic package installed? If yes, then most probably the VirtualBox is not compatible with the linux-kernel installed. – AmeyaVS Jan 23 '18 at 5:20
2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.