VirtualBox 4.0.2 on Ubuntu 11.04

After an update to Ubuntu 11.04 VirtualBox was not running anymore. Startup fails with a hint that the kernel modules exited in error and that I should use DKMS to reconfigure the kernel module. Running the vboxdrv setup command also led to an error: $ sudo /etc/init.d/vboxdrv setup [sudo] password for desktop: * Stopping VirtualBox kernel modules * done. * Uninstalling old VirtualBox DKMS kernel modules * done. * Trying to register the VirtualBox kernel modules using DKMS Error! Bad return status for module build on kernel: 2.6.38-8-generic (x86_64) Consult the make.log in the build directory /var/lib/dkms/vboxhost/4.0.2/build/ for more information. * Failed, trying without DKMS * Recompiling VirtualBox kernel modules * Look at /var/log/vbox-install.log to find out what went wrong The log file indicates that a header file was missing: ...

May 29, 2011 · 1 min · Michael Rumpf