Fedora 23 and VirtualBox 5 Kernel Modules wont load
Posted: 20. Apr 2016, 13:06
After updating this morning the VirtualBox 5 kernel modules fail to load.
/sbin/rcvboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 4.4.6-301.fc23.x86_64 cannot be found at
/lib/modules/4.4.6-301.fc23.x86_64/build or /lib/modules/4.4.6-301.fc23.x86_64/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
vbox-install.log
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 5.0.18
------------------------------
Deleting module version: 5.0.18
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/5.0.18/source ->
/usr/src/vboxhost-5.0.18
DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
I have all the requirements installed
# uname -r
4.4.6-301.fc23.x86_64
Package kernel-headers-4.4.6-301.fc23.x86_64 is already installed,
# dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
Last metadata expiration check: 0:46:28 ago on Wed Apr 20 11:18:49 2016.
Package binutils-2.25-17.fc23.x86_64 is already installed, skipping.
Package gcc-5.3.1-6.fc23.x86_64 is already installed, skipping.
Package make-1:4.0-5.1.fc23.x86_64 is already installed, skipping.
Package patch-2.7.5-2.fc23.x86_64 is already installed, skipping.
Package libgomp-5.3.1-6.fc23.x86_64 is already installed, skipping.
Package glibc-headers-2.22-11.fc23.x86_64 is already installed, skipping.
Package glibc-devel-2.22-11.fc23.x86_64 is already installed, skipping.
Package kernel-headers-4.4.6-301.fc23.x86_64 is already installed, skipping.
Package kernel-devel-4.4.5-300.fc23.x86_64 is already installed, skipping.
Package kernel-devel-4.4.6-300.fc23.x86_64 is already installed, skipping.
Package kernel-devel-4.4.6-301.fc23.x86_64 is already installed, skipping.
Package dkms-2.2.0.3-31.git.7c3e7c5.fc23.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
Please has anyone got an idea on how to fix this ?
/sbin/rcvboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 4.4.6-301.fc23.x86_64 cannot be found at
/lib/modules/4.4.6-301.fc23.x86_64/build or /lib/modules/4.4.6-301.fc23.x86_64/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
vbox-install.log
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 5.0.18
------------------------------
Deleting module version: 5.0.18
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/5.0.18/source ->
/usr/src/vboxhost-5.0.18
DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
I have all the requirements installed
# uname -r
4.4.6-301.fc23.x86_64
Package kernel-headers-4.4.6-301.fc23.x86_64 is already installed,
# dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
Last metadata expiration check: 0:46:28 ago on Wed Apr 20 11:18:49 2016.
Package binutils-2.25-17.fc23.x86_64 is already installed, skipping.
Package gcc-5.3.1-6.fc23.x86_64 is already installed, skipping.
Package make-1:4.0-5.1.fc23.x86_64 is already installed, skipping.
Package patch-2.7.5-2.fc23.x86_64 is already installed, skipping.
Package libgomp-5.3.1-6.fc23.x86_64 is already installed, skipping.
Package glibc-headers-2.22-11.fc23.x86_64 is already installed, skipping.
Package glibc-devel-2.22-11.fc23.x86_64 is already installed, skipping.
Package kernel-headers-4.4.6-301.fc23.x86_64 is already installed, skipping.
Package kernel-devel-4.4.5-300.fc23.x86_64 is already installed, skipping.
Package kernel-devel-4.4.6-300.fc23.x86_64 is already installed, skipping.
Package kernel-devel-4.4.6-301.fc23.x86_64 is already installed, skipping.
Package dkms-2.2.0.3-31.git.7c3e7c5.fc23.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
Please has anyone got an idea on how to fix this ?