vboxdrv.sh: failed: modprobe vboxdrv failed

Discussions related to using VirtualBox on Linux hosts.
Post Reply
craigLi
Posts: 1
Joined: 16. Mar 2018, 22:05

vboxdrv.sh: failed: modprobe vboxdrv failed

Post by craigLi »

Hello,

I"m having trouble installing "VirtualBox" on SUSE 12 SP2. (uname -r: 4.4.74-92.38-default, x86_64)

I've tried these 3 packages and they all keep failing with the same error "vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why."
VirtualBox-4.3-4.3.40_110317_openSUSE114-1.x86_64.rpm
VirtualBox-5.2-5.2.8_121009_openSUSE132-1.x86_64.rpm
VirtualBox-5.2.8-121009-Linux_amd64.run

In /var/log/vbox-install.log, I see the below error

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.74-92.38-default/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make -C ../../../linux-4.4.74-92.38 O=/usr/src/linux-4.4.74-92.38-obj/x86_64/default/. modules
make -C /usr/src/linux-4.4.74-92.38-obj/x86_64/default KBUILD_SRC=/usr/src/linux-4.4.74-92.38 \
-f /usr/src/linux-4.4.74-92.38/Makefile modules
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."; \


I did run "make oldconfig && make prepare" at /usr/src/linux and it ran successfully. But it still throws the same error in vbox-install.log.

I have the below packages installed on the vm.
root@rpm -qa kernel*
kernel-devel-4.4.74-92.38.1.noarch
kernel-default-devel-4.4.114-92.67.1.x86_64
kernel-macros-4.4.74-92.38.1.noarch
kernel-source-4.4.74-92.38.1.noarch
kernel-default-4.4.74-92.38.1.x86_64
kernel-source-4.4.114-92.67.1.noarch
kernel-default-devel-4.4.74-92.38.1.x86_64
kernel-devel-4.4.114-92.67.1.noarch
kernel-firmware-20170530-21.10.1.noarch
kernel-syms-4.4.114-92.67.1.x86_64
kernel-syms-4.4.74-92.38.1.x86_64

root@rpm -qa gcc*
gcc-4.8-6.189.x86_64
gcc-info-4.8-6.189.x86_64
gcc48-info-4.8.5-31.3.1.noarch
gcc48-4.8.5-31.3.1.x86_64



Appreciate if someone could help here.
wrkbear
Posts: 35
Joined: 13. Nov 2008, 05:05
Primary OS: Ubuntu 12.04
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: vboxdrv.sh: failed: modprobe vboxdrv failed

Post by wrkbear »

I have exactly the same problem with Ubuntu 14.04, kernel version 3.13.0-143 and vbox version 5.2.8. Problem first occurred on previous version of vbox when updating linux kernel.

Virtualbox launches but won't launch guests. Error message reads
Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/sbin/vboxconfig'


Running /sbin/vboxconfig gives the following message:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.

Re-running /sbin/vboxconfig gives gives the same results and there is no /etc/vboxdrv before or after running /sbin/vboxconfig.

dmesg reads:
vboxdrv: version magic '3.13.0-143-generic SMP mod_unload modversions ' should be '3.13.0-143-generic SMP mod_unload modversions retpoline '

vbox-install.log message:
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."; \

Hopefully someone knows how to fix this.
wrkbear
Posts: 35
Joined: 13. Nov 2008, 05:05
Primary OS: Ubuntu 12.04
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: vboxdrv.sh: failed: modprobe vboxdrv failed

Post by wrkbear »

Virtualbox 5.2.8 works fine on Ubuntu 14.04, kernel version 3.13.0-139. Problem above is unique to kernel version 3.13.0-143.
linuxboxuser
Posts: 1
Joined: 4. Apr 2018, 15:37

Re: vboxdrv.sh: failed: modprobe vboxdrv failed

Post by linuxboxuser »

I have exactly the same problem with Ubuntu 14.04, kernel version 3.13.0-143 and vbox version 5.2.8.
Updated to kernel version 3.13.0.-144 with vbox version 5.2.8.

Same errormessages.

Are there more detailed information about this issue ?
Can i expect an update of vbox, so it can run on kernel version 3.13.0.143 and above ?

running 3.13.0-139 is not a good option. Screenresolution where bad and mouse was not working .... but not searched for this issue yet
Post Reply