Ubuntu Updates with Running VMs
Posted: 30. Apr 2020, 08:41
Hi
I keep a VM running with Windows on my Linux boxes (I have 3) to be able to run Windows apps I want to run but there is no support for them on Linux or I just simply don't want the hassle of making them work with Wine. I'm also using the extension pack although I'm not sure what feature exactly I'm using requires the extpack. I've been using VirtualBox since about 5.0. So here is my user experience with VirtualBox:
- Every time I update and a new kernel arrives, the update fails. When I run apt upgrade manually I get this message:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: failed: Cannot unload module vboxnetflt.
run-parts: /etc/kernel/postinst.d/vboxdrv exited with return code 1
And then I have to shut down my Windows VM and start over.
- Then the VM won't run because I need to update the extpack. So I use the GUI which offers me to upgrade the extpack, an offer which I take although I know it's going to fail due to an NS_UNKNOWN_ERROR (from memory), but I'm taking it anyway because I then use the portion of the error message where it states the download path and I can use it to do
sudo vboxmanage extpack install --prelace <path>
which goes quite nicely.
- *EVERY* update to the VirtualBox package failes because of "Running VMs Found". So I shut down the Windows VM but it keeps telling me I have running VMs. So I manually shut down vboxdrv. It doesn't matter because it keeps telling me I have running VMs.
So what I do is I
vboxmanage modifyvm Windows --autostart-enabled off
reboot
Do the upgrade
vboxmanage modifyvm Windows --autostart-enabled off
vboxmanage startvm --type headless Windows
Am I the only one (actually the only 3) having these issues? Do you just accept this or do you have some other trick I'm not aware of?
I keep a VM running with Windows on my Linux boxes (I have 3) to be able to run Windows apps I want to run but there is no support for them on Linux or I just simply don't want the hassle of making them work with Wine. I'm also using the extension pack although I'm not sure what feature exactly I'm using requires the extpack. I've been using VirtualBox since about 5.0. So here is my user experience with VirtualBox:
- Every time I update and a new kernel arrives, the update fails. When I run apt upgrade manually I get this message:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: failed: Cannot unload module vboxnetflt.
run-parts: /etc/kernel/postinst.d/vboxdrv exited with return code 1
And then I have to shut down my Windows VM and start over.
- Then the VM won't run because I need to update the extpack. So I use the GUI which offers me to upgrade the extpack, an offer which I take although I know it's going to fail due to an NS_UNKNOWN_ERROR (from memory), but I'm taking it anyway because I then use the portion of the error message where it states the download path and I can use it to do
sudo vboxmanage extpack install --prelace <path>
which goes quite nicely.
- *EVERY* update to the VirtualBox package failes because of "Running VMs Found". So I shut down the Windows VM but it keeps telling me I have running VMs. So I manually shut down vboxdrv. It doesn't matter because it keeps telling me I have running VMs.
So what I do is I
vboxmanage modifyvm Windows --autostart-enabled off
reboot
Do the upgrade
vboxmanage modifyvm Windows --autostart-enabled off
vboxmanage startvm --type headless Windows
Am I the only one (actually the only 3) having these issues? Do you just accept this or do you have some other trick I'm not aware of?