LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   virtual box failed to boot after kernel update (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/virtual-box-failed-to-boot-after-kernel-update-816061/)

digsecurity 06-24-2010 01:30 AM

virtual box failed to boot after kernel update
 
Hi all,
I am using fedora13 as my host machine. My virtual machine failed to boot after I updated my kernel with "yum update kernel" command.

This is the error when I try to boot my VM.

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. 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.
Here is the output of '/etc/init.d/vboxdrv setup' command

Quote:

[root@krishna ~]# /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)
And output of /var/log/vbox-install.log
Quote:

[root@krishna ~]# cat /var/log/vbox-install.log
Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.1.8

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

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

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.33.5-124.fc13.x86_64 cannot be found at
/lib/modules/2.6.33.5-124.fc13.x86_64/build or /lib/modules/2.6.33.5-124.fc13.x86_64/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
What should I do now.

bathory 06-24-2010 02:18 AM

Hi,

You need to update also your kernel sources.
Compiling a driver needs the sources for the running kernel

Regards

digsecurity 06-24-2010 05:23 AM

Quote:

Originally Posted by bathory (Post 4013389)
Hi,

You need to update also your kernel sources.
Compiling a driver needs the sources for the running kernel

Regards

Thanks, I updated the kernel-devel package with "yum update kernel-devel" command and ran the "/etc/init.d/vboxdrv setup" command. Everything is normal now.


All times are GMT -5. The time now is 12:19 AM.