Ticket #5688 (closed defect: fixed)
Upgrade 3.0.12 to 3.1 failed on Running VMs
|Reported by:||helmo||Owned by:|
(on a dev server, no real harm done) I left two headless vm's running when I started the Debian package upgrade from 3.0.12 to 3.1. I ran "apt-get install virtualbox-3.1"
The pre-install script notified me of "Running VMs found" which is fine. However when I switched to another console to manually order the VM's to be saved the VBoxManage binary was missing.
This caused me to kill the VBoxHeadless processes ... after which I could re-run the apt- command to install the new version.
An option to 'save' all running vm's from the pre-install script would be nice, but I can imagine the difficulties to get this fool-proof.
An easier solution might me to add some warning in the pre-remove stage
Get:1 http://download.virtualbox.org lenny/non-free virtualbox-3.1 3.1.0-55467_Debian_lenny [46.2MB] Fetched 46.2MB in 1min49s (424kB/s) Preconfiguring packages ... (Reading database ... 59169 files and directories currently installed.) Removing virtualbox-3.0 ... Stopping VirtualBox kernel module: Cannot unload module vboxnetflt failed! Selecting previously deselected package libqt4-opengl. (Reading database ... 58596 files and directories currently installed.) Unpacking libqt4-opengl (from .../libqt4-opengl_4.4.3-1_amd64.deb) ... Selecting previously deselected package virtualbox-3.1. Unpacking virtualbox-3.1 (from .../virtualbox-3.1_3.1.0-55467%5fDebian%5flenny_amd64.deb) ...
+---- | Running VMs found │ A copy of VirtualBox is currently running. Please close it and try again. Please note that it can take up to ten seconds for VirtualBox (in │ particular the VBoxSVC daemon) to finish running. +---
dpkg: error processing /var/cache/apt/archives/virtualbox-3.1_3.1.0-55467%5fDebian%5flenny_amd64.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)