New Ubuntu kernel breaks virtual machine

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Dave16g
Posts: 3
Joined: 1. Dec 2015, 19:50

New Ubuntu kernel breaks virtual machine

Post by Dave16g »

I just installed the latest updates from Ubuntu which includes new kernel drivers. Now my virtual machine won't start with the error "VirtualBox - Error in suplibOsInit" "Kernel driver not installed (rc=-1908). In the past, when new kernel drivers were installed, I could execute "sudo /etc/init.d/vboxdrv setup" and it would fix the problem. Now, /etc/init.d/vboxdrv no longer exists and "sudo /sbin/vboxconfig" does nothing.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: New Ubuntu kernel breaks virtual machine

Post by Perryg »

Install the guest additions again. If that does not help then remove the existing guest additions and then install them again.
Dave16g
Posts: 3
Joined: 1. Dec 2015, 19:50

Re: New Ubuntu kernel breaks virtual machine

Post by Dave16g »

How can I uninstall Guest Additions if my VM won't start? I should have mentioned I am running Ubuntu 15.10 and the virtual machine is Windows 7.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: New Ubuntu kernel breaks virtual machine

Post by Perryg »

Sorry I meant to uninstall VirtualBox then make sure you install the official build and use gdebi instead of the software center.
Dave16g
Posts: 3
Joined: 1. Dec 2015, 19:50

Re: New Ubuntu kernel breaks virtual machine

Post by Dave16g »

Okay, if that's what I have to do. I was hoping to avoid uninstall and reinstall, because I suspect it will be an issue every time there is a new kernel. Thank you for the reply.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: New Ubuntu kernel breaks virtual machine

Post by Perryg »

That's the reason for the uninstall and then reinstall. Since the change from init.d to systemd it seems the code gets messed up until you remove and install again
big_blue
Posts: 2
Joined: 8. Dec 2015, 00:37

Re: New Ubuntu kernel breaks virtual machine

Post by big_blue »

Is there another /automatic way to fix this issue? Maybe execute a command after kernel update or something like that?
winterlin
Posts: 3
Joined: 8. Dec 2015, 12:33
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: Linux, Windows
Location: Finland

Re: New Ubuntu kernel breaks virtual machine

Post by winterlin »

Have you tried issuing:

Code: Select all

/usr/lib/virtualbox/vboxdrv.sh setup
big_blue
Posts: 2
Joined: 8. Dec 2015, 00:37

Re: New Ubuntu kernel breaks virtual machine

Post by big_blue »

Currently i got an error message that the modules are not able to stop. But currently the installation is valid and up to date.
Stopping VirtualBox kernel modules ...failed!
(Cannot unload module vboxnetflt)
My expected behavior is a command or whatever i am able to run after the kernel update with the current running VM and kernel. After the next reboot the system startup with the new kernel and all VMs are able to run.
Post Reply