#21951 new defect
VirtualBox installer doesn't close running virtual machines / GUI resulting in broken installation after upgrading
回報者: | soredake | 負責人: | |
---|---|---|---|
元件: | installer | 版本: | VirtualBox-7.0.12 |
關鍵字: | 副本: | soredake | |
Guest type: | other | Host type: | Windows |
描述 (由 作最後更新)
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:
After updating VirtualBox:
Error about kernel driver:
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