Installing linux headers with 'oc-sync-kernel-headers'


#1

Even though i ran that command virtualbox is still not able to compile the modules it needs with
sudo modprobe vboxdrv.

I get:

modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.9.93-mainline-rev1

I think I’m on the Start1-L instance with 15GB of ram. Running on 4.9.93-mainline-rev1. Did the script oc-sync-kernel-headers install them someplace else from where vbox is loooking for them?

Trying to reinstall dkms:

Unpacking virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.3) over (5.2.18-dfsg-2~ubuntu18.04.3) ...
Setting up virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.3) ...
Loading new virtualbox-5.2.18 DKMS files...
It is likely that 4.9.93-mainline-rev1 belongs to a chroot's host
Building for 4.15.0-47-generic
Building initial module for 4.15.0-47-generic
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-47-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-47-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-47-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-47-generic/updates/dkms/

depmod...

DKMS: install completed.

Seems like it defaults to a different kernel version?