[PATCH 0/3] Cleanly save session VMs on logout/shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]