LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Virtualbox Error - Kernel driver not installed (rc=-1908) (http://www.linuxquestions.org/questions/linux-software-2/virtualbox-error-kernel-driver-not-installed-rc%3D-1908-a-761657/)

callumacrae 10-13-2009 03:08 PM

Virtualbox Error - Kernel driver not installed (rc=-1908)
 
Hi,

I've googled this a lot, and cannot find anything that works for me.

Whenever I try to start one of my virtual machines virtualbox gives two errors:

Quote:

Failed to open a session for the virtual machine MS-Dos 6.22.
Virtual machine 'MS-Dos 6.22' has terminated unexpectedly during startup.

Details:

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {540dcfda-3df2-49c6-88fa-033a28c2ff85}
Quote:

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.
If I run that script it outputs:

Quote:

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

Quote:

Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.0.8

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

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

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.30.8-64.fc11.i586 cannot be found at
/lib/modules/2.6.30.8-64.fc11.i586/build or /lib/modules/2.6.30.8-64.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.
I have reinstalled more than once, this doesn't work either.

Anyone know what is wrong?

~Callum

brianL 10-13-2009 03:13 PM

Looks like you need to install your kernel source. Don't know the procedure for Fedora.

callumacrae 10-13-2009 03:23 PM

I have no idea what that means.

This one? http://www.linuxquestions.org/questi...ources-211477/

~Callum

callumacrae 10-13-2009 03:25 PM

yum install kernel-sourcecode doesn't work anyway.

~Callum

AlucardZero 10-13-2009 03:44 PM

kernel-headers-2.6.30.8-64.fc11.i586 ??

THCsphere 10-13-2009 05:32 PM

If you did infact install the whole thing

go to /etc/rc.d/ and boot rc.vboxdrv

If this does not work, you need the Virtual Box kernel, or if you have a rc.vboxdrvnew or with a 1 on it, Replace that over your old one. I had this same issue and thats what mine was :)

callumacrae 10-14-2009 11:12 AM

Quote:

[root@desktop-fedora callum]# yum install kernel-headers-2.6.30.8-64.fc11.i586
Loaded plugins: refresh-packagekit
adobe-linux-i386 | 951 B 00:00
updates/metalink | 15 kB 00:00
updates | 4.4 kB 00:00
updates/primary_db | 4.1 MB 00:10
Setting up Install Process
Package kernel-headers-2.6.30.8-64.fc11.i586 already installed and latest version
Nothing to do
:(

Quote:

Originally Posted by THCsphere (Post 3718124)
If you did infact install the whole thing

go to /etc/rc.d/ and boot rc.vboxdrv

If this does not work, you need the Virtual Box kernel, or if you have a rc.vboxdrvnew or with a 1 on it, Replace that over your old one. I had this same issue and thats what mine was :)

in /etc/rc.d/ there is no file called rc.vboxdrv, or anything to do with virtualbox. In /etc/rc.d/init.d there is a file called vboxdrv, that one?

Sorry, but what's the Virtual Box kernel? I'm pretty new to Linux, and really new to Fedora.

~Callum

brianL 10-14-2009 11:19 AM

Run lsmod, to see if the module has been built and installed.

callumacrae 10-14-2009 11:49 AM

Have some unreadable text:

Quote:

Module Size Used by
fuse 49412 2
sunrpc 155648 1
nf_conntrack_netbios_ns 2104 0
ip6t_REJECT 4532 2
ip6t_ipv6header 1820 2
nf_conntrack_ipv6 17716 5
ip6table_filter 3148 1
ip6_tables 10960 2 ip6t_ipv6header,ip6table_filter
ipv6 235696 22 ip6t_REJECT,nf_conntrack_ipv6
p4_clockmod 4344 0
dm_multipath 14040 0
ppdev 6480 0
snd_intel8x0 28148 3
snd_ac97_codec 91984 1 snd_intel8x0
ac97_bus 1408 1 snd_ac97_codec
snd_pcm 62556 3 snd_intel8x0,snd_ac97_codec
snd_timer 17876 1 snd_pcm
snd 50336 9 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
i2c_i801 10196 0
pcspkr 2168 0
serio_raw 5088 0
soundcore 5476 1 snd
snd_page_alloc 7712 2 snd_intel8x0,snd_pcm
iTCO_wdt 10348 0
iTCO_vendor_support 2752 1 iTCO_wdt
e100 28660 0
mii 4024 1 e100
parport_pc 22492 0
parport 28968 2 ppdev,parport_pc
floppy 47260 0
ata_generic 4288 0
pata_acpi 3648 0
i915 154028 2
drm 167584 2 i915
i2c_algo_bit 4788 1 i915
video 18696 1 i915
output 2440 1 video
i2c_core 24984 4 i2c_i801,i915,drm,i2c_algo_bit
Nothing about vbox.

~Callum

callumacrae 10-14-2009 12:22 PM

Followed this: http://www.derekhildreth.com/blog/ho...a-11-tutorial/

Fixed.

Thanks for all your help :)

~Callum

callumacrae 10-28-2009 01:11 PM

Problem is back with a new install of Fedora. Done everything I can think of. One thing I noticed:

Quote:

Originally Posted by vbox-install.log
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.

Those files/directories do not exist. This is also not the latest kernel, how do I get it to use the most recent kernel?

~Callum

callumacrae 10-28-2009 02:13 PM

How do I create a symbolic link?

I've tried:

Quote:

ln -s /usr/src/kernels/2.6.29.4-167.fc11.i586 /lib/modules/2.6.29.4-167.fc11.i586/build
Didn't work though.

~Callum


All times are GMT -5. The time now is 07:21 PM.