Error=-1908

Discussions related to using VirtualBox on Linux hosts.
Post Reply
andytaysg
Posts: 2
Joined: 21. May 2009, 04:12
Primary OS: Ubuntu 8.10
VBox Version: OSE other
Guest OSses: WINXP

Error=-1908

Post by andytaysg »

I have a problem starting my virtualbox. When started, it shows me error=-1908 and when i check the log in /var/log, it shows as follow:

* Compiling vboxdrv
Attempting to install using DKMS

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

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.28-11-generic cannot be found at
/lib/modules/2.6.28-11-generic/build or /lib/modules/2.6.28-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.

I try to find the build directory in /lib/modules/2.6.28-11-generic. it is missing. how do i go about getting this directory back.

In my /etc/init.d/ i can't find vboxdrv instead i can find vboxdrv.dpkg-back and virtualbox-ose.


Thanks.
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: Error=-1908

Post by Sasquatch »

If you installed the OSE version from the Ubuntu repository, it should have the kernel modules there too. It's listed under the package virtualbox-ose-source. Then you have to install some kernel development packages so you can build and install kernel modules. The VirtualBox FAQ lists them, and my Howto: Install Linux Guest Additions + Xorg config is a bit more extensive with other distributions for it. Preparations part is the only interesting part, the rest is for Guests only.
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.
Post Reply