How to start Virtualbox after kernel upgrade

If after installing a new kernel you may get an error message when you try to start Virtualbox saying something like ‘The vboxdrv kernel module was either not loaded…’.

After the new kernel update on the Ubuntu machine, you must install the kernel headers matching the new kernel:

sudo apt-get install linux-headers-$(uname -r)

Then just run virtualbox setup

sudo /etc/init.d/vboxdrv setup

That`s all.
  • 0
  • June 11, 2010, 10:50pm
  • georka
  • 1