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

Discussions related to using VirtualBox on Linux hosts.
Post Reply
frijoles
Posts: 4
Joined: 10. Jan 2009, 17:44

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

Post 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
Last edited by frijoles on 18. Jan 2009, 11:16, edited 1 time in total.
mtirabo
Posts: 2
Joined: 10. Jan 2009, 18:48

Post 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!!
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

Post by Sasquatch »

As you run Ubuntu, install the kernel-headers. sudo apt-get install linux-headers-generic if you run the generic kernel.
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.
frijoles
Posts: 4
Joined: 10. Jan 2009, 17:44

Post 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
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

Post 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.
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.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post 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.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
frijoles
Posts: 4
Joined: 10. Jan 2009, 17:44

Post 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
brettalton
Posts: 3
Joined: 19. Jan 2009, 02:46

Post 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
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post 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.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
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

Post 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.
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.
mrmookie
Posts: 2
Joined: 12. Apr 2008, 22:02

Same Error's Here..

Post 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..
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post 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.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Post Reply