After installing some Ubuntu updates yesterday, I found that I couldn’t start any virtual machines in VirtualBox 2 anymore. I would get a “spawning session” dialog which would never close.
Open a terminal. If you haven’t already forced VirtualBox to quit, kill it:
Run this command to automatically recompile and start the VirtualBox kernel module:
sudo /etc/init.d/vboxdrv setup
After a few seconds you should have some output like this:
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module * done.
* Starting VirtualBox kernel module * done.
That’s it; restart VirtualBox and start your virtual machine. You may need to repeat this process the next time there is a major kernel update in Ubuntu.