The vboxdrv kernel module is not loaded
Posted: 9. Mar 2016, 10:40
Hi,
I'm on Ubuntu 15.10, kernel 4.2.0-30-generic. I've tried both virtualbox installation methods, by official ubuntu repositories and by following all the instructions in virtualbox downloads page. Always got the same error when reying to start the program:
I've already tried:
- reconfigure dkms-virtualbox
- upgrade system
- upgrade dis
- autoclean
- purge and delete virtualbox
- upgrade and downgrade kernel
- ... most of solutions found on internet
When I try I get:
Content of /var/lib/dkms/vboxhost/5.0.16/build/make.log:
Content of /var/log/vbox-install.log:
Some occurrences?
Thank you very much.
I'm on Ubuntu 15.10, kernel 4.2.0-30-generic. I've tried both virtualbox installation methods, by official ubuntu repositories and by following all the instructions in virtualbox downloads page. Always got the same error when reying to start the program:
Code: Select all
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.2.0-30-generic) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/rcvboxdrv setup
You will not be able to start VMs until this problem is fixed.
- reconfigure dkms-virtualbox
- upgrade system
- upgrade dis
- autoclean
- purge and delete virtualbox
- upgrade and downgrade kernel
- ... most of solutions found on internet
When I try
Code: Select all
sudo /sbin/rcvboxdrv setupCode: Select all
erwol@erwol-tecerapto:~$ sudo /sbin/rcvboxdrv setup
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.2.0-30-generic (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.16/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)
Code: Select all
DKMS make.log for vboxhost-5.0.16 for kernel 4.2.0-30-generic (x86_64)
mié mar 9 09:20:40 CET 2016
make: Entering directory '/usr/src/linux-headers-4.2.0-30-generic'
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
LD /var/lib/dkms/vboxhost/5.0.16/build/built-in.o
LD /var/lib/dkms/vboxhost/5.0.16/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/vboxhost/5.0.16/build/vboxdrv/linux/SUPDrv-linux.o
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/vboxhost/5.0.16/build/vboxdrv/linux/SUPDrv-linux.o' failed
make[2]: *** [/var/lib/dkms/vboxhost/5.0.16/build/vboxdrv/linux/SUPDrv-linux.o] Error 1
scripts/Makefile.build:403: recipe for target '/var/lib/dkms/vboxhost/5.0.16/build/vboxdrv' failed
make[1]: *** [/var/lib/dkms/vboxhost/5.0.16/build/vboxdrv] Error 2
Makefile:1398: recipe for target '_module_/var/lib/dkms/vboxhost/5.0.16/build' failed
make: *** [_module_/var/lib/dkms/vboxhost/5.0.16/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.2.0-30-generic'Code: Select all
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 5.0.16
------------------------------
Deleting module version: 5.0.16
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/5.0.16/source ->
/usr/src/vboxhost-5.0.16
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=4.2.0-30-generic -C /lib/modules/4.2.0-30-generic/build M=/var/lib/dkms/vboxhost/5.0.16/build....(bad exit status: 2)
Failed to install using DKMS, attempting to install without
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/4.2.0-30-generic/build modules
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/4.2.0-30-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxdrv/ -I/tmp/vbox.0/vboxdrv/include -I/tmp/vbox.0/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/linux/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
scripts/Makefile.build:258: recipe for target '/tmp/vbox.0/linux/SUPDrv-linux.o' failed
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
Makefile:1398: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
Makefile:298: recipe for target 'vboxdrv' failed
make: *** [vboxdrv] Error 2Thank you very much.