[Pkg-virtualbox-devel] Bug#555296: Suspend Virtualbox VMs on Host System Suspend

Nick Daly nick.m.daly at gmail.com
Wed Aug 17 02:27:53 UTC 2011


Dear bug 555296 subscribers,

Recently, I ran into this bug, where a host system cannot resume from
hibernate-to-disk when a VirtualBox VM was running while VT-X is
enabled.  It's fairly common [0].

So, I decided to patch it.  This patch allows the system to successfully
suspend while VMs are running.  It's been deployed on my machine for
around a week now (10 - 20 successfull suspend-resume cycles, without
needing to restart).

On to the details.  The patch:

- Iterates through each user on the system.
- Saves the state of each user's running VMs, safely stopping them.
- The system then continues hibernating, safely.

Shortcomings of this script folks might want to address include:

- Not disablable through configuration settings (not really sure what
  config file to use).

Enabling this script in Squeeze involves linking it to:

    /etc/pm/sleep.d/01_virtualbox-vm-control

I hope this helps somebody,
Nick

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: virtualbox-vm-control
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20110816/5afee09f/attachment.ksh>
-------------- next part --------------
-- 
GPG: 0x4C682009 | 084E D805 31D8 5391 1D27 ?0DE1 9780 FD4D 4C68 2009


More information about the Pkg-virtualbox-devel mailing list