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:
killall VirtualBox
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.


Wow. What a coincidence. I just tried VirtualBox yesterday and and had that problem. I forgot about it, and come here, and here’s the solution!
Yes, that fix worked for me
Excellent post! You fixed my problem before I even realized I needed it
Worked like a charm!
The good news is that DKMS is supposed to fix this in Intrepid. I foolishly run Intrepid as my main system and I use Virtual Box 2 from the Ubuntu repos, and every time I get a kernel update it automatically updates the VBox modules. I haven’t had any problems with spawning sessions, and I know I’ve had at least two kernel updates since installing VBox.
[...] Read more at Tombuntu [...]
Having to repeat this process with future kernel upgrades can be prevented by installing the dkms package in Synaptic.
See posts by frank and me (jblackhall):
http://www.virtualbox.org/ticket/2421
Man u read my mind.. I have updated 2.6.24-21 from 2.6.24.19. Major issue is that my Cisco Vpn no longer works. then I thought of starting Virtual Box then connect VPN through xp. it has right there on swapping session.. No luck and clue from googling. Then switched back to 2.6.24.19. VPN and virtual Box are happy.
Any clues on VPN . I did have patch and reinstalled ( compiled with latest kernel )
will there be an issue once u compile VirBox with 2.6.24.21 and going back to 2.6.24.19
I am regular reader of you blog.. I really enjoy it .. Keep up the good work.
Cheers
Ramesh
I fix it doing this:
$ sudo dpkg-reconfigure virtualbox-2.0
It works!
Thank you! Accurately and useful …
Thanks!!!!
Thanks for the tip. Worked perfectly.
Thank you! This worked perfectly. My machine took 20-30 seconds to recompile the kernel.
Thanks for the fix. This was driving me nuts.
Thank you! It worked perfect! Nice!
This is why I like this blog so much. The posts are always so topical! No point searching Google anymore for problems. Just wait for Tombuntu to post a fix!
thank you,
I had this problem and your solution worked
Ran into the problem after yesterdays kernel upgrade…
Works like a charm! thanks!
Just in time!
I was having this same problem.
Thanks for the info it helped a lot
Nice one. Simple fix to a frustrating problem post a major set of 8.04 updates.
Cheers
I had no idea this problem was caused by the kernel update. It now works. Thank you!!
Thanks for the post. Worked perfectly.
Hey thanks your a lifesaver. MY work depends on Vbox and i saw this this morning and was about to prepare myself for a long day, but thanks to you my day has gotten a little better.
Thank you very much Tom !!!
[...] I remembered a post on the Tombuntu blog that I’d read a day or two earlier. The post contained detailed instructions on how to fix this problem. It worked like a [...]
thx
Thanks, that worked in openSUSE 11.1 too!
Gracias
Era lo que buscaba
Man, can play my Rhapsody again. I appreciate your input and effort
thx!
Worked for me too. Thank you!
thank you very verymuch.
I doesn’t work for me. I got an error:
Cannot change owner vboxusers for device /dev/vboxdrv
———————-
* Stopping VirtualBox kernel module * done.
* Removing old VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module * done.
* Starting VirtualBox kernel module
* Cannot change owner vboxusers for device /dev/vboxdrv
Henry:
Maybe the permissions on /dev/vboxdrv have been messed up. I’d try something like this to change the owner to root and the group to vboxusers (how it is on my system):
sudo chown root:vboxusers /dev/vboxdrv
THANK YOU FOR THIS FIX.
I knew you had to re-configure vmware for new kernels but I didn’t know this applied to vbox as well. Shame on them for not putting a useful message on screen when this happens…
Still… it IS free, isn’t it, so what the hey?!
So glad I came across that tip! Simple, direct and effective. Just the way I like them!
The reason why this happens is because you got a kernel update. If you install a new kernel, you must have new kernel modules, including a new kernel module for VirtualBox.
The fix described here rebuilds the VirtualBox kernel module for the new kernel.
Note that you don’t get a new VirtualBox kernel module automatically, because you installed VirtualBox from a *.deb package yourself, and not from the Ubuntu repository.
Desde Argentina
Muchas gracias amigo, It works!
It worked perfectly,Thanks alot!
Many Thanks from Greece for that!!!!
You are great!!!
thanks a lot. you saved my day!
Excellent tip, thanks so much for posting! I installed VBox from *.deb for the USB support, and forgot completely that I needed to add kernel modules. And it was the first match that google found when searching for the error message. Very handy!
[...] http://tombuntu.com/index.php/2008/10/17/fix-the-virtualbox-spawning-session-issue/ Possibly related posts: (automatically generated)Update: CascanuecesGracias DanielUn [...]
It worked fine for my Ubuntu 8.04 2.6.24-22-generic
Linux kernel. There is a method to install VirtualBox
so that this (good) workaround is no more necessary ?
Thank You and Best regards.
It works!Thanks
[...] referensi: http://tombuntu.com/index.php/2008/10/17/fix-the-virtualbox-spawning-session-issue/ [...]
Thank you for your post! I had work to do immediately in virtualbox, but I had no idea how to fix it. Thank goodness I had access to wireless to google for the solution.
didnt work for me. just said [FAILED] check /var/installlog but there’s no such file…
this solved my problem..!! under intrepid.. Linux Rocks..
What else can I say , this is the first time on the internet I found a solution for the problem in just then 2 min ..
Google search
tombuntu site , and the fix worked like a charm
Great work !!!!!
[...] Muchas gracias a Tom en su blog. [...]