"Kernel driver not installed - Fedora 15"

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mis
Posts: 3
Joined: 30. Nov 2011, 08:12
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: Centos

"Kernel driver not installed - Fedora 15"

Post by mis »

I am running VirtualBox on Fedora 15 with kernel 2.6.41.1-1.fc150.x86_64(x86_64).
When I tried to start the virtual machine, I received following error messages:
Failed to open a session for the virtual machine VMabc
The virtual machine 'VMabc' has terminated unexpectedly during startup with exit code 1.
Kernel driver not installed (rc=-1902)
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
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
When I run '/etc/init.d/vboxdrv setup', I get the following:

Code: Select all

Stopping VirtualBox kernel modules                            [OK]
Uninstalling old VirtualBox DKMS kernel modules             [OK]
Removing old VirtualBox netadp kernel module               [OK]
Removing old VirtualBox netflt kernel module                 [OK]
Removing old VirtualBox kernel module                          [OK]
Trying to register the VirtualBox kernel modules using DKMS Error! Bad return status for module build on kernel : 2.6.41.1-1.fc150.x86_64 (x86_64)
Consult /var/lib/dkms/vboxhost/4.1.6/build/make.log for more information.             [FAILED]
Following are the results of make.log

Code: Select all

/var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.c:39:28: fatal error: asm/amd_iommu.h: No shuch file or directory 
compilation terminated.
make[2]: *** [/var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.o] Error 1
make[1]: *** [/var/lib/dkms/vboxhost/4.1.6/build/vboxpci] Error 2
make: *** [_module_/var/lib/dkms/vboxhost/4.1.6/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.41.1-1.fc15.x86_64'
And the result for vbox-install.log is as follows:

Code: Select all

echo;                                                           \
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)
mkdir -p /tmp/vbox.5/.tmp_versions ; rm -f /tmp/vbox.5/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.5
I have all the following packages installed and updated:
gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Please help! I have to get back this VBox running.
Could someone also tell me the cause of this problem?
mis
Posts: 3
Joined: 30. Nov 2011, 08:12
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: Centos

Re: "Kernel driver not installed - Fedora 15"

Post by mis »

Here is the output of "rpm -qa | grep kernel"
kernel-devel-2.6.40.6-0.fc15.x86_64
kernel-devel-2.6.41.1-1.fc15.x86_64
kernel-2.6.40.6-0.fc15.x86_64
abrt-addon-kerneloops-2.0.3-4.fc15.x86_64
kernel-2.6.41.1-1.fc15.x86_64
kernel-headers-2.6.41.1-1.fc15.x86_64
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: "Kernel driver not installed - Fedora 15"

Post by Perryg »

Code: Select all

2.6.41.1-1.fc150.x86_64 
I don't see that in the headers you have listed to match the kkernel above.

Code: Select all

sudo yum install kernel-headers-$(uname -r)
The kernel-devel may work but you can also try to install using the $(uname -r) tag

Note: you should install dkms *first* so you don't need to manually go through this again.
Note: there also may be an issue with name changes and a kernel bug. if this does not help let me know.
mis
Posts: 3
Joined: 30. Nov 2011, 08:12
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: Centos

Re: "Kernel driver not installed - Fedora 15"

Post by mis »

I already have the dkms and kernel headers for 2.6.41.1-1.fc15.x86_64 installed and are latest versions.
doudi76
Posts: 1
Joined: 1. Dec 2011, 18:24
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: WinXP

Re: "Kernel driver not installed - Fedora 15"

Post by doudi76 »

I had the same problem

sorry my log file are in french

CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/linux/SUPR0IdcClient-linux.o
LD [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/vboxnetflt.o
LD /var/lib/dkms/vboxhost/4.1.6/build/vboxpci/built-in.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.o
/var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.c:39:28: erreur fatale: asm/amd_iommu.h : Aucun fichier ou dossier de ce type
compilation terminée.
make[2]: *** [/var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.o] Erreur 1
make[1]: *** [/var/lib/dkms/vboxhost/4.1.6/build/vboxpci] Erreur 2
make: *** [_module_/var/lib/dkms/vboxhost/4.1.6/build] Erreur 2
make: on quitte le répertoire « /usr/src/kernels/2.6.41.1-1.fc15.x86_64 »


the file amd_iommu.h is not included in 2.6.41.1-1.fc15.x86_64 kernel version.

To resolve that problem i do this :
[user@linux]$ sudo find / -name amd_iommu.h
/usr/src/kernels/2.6.40.6-0.fc15.x86_64/arch/x86/include/asm/amd_iommu.h

Then

sudo cp /usr/src/kernels/2.6.40.6-0.fc15.x86_64/arch/x86/include/asm/amd_iommu.h /usr/src/kernels/2.6.41.1-1.fc15.x86_64/arch/x86/include/asm/


make attention for the version of your kernel

the result :

Starting VirtualBox kernel modules [ OK ]


The VirtualBox module work fine.
Post Reply