Atm, when you exit the sessin (via logout or shutdown for instance) we
just leave the qemu:///session handling libvirtd process around, including
any running VMs. This is not particularly nice, as there is no way to
know that the VMs are running, and you risk data loss if you shutdown
while the VMs are running.
This patch series adds a babysitter to the session that will track session
lifetime and shutdown events and save running VMs as needed.
Outstanding questions:
Can this code be inside libvirtd itself? I.E. is it possible to do VM
management calls like virDomainManagedSave() from inside libvirtd itself.
If not, who will launch the babysitter?
Alexander Larsson (3):
Fix typo in HAVE_DBUS automake conditional
virdbus: Add virDBusGetSessionBus helper
Add new libvirt-babysitter tool
configure.ac | 2 +-
src/util/virdbus.c | 84 ++++++++++----
src/util/virdbus.h | 1 +
tools/Makefile.am | 21 ++++
tools/libvirt-babysitter.c | 276 +++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 363 insertions(+), 21 deletions(-)
create mode 100644 tools/libvirt-babysitter.c
--
1.7.12.1