Ubuntu – virtualbox fails after kernel update

kernelvirtualbox

I have ubuntu 16 LTS. Virtualbox could run, but I have removed it. After some time, I update kernel to 4.7.2. Installing Virtualbox again but it does not boot the guest system. It shows this message:

Kernel drive not installed rc=1908

It tells me to rin /sbin/vboxconfig, but the script fails:

vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed:
Look at /var/log/vbox-install.log to find out what went wrong.

There were problems setting up VirtualBox. To re-start the set-up
process, run /sbin/vboxconfig as root.

This is the log file:

http://pastebin.com/1eBGCZUM

What should I do to make Virtualbox work again?

Thanks.

Best Answer

Based on a discussion on Ubuntu Forums, the following worked for me when I upgraded kernel in Ubuntu:

$ sudo dpkg-reconfigure virtualbox-dkms && sudo dpkg-reconfigure virtualbox && \
    sudo modprobe vboxdrv
Related Question