Page 1 of 1

[Solved]Virtualbox 2.1.0 on Ubuntu 8.04 Kernel 2.6.24-23-386

Posted: 10. Jan 2009, 18:27
by frijoles
Hi

I've a problem since Ubuntu has upgraded de Kernel to 2.6.24-23-386, everytime I'm trying to start Virtualbox (Version 2.1.0) I'm getting this message

Image

so I tried to run "/etc/init.d/vboxdrv setup" as the message says

Code: Select all

root@host1:~# /etc/init.d/vboxdrv setup
 * Stopping VirtualBox kernel module                                                                                                                                    *  done.
 * Recompiling VirtualBox kernel module                                                                                                                                
 * Look at /var/log/vbox-install.log to find out what went wrong
root@host1:~#  
and in the /var/log/vbox-install.log says:

Code: Select all

root@host1:~# cat /var/log/vbox-install.log 
Attempting to install using DKMS
  removing old DKMS module vboxdrv version 

Error! Invalid number of parameters passed.
Usage: remove -m <module> -v <module-version> --all
   or: remove -m <module> -v <module-version> -k <kernel-version>

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

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

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.24-23-386 cannot be found at
/lib/modules/2.6.24-23-386/build or /lib/modules/2.6.24-23-386/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:143: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Schluss.
root@host1:~#
I've already deinstalled Virtualbox and installed new, but without success. I've also installed DKMS as recommended in the message, but also without success :( .

unfortunately I've no idea how to fix this problem :( any idea from your site?

cheers
frijoles

Posted: 10. Jan 2009, 18:54
by mtirabo
Hello: as it's written in the error message, the sources of your kernel are missing!!:
"Error: unable to find the sources of your current Linux kernel" so install them!!

Posted: 10. Jan 2009, 21:01
by Sasquatch
As you run Ubuntu, install the kernel-headers. sudo apt-get install linux-headers-generic if you run the generic kernel.

Posted: 12. Jan 2009, 22:37
by frijoles
mtirabo wrote:Hello: as it's written in the error message, the sources of your kernel are missing!!:
"Error: unable to find the sources of your current Linux kernel" so install them!!
I don't know what you mean? I think the kernel is intalled.

Code: Select all

root@host1:~#  uname -a
Linux host1 2.6.24-23-386 #1 Thu Nov 27 18:10:58 UTC 2008 i686 GNU/Linux



Sasquatch wrote:As you run Ubuntu, install the kernel-headers. sudo apt-get install linux-headers-generic if you run the generic kernel.
The linux-headers-generic is already installed.

Code: Select all

root@host1:~$ dpkg -l |grep linux-headers-generic
ii  linux-headers-generic     2.6.24.23.25     Generic Linux kernel headers
root@host1:~$ 

Unfortunately I still don't know what the problem is :( ....

cheers
frijoles

Posted: 12. Jan 2009, 22:55
by Sasquatch
Are the kernel you run and the headers you have installed the exact same version? Do an apt-get update and apt-get dist-upgrade to make sure they are the same.

Posted: 13. Jan 2009, 20:04
by TerryE
Read the error messages carefully. You've got a 2.6.24-23-386 kernel running and 2.6.24.23.25 linux headers. This string mismatch might be confusing the /etc/init.d/vboxdrv setup process.

Posted: 15. Jan 2009, 23:23
by frijoles
TerryE wrote:Read the error messages carefully. You've got a 2.6.24-23-386 kernel running and 2.6.24.23.25 linux headers. This string mismatch might be confusing the /etc/init.d/vboxdrv setup process.
Thanks TerryE you was right about the linux-headers :D , I've just uninstalled the linux-headers-2.6.24-23-generic

Code: Select all

root@host1:~$ apt-get --purge remove linux-headers-2.6.24-23-generic
and installed the linux-headers-2.6.24-23-386

Code: Select all

root@host1:~$ apt-get install linux-headers-2.6.24-23-386
after a reboot my virtualbox was up and running again :lol: I'm happy now 8)

cheers
frijoles

Posted: 19. Jan 2009, 02:52
by brettalton
I have the exact same errors as in post #1 (I'm using Ubuntu 8.04 and Virutalbox 2.1) but the solution seems to be different.

My /var/log/vbox-install.log displays:
Makefile:143: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
I installed the linux-source and header packages, but it looks like I actually have to manually edit the Makefile. Where do I do this?

Code: Select all

$ apt-cache policy linux-image-386 linux-source virtualbox-2.1
linux-image-386:
  Installed: 2.6.24.23.25
  Candidate: 2.6.24.23.25
  Version table:
 *** 2.6.24.23.25 0
        500 http://archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     2.6.24.22.24 0
        500 http://archive.ubuntu.com hardy-security/main Packages
     2.6.24.16.18 0
        500 http://archive.ubuntu.com hardy/main Packages
linux-source:
  Installed: 2.6.24.23.25
  Candidate: 2.6.24.23.25
  Version table:
 *** 2.6.24.23.25 0
        500 http://archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     2.6.24.22.24 0
        500 http://archive.ubuntu.com hardy-security/main Packages
     2.6.24.16.18 0
        500 http://archive.ubuntu.com hardy/main Packages
virtualbox-2.1:
  Installed: 2.1.0-41146_Ubuntu_hardy
  Candidate: 2.1.0-41146_Ubuntu_hardy
  Version table:
 *** 2.1.0-41146_Ubuntu_hardy 0
        100 /var/lib/dpkg/status

Posted: 19. Jan 2009, 03:26
by TerryE
Hi your post confuses me. You say that it is a solution but it doesn't work. What has the apt-cache policy got to do with this? Why do you need to edit anything in the makefile?

What is your exact error message? If they are the same as the first post then the issue and solution are the same also.

Posted: 20. Jan 2009, 21:28
by Sasquatch
Brettalton, your problem is that you don't have the linux-headers installed for your kernel. Install them. You have the same issue as the TS, only he had the wrong version, where you don't have any at all.

Same Error's Here..

Posted: 22. Jan 2009, 04:18
by mrmookie
I'm having the same issues here..

Code: Select all

uname -a
Linux joy-desktop 2.6.27-10-generic #1 SMP Fri Nov 21 12:00:22 UTC 2008 i686 GNU/Linux
HERE IS THE ERROR in vbox-install.log:

Code: Select all

DKMS: add Completed.
Error! Your kernel source for kernel 2.6.27-10-generic cannot be found at
/lib/modules/2.6.27-10-generic/build or /lib/modules/2.6.27-10-generic source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
I've tried apt-get update, upgrade, dist-upgrade, etc.. How did I this happen from a update? I'm assuming I need the kernel source for 10-generic.

I tried that and..

Code: Select all

 sudo apt-get install linux-headers-2.6.27-10-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-2.6.27-10-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package linux-headers-2.6.27-10-generic has no installation candidate
Not sure where to go from here..

Please help..

Posted: 22. Jan 2009, 18:28
by TerryE
I don't recognise your distro. Yes you need the kernel header sources, plus the basic compile tools to build them (this set is known as build-essential in Ubuntu but this varies for other distros). You need to find out what package to use to get the sources on your Distro's support forum.