kernel issue after update

Discussions related to using VirtualBox on Linux hosts.
Post Reply
sarca
Posts: 4
Joined: 1. Jul 2009, 21:50
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: winxp

kernel issue after update

Post by sarca »

after an update my system can start the os guest in my virtual machine. The error say "Kernel driver not installed (rc=-1908)". It ask me to run this command '/etc/init.d/vboxdrv setup'. When I do that I got another error saying to look into a log file. The log file say:
Error! Your kernel source for kernel 2.6.27-11-generic cannot be found at /lib/modules/2.6.27-11-generic/build or /lib/modules/2.6.27-11-generic/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.
my kernel actually is 2.6.28-11-generic. I did sudo dkms --kernelsourcedir <my-kernel-dir> and try '/etc/init.d/vboxdrv setup' again but still getting the same error.

Thank you in advance.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: kernel issue after update

Post by baf »

run
uname -a
to verify that you are running the kernel you think.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
sarca
Posts: 4
Joined: 1. Jul 2009, 21:50
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: winxp

Re: kernel issue after update

Post by sarca »

Hi, this is the response from the command:
2.6.27-11-generic #1 SMP Wed Apr 1 20:57:48 UTC 2009 i686 GNU/Linux.

I can see in the folder /lib/modules/2.6.27-11-generic there isn't another one called build or source.

What can I do.
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 issue after update

Post by Perryg »

As BAF says do a uname -r to see for sure that you are using the new kernel
But I think you need the right kernel headers. If so run the following command in terminal.

Code: Select all

sudo apt-get install kernel-headers-$(uname -r)
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: kernel issue after update

Post by baf »

And as you see from uname you are still using the old kernel. You have to update your bootloader somehow. Do you know if you are using grub or lilo?

Have you rebooted after the upgrade?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
sarca
Posts: 4
Joined: 1. Jul 2009, 21:50
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: winxp

Re: kernel issue after update

Post by sarca »

sudo apt-get install kernel-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package kernel-headers-2.6.27-11-generic

I'm using grub and I did reboot several times the last hour. I don't know how can I update the grub.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: kernel issue after update

Post by baf »

look for a file /boot/grub/menu.lst or /boot/grub/grub.xxx where xxx may be conf lst or similar
read that file. it might talk about update-grub or similar.
backup the file and run that command. If this doesn't seem correct check with a debian forum as this is not a virtualbox problem.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: kernel issue after update

Post by Sasquatch »

You upgraded your Intrepid install to Jaunty, and the upgrade process failed to include the new kernel in the grub config. Run a sudo update-grub to generate a new menu.lst file. If you update your system to a newer kernel, the update-grub command is run automatically. Kernel 2.6.28-13 is already available for Ubuntu. When installing it, check the terminal output and don't let it close the window automatically. You can use apt-get update && apt-get dist-upgrade as root on the terminal. Or use Synaptic Package Manager and uncheck the checkbox to let the window stay there until you click on close. Read it's output, and if you don't understand any of it, paste the output here. Do filter it so it only includes kernel messages.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
sarca
Posts: 4
Joined: 1. Jul 2009, 21:50
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: winxp

Re: kernel issue after update

Post by sarca »

You upgraded your Intrepid install to Jaunty, and the upgrade process failed to include the new kernel in the grub config.
Yes, you are right. Looking into the boot folder, I can see I have the 2.6.28-13-generic kernel version. But when I run sudo update-grub, the command don't generate a new menu.lst for me, don't know why. I edited the file menu.lst manually and now I can see the kernel version in the grub. Immediately after select the new kernel, the vbox driver was compiled successfully before appear the login screen. Now everything works great.

Thank you very much guys. Very good help and very fast. :mrgreen:
Post Reply