Page 1 of 1

Fedora 15 DKMS

Posted: 30. Sep 2011, 11:14
by raizcorp
Hi all i get this error when running the vm

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. Users of Ubuntu, Fedora or Mandriva 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 the setup i get the following error:

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 2.6.38.6-26.rc1.fc15.x86_64 cannot be found at
/lib/modules/2.6.38.6-26.rc1.fc15.x86_64/build or /lib/modules/2.6.38.6-26.rc1.fc15.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)
[root@RaizSrv2 raizcorp]# cd /var/log/vbox-install.log



the log file has this error:


Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.2

------------------------------
Deleting module version: 4.1.2
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.1.2/source ->
/usr/src/vboxhost-4.1.2

DKMS: add Completed.
Failed to install using DKMS, attempting to install without
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.



Anyone know how i can fix this?

Re: Fedora 15 DKMS

Posted: 30. Sep 2011, 14:22
by Perryg

Code: Select all

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Or 32 bit

Code: Select all

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-pae-devel

Re: Fedora 15 DKMS

Posted: 30. Sep 2011, 15:17
by raizcorp
Thank you, i ran that and then the setup again but it didnt take the kernel build.

same error message. do i need to reboot first or run something else?

Re: Fedora 15 DKMS

Posted: 30. Sep 2011, 15:28
by Martin
Do you have dkms 2.2.0.2-1? (see https://bugzilla.redhat.com/show_bug.cgi?id=702483 )

Re: Fedora 15 DKMS

Posted: 10. Oct 2011, 08:19
by raizcorp
Yes i do. I didnt see any patch files there do you know if there is a fix for this yet?