Your kernel source cannot be found

Discussions related to using VirtualBox on Linux hosts.

Your kernel source cannot be found

Postby BiGio » 21. Feb 2009, 20:25

Hi to everybody,

I have install virtualbox on my Ubuntu 8.04 without problem, but when i try to start the new Virtual Machine for install the guest OS i recive this message:

VERR_VM_DRIVER_NOT_INSTALLED (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu or Fedora should install the DKMS package at first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.


I have install DKMS and then I have execute sudo '/etc/init.d/vboxdrv setup'.

But this is the Output:

* Stopping VirtualBox kernel module
Opening /proc/modules: No such file or directory
* done.
* Recompiling VirtualBox kernel module
* Look at /var/log/vbox-install.log to find out what went wrong


This is the /var/log/vbox-install.log file content:

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.4
completely from the DKMS tree.
------------------------------
Done.

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

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.28.1-xxxx-std-ipv4-32 cannot be found at
/lib/modules/2.6.28.1-xxxx-std-ipv4-32/build or /lib/modules/2.6.28.1-xxxx-std-ipv4-32/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. Stop.



effectively in the folder /lib/modules/ there is not the kernel 2.6.28.1 but just the 2.6.24.22 and 2.6.24.23

What can I do?

Thanks

PS
Sorry for my english
BiGio
 
Posts: 1
Joined: 21. Feb 2009, 19:47

Postby Einstein » 21. Feb 2009, 22:03

I'm with the same problem, and looking for a solution :(
Einstein
 
Posts: 4
Joined: 1. Jan 2008, 03:41

Postby Sasquatch » 21. Feb 2009, 22:37

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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Postby Einstein » 21. Feb 2009, 22:42

Solved!

This command in the console:
sudo apt-get install linux-headers-$(uname -r)

After, execute this:
/etc/init.d/vboxdrv setup

:)
Einstein
 
Posts: 4
Joined: 1. Jan 2008, 03:41

Re: Your kernel source cannot be found

Postby jricardo » 7. Sep 2009, 03:35

I tried the suggestion of Einstein and it worked.
Thanks for the help, friend.
jricardo
 
Posts: 1
Joined: 7. Sep 2009, 03:29
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows XP Prof Sp2

Re: Your kernel source cannot be found

Postby brownscotte » 12. Sep 2009, 06:12

Hey Einstein,
I tried what you typed and with me it just gave me this error message:
** Stopping VirutalBox kernel module
* done.
* Recompiling VirtualBox kernel module
/etc/init.d/vboxdrv:339: cannot create /var/log/vbox-install.logg: Permission denied

*Look at /var/log/vbox-install.log to find out what went wrongs

any solution or would anyone know how to update My ubuntu 9.04 jaunty jackalope Headers
brownscotte
 
Posts: 3
Joined: 12. Sep 2009, 05:43
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: XP Pro

Re: Your kernel source cannot be found

Postby Sasquatch » 13. Sep 2009, 13:13

brownscotte wrote:Hey Einstein,
I tried what you typed and with me it just gave me this error message:
** Stopping VirutalBox kernel module
* done.
* Recompiling VirtualBox kernel module
/etc/init.d/vboxdrv:339: cannot create /var/log/vbox-install.logg: Permission denied

*Look at /var/log/vbox-install.log to find out what went wrongs

any solution or would anyone know how to update My ubuntu 9.04 jaunty jackalope Headers

You're not running the compile as root, that's clearly shown by the permission denied error.
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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Your kernel source cannot be found

Postby brownscotte » 30. Sep 2009, 08:16

its says that Permission is Denied, but I'm new with linux and kinda lost because I've added my username to the root user group and everything and it still doesnt allow me to do it, it still says Permission Denied. then I tried logging into root and it wont allow me to, then I tried opening up run and typed gksudo nautilus in the run command and it brings up a window browser of my system but how to I run the terminal from here to execute the command as root or what do would I do next
brownscotte
 
Posts: 3
Joined: 12. Sep 2009, 05:43
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: XP Pro

Re: Your kernel source cannot be found

Postby Sasquatch » 30. Sep 2009, 09:35

You run things as root in the same way you started Nautilus. Gksudo, or gksu are the graphical variant of the CLI sudo command. It is listed in the FAQ, to use sudo, right?
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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Your kernel source cannot be found

Postby tipiglen » 4. Jun 2010, 17:33

Hi Einstein.

I tried your suggestion and it didn't fully work,
I followed up with
Code: Select all   Expand viewCollapse view
root@asus:~# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
  linux-headers-2.6.31-22-generic-pae
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 687kB of archives.
After this operation, 8,888kB of additional disk space will be used.
Get: 1 http://gb.archive.ubuntu.com karmic-updates/main linux-headers-2.6.31-22-generic-pae 2.6.31-22.60 [687kB]
Fetched 687kB in 1s (478kB/s)                               
Selecting previously deselected package linux-headers-2.6.31-22-generic-pae.
(Reading database ... 244843 files and directories currently installed.)
Unpacking linux-headers-2.6.31-22-generic-pae (from .../linux-headers-2.6.31-22-generic-pae_2.6.31-22.60_i386.deb) ...
Setting up linux-headers-2.6.31-22-generic-pae (2.6.31-22.60) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms
 * Running DKMS auto installation service for kernel 2.6.31-22-generic-pae                                                                                     
 *  vboxdrv (3.0.8)...                                                          vboxdrv (3.0.8): Installing module.
....................
.........
                                                                         [ OK ]
 *  vboxnetadp (3.0.8)...                                                       vboxnetadp (3.0.8): Installing module.
.................
......
                                                                         [ OK ]
 *  vboxnetflt (3.0.8)...                                                       vboxnetflt (3.0.8): Installing module.
.......................
......
                                                                         [ OK ]
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common

Setting up virtualbox-ose-source (3.0.8-dfsg-1ubuntu1) ...
Adding modules to DKMS build system
Doing initial module builds
Installing initial modules
Done.
 * Stopping VirtualBox kernel modules                                    [ OK ]
 * Starting VirtualBox kernel modules                                    [ OK ]

root@asus:~#

And now everything works fine.
tipiglen
 
Posts: 1
Joined: 4. Jun 2010, 17:27
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: ubuntu 9.10


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 34 guests