VirtualBox

Opened 11 months ago

Last modified 11 months ago

#21951 new defect

VirtualBox installer doesn't close running virtual machines / GUI resulting in broken installation after upgrading

Reported by: soredake Owned by:
Component: installer Version: VirtualBox-7.0.12
Keywords: Cc: soredake
Guest type: other Host type: Windows

Description (last modified by soredake)

If you try to update VirtualBox while any virtual machine is running, you'll receive broken VirtualBox installation in the result.

To reproduce this in updated clean Windows 10/11 do this:

1) Do winget install -h --id=Oracle.VirtualBox -v "7.0.10" -e

2) Launch VirtualBox.

3) Create virtual machine with any iso (I used this iso https://archive.org/details/MicroXP-0.82)

4) Launch this virtual machine.

5) Do winget upgrade -h Oracle.VirtualBox

6) Close running virtual machine.

7) Launch it again, you will receive error about kernel driver.

Now, after upgrading, you have mismatched exe/dll and drivers because VirtualBox doesn't close running virtual machines/gui.

Before updating VirtualBox:

https://i.ibb.co/vxxMWTh/vbox-before-apps.png https://i.ibb.co/R79PWYt/Screenshot-2024-01-12-183552.png

After updating VirtualBox:

https://i.ibb.co/nQfw3cN/vbox-after-apps.png https://i.ibb.co/R79PWYt/Screenshot-2024-01-12-183552.png

Error about kernel driver:

https://i.ibb.co/59sY7GP/Screenshot-2024-01-11-204509.png

Chocolatey (package manager) package have this script to close running virtual machines before running upgrade https://github.com/chocolatey-community/chocolatey-packages/blob/master/automatic/virtualbox/tools/chocolateyBeforeModify.ps1

Qbittorrent have similar problem https://github.com/qbittorrent/qBittorrent/issues/18115

Change History (4)

comment:1 by soredake, 11 months ago

Description: modified (diff)

comment:2 by soredake, 11 months ago

Description: modified (diff)

comment:3 by soredake, 11 months ago

Description: modified (diff)

comment:4 by soredake, 11 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette