During the one of last d-u some trigger accidentally removed the linux-headers meta package which is necessary for building dynamic kernel modules for nvidia and virtualbox.

Start-Date: 2014-06-07  21:17:14
Commandline: apt-get dist-upgrade
Install: python3-markupsafe:amd64 (0.23-1, automatic), gir1.2-secret-1:amd64 (0.18-1, automatic), python3-mako:amd64 (0.9.1-1, automatic), libgcrypt20:
amd64 (1.6.1-2, automatic)
Upgrade: libtotem-plparser18:amd64 (3.10.2-1, 3.10.2-3), rhythmbox-plugins:amd64 (3.0.1-1+b2, 3.0.3-1+b1), kde-runtime:amd64 (4.12.4-1, 4.13.1-1), rhyt
hmbox-data:amd64 (3.0.1-1, 3.0.3-1), rhythmbox-plugin-cdrecorder:amd64 (3.0.1-1+b2, 3.0.3-1+b1), libssh2-1:amd64 (1.4.3-2, 1.4.3-3), rhythmbox:amd64 (3
.0.1-1+b2, 3.0.3-1+b1), plasma-scriptengine-javascript:amd64 (4.12.4-1, 4.13.1-1), gir1.2-rb-3.0:amd64 (3.0.1-1+b2, 3.0.3-1+b1), librhythmbox-core8:amd
64 (3.0.1-1+b2, 3.0.3-1+b1)
Remove: linux-headers-3.13-1-amd64:amd64 (3.13.10-1), linux-headers-3.14-1-amd64:amd64 (3.14.4-1), linux-compiler-gcc-4.8-x86:amd64 (3.14.4-1), linux-headers-amd64:amd64 (3.14+57)
End-Date: 2014-06-07  21:17:26

Virtualbox does start but failed with a fancy non-telling error.

virtualbox_kernel_module_missing

At first sight I was confused with ‘/etc/init.d/vboxdrv setup’ which does not exist with systemd anymore.
Reinstalling the Virtualbox DKMS package just told me – ah, there’s something missing.

# apt-get install --reinstall virtualbox-dkms
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 1 nicht aktualisiert.
Es müssen noch 0 B von 559 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
(Lese Datenbank ... 297911 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../virtualbox-dkms_4.3.12-dfsg-1_all.deb ...

------------------------------
Deleting module version: 4.3.12
completely from the DKMS tree.
------------------------------
Done.
Entpacken von virtualbox-dkms (4.3.12-dfsg-1) über (4.3.12-dfsg-1) ...
virtualbox-dkms (4.3.12-dfsg-1) wird eingerichtet ...
Loading new virtualbox-4.3.12 DKMS files...
Building only for 3.14-1-amd64
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

Fix it by installing the kernel headers and reinstalling the virtualbox dkms package.

# apt-get install linux-headers-amd64
# apt-get install --reinstall virtualbox-dkms

Then the vboxdrv kernel module has to be loaded.

# modprobe vboxdrv

Try to boot the vm, it will fail with the network interfaces requiring the additional ‘vboxnetflt’ kernel module.

# modprobe vboxnetflt
%d bloggers like this: