divx118 / crouton-packages

Kernel-headers packages to use with crouton
56 stars 16 forks source link

Installing Virtualbox - wrong kernel version after building headers? #39

Closed Pitey closed 8 years ago

Pitey commented 8 years ago

I'm trying to install Virtualbox on my Acer Chromebook R11

$ uname -r
3.18.0-12438-gfa5c4dd

i cloned the source for 3.18 and followed the steps in the Build kernel headers and install Virtualbox wiki page. everything went successful, but the kernel and image files are named like this:

linux-headers-3.18.0-12453-g22f7042-dirty_3.18.0-12453-g22f7042-dirty-10.00.Custom_amd64.deb
linux-image-3.18.0-12453-g22f7042-dirty_3.18.0-12453-g22f7042-dirty-10.00.Custom_amd64.deb

So, the version appendix is 12453 instead of 12438

I think this leads to the following error, when trying to install the virtualbox modules with modprobe:

$ modprobe vboxdrv
bash: modprobe: command not found
(trusty)pitey@localhost:~/kernel$ sudo modprobe vboxdrv
modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file() could not open builtin file '/lib/modules/3.18.0-12438-gfa5c4dd/modules.builtin.bin'
modprobe: FATAL: Module vboxdrv not found.

Running /etc/init.d/vboxdrv setup gives the following:

$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 3.18.0-12438-gfa5c4dd cannot be found.
Please install the linux-headers-3.18.0-12438-gfa5c4dd package,
or use the --kernelsourcedir option to tell DKMS where it's located
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
(trusty)pitey@localhost:~/kernel$ 

Is there a way to change the version number when building the kernel headers?