Page 1 of 1

Fedora 11, unable to run Vbox,

Posted: 5. Aug 2009, 21:11
by earth757
I am trying to run Virtualbox on my fresh install of f11, i686, try to follow the error messages to solve this issue myself and using the forums but unable to solve this issue.
i get this>>
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. Re-setup 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.

then i get this>>>
[Ohio@f11-v3016us ~]$ su
Password:
[root@f11-v3016us Ohio]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
[root@f11-v3016us Ohio]#

then i get this>>>
ttempting to install using DKMS
removing old DKMS module vboxdrv version 3.0.2

------------------------------
Deleting module version: 3.0.2
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/vboxdrv/3.0.2/source ->
/usr/src/vboxdrv-3.0.2

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.29.4-167.fc11.i586 cannot be found at
/lib/modules/2.6.29.4-167.fc11.i586/build or /lib/modules/2.6.29.4-167.fc11.i586/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:147: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

this is about where my knowledge ends, i have tried many other command lines with no further assistance.

Re: Fedora 11, unable to run Vbox,

Posted: 5. Aug 2009, 22:24
by Sasquatch
Check the VirtualBox FAQ for how to add your user to the vboxusers group if you haven't done that yet. Then for the module, check my Howto: Install Linux Guest Additions + Xorg config, first section Preparations. You don't need to follow the rest. The first part is all about system preparations for building kernel modules.

Re: Fedora 11, unable to run Vbox,

Posted: 7. Oct 2009, 19:19
by Odisej
Well, I have the same problem ... followed the instructions, installed all the packages and still I get failed. Is there something else I can do.

Although I have ...

[root@localhost ~]# yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Loaded plugins: refresh-packagekit
Setting up Install Process
Package binutils-2.19.51.0.14-1.fc11.i586 already installed and latest version
Package gcc-4.4.1-2.fc11.i586 already installed and latest version
Package 1:make-3.81-15.fc11.i586 already installed and latest version
Package patch-2.5.4-39.fc11.i586 already installed and latest version
Package libgomp-4.4.1-2.fc11.i586 already installed and latest version
Package glibc-headers-2.10.1-5.i586 already installed and latest version
Package glibc-devel-2.10.1-5.i586 already installed and latest version
Package kernel-headers-2.6.30.8-64.fc11.i586 already installed and latest version
Package kernel-devel-2.6.30.8-64.fc11.i586 already installed and latest version
Nothing to do

I get...

/etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)

The file reporting ..

Error! Your kernel source for kernel 2.6.30.8-64.fc11.i686.PAE cannot be found $
/lib/modules/2.6.30.8-64.fc11.i686.PAE/build or /lib/modules/2.6.30.8-64.fc11.i$
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:147: *** Error: unable to find the sources of your current Linux kerne$


Thanx

Re: Fedora 11, unable to run Vbox,

Posted: 7. Oct 2009, 19:22
by Sasquatch
Did you reboot after a full system update and booted to the new kernel, if you got one? It's of little use to run kernel x, while the headers are for version y. You have to boot to kernel y before you can use the headers to build modules.

Re: Fedora 11, unable to run Vbox,

Posted: 7. Oct 2009, 21:10
by Odisej
I did turn it off and on again a few times (not that quantity would make a difference :)) but to no avail.

If "uname -r" gives the version of kernel being used then it is the same:

[xxxxxx@localhost ~]$ uname -r
2.6.30.8-64.fc11.i686.PAE

The version of VirtualBox is 3.0.8r53138 if that makes any difference.

Re: Fedora 11, unable to run Vbox,

Posted: 7. Oct 2009, 21:46
by Perryg
Since you have installed and (Make sure that you have done a full update) rerun the below prep (as SU) and after rebooting try to run /etc/init.d/vboxdrv setup again (as SU).

Code: Select all

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Watch for any errors or dependency problems. Something has to be out of sync.

Re: Fedora 11, unable to run Vbox,

Posted: 8. Oct 2009, 17:23
by Odisej
Couldn't solve it. Removed it and installed the version in the repos. It is an OSE edition but should suffice for my needs.

Thanks to everyone for help.

Re: Fedora 11, unable to run Vbox,

Posted: 20. Nov 2009, 06:08
by mkamelion
hi, i was looking around for the solution of the same problem and i saw this thread ... any way i think i figured it out so i thought i'd register and help with what i know

the main problem why the kernel modules are not compiling is because it can't find the kernel source here "/lib/modules/2.6.29.4-167.fc11.i686.PAE/build" or here "/lib/modules/2.6.29.4-167.fc11.i686.PAE/source"

it seams these two are links pointing out to "/usr/src/kernels/kernelver" and the shortcut is wrong the destination is not there
and when u use yum to install the kernel devel and headers it always installs the wrong ver so the shortcut remains pointing no were

so what u have to do is this use the command "uname -r" to find the kernel ver and then search for the kernel devel rpm for this kernel and download it and install it, if its a PAE kernel then it looks like this kernel 2.6.29.4-167.fc11.i686.PAE.rpm
after u install it make sure the shortcuts point to the right place then run "/etc/init.d/vboxdrv setup" it will take a little while and then presto ur in business no restart needed