Page 1 of 1
kernel issue after update
Posted: 1. Jul 2009, 22:14
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.
Re: kernel issue after update
Posted: 1. Jul 2009, 22:21
by baf
run
uname -a
to verify that you are running the kernel you think.
Re: kernel issue after update
Posted: 1. Jul 2009, 22:28
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.
Re: kernel issue after update
Posted: 1. Jul 2009, 22:33
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)
Re: kernel issue after update
Posted: 1. Jul 2009, 22:39
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?
Re: kernel issue after update
Posted: 1. Jul 2009, 22:48
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.
Re: kernel issue after update
Posted: 1. Jul 2009, 23:05
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.
Re: kernel issue after update
Posted: 2. Jul 2009, 12:49
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.
Re: kernel issue after update
Posted: 2. Jul 2009, 13:12
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.
