[Pkg-virtualbox-devel] Bug#555296: virtualbox-ose-source: kernel panic in virtualbox module after resume from suspend to disk

Nick Daly nick.m.daly at gmail.com
Tue Nov 5 03:37:04 UTC 2013


tags 555296 + patch
thanks

Dear Maintainer,

After upgrading to Debian Squeeze, I lost my copy of
"virtualbox-vm-control," so I wrote a new one.  The new one is attached.

This script will try very hard to stop VirtualBox VMs so the hibernation
process can finish safely.  Unfortunately, this script does not attempt
to detect affected hardware configurations because I don't know how to
do that correctly.

Technical details:

The script will check each user for any running VMs.  For each VM it
finds, it will do the following:

1. It will try to suspend the VM, as the running user.

2. If the VM failed to suspend, it will try to power off the VM, as the
running user.

3. If any running VM failed to power off, it'll attempt to suspend the
user's remaining VMs and then kill all the user's VirtualBox processes,
as the running user.

4. If any VirtualBox process failed to die, it'll attempt to suspend
every other user's VMs before killing all the VirtualBox processes.

5. By this point, no VMs should be running.  If VMs failed to suspend,
they were powered off.  If the VMs didn't power off, that user's
VirtualBox process was killed.  If VirtualBox processes failed to die,
all users' VirtualBox processes are killed.  If even the root user
couldn't guarantee all VMs were stopped, it'll quit with an error (1).

6. If no VMs appear to be running, quit normally (with 0).

Please consider including this patch in future versions of Debian's
VirtualBox so other users can safely combine Virtual Machines and
hibernation.

Thanks for your time,
Nick



-- System Information:
Debian Release: 7.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages virtualbox depends on:
ii  adduser          3.113+nmu3
ii  dpkg             1.16.12
ii  libc6            2.13-38
ii  libcurl3         7.26.0-1+wheezy4
ii  libgcc1          1:4.7.2-5
ii  libgsoap2        2.8.7-2
ii  libpng12-0       1.2.49-1
ii  libpython2.7     2.7.3-6
ii  libsdl1.2debian  1.2.15-5
ii  libssl1.0.0      1.0.1e-2
ii  libstdc++6       4.7.2-5
ii  libvncserver0    0.9.9+dfsg-1
ii  libx11-6         2:1.5.0-1+deb7u1
ii  libxcursor1      1:1.1.13-1+deb7u1
ii  libxext6         2:1.3.1-2+deb7u1
ii  libxml2          2.8.0+dfsg1-7+nmu2
ii  libxmu6          2:1.1.1-1
ii  libxt6           1:1.1.3-1+deb7u1
ii  python           2.7.3-4+deb7u1
ii  python2.7        2.7.3-6
ii  zlib1g           1:1.2.7.dfsg-13

Versions of packages virtualbox recommends:
ii  libgl1-mesa-glx [libgl1]  8.0.5-4+deb7u2
ii  libqt4-opengl             4:4.8.2+dfsg-11
ii  libqtcore4                4:4.8.2+dfsg-11
ii  libqtgui4                 4:4.8.2+dfsg-11
ii  virtualbox-dkms           4.1.18-dfsg-2+deb7u1
ii  virtualbox-qt             4.1.18-dfsg-2+deb7u1

Versions of packages virtualbox suggests:
ii  vde2                            2.3.2-4
pn  virtualbox-guest-additions-iso  <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virtualbox_pause.sh
Type: text/x-sh
Size: 3757 bytes
Desc: VirtualBox Pause Hibernate Script
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20131104/f765b3e1/attachment.sh>


More information about the Pkg-virtualbox-devel mailing list