Page 1 of 1

Error=-1908

Posted: 29. Aug 2009, 04:06
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.

Re: Error=-1908

Posted: 29. Aug 2009, 21:20
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.