[pve-devel] [PATCH qemu-server 0/4] add qmeventd

Dominik Csapak d.csapak at proxmox.com
Tue Oct 16 12:07:02 CEST 2018


this series adds qmeventd, a binary which connects to an qmp
socket and waits for the shutdown event of qemu

i use this to execute 'qm cleanup' when a vm exits, and can detect
if a qemu crashed/was restarted from within/etc.

the last patch is optional, and shows how we can implement useful
features with this besides cleanups

still needs qemu >= 3.0 and my patch[1] on top

i incorporated all comments from w.bumiller for my rfc, and also
renamed it from 'qemumonitor'  to 'qmeventd' since we might
want to extend it in the future to handle other events too

1: http://lists.nongnu.org/archive/html/qemu-devel/2018-10/msg01271.html

Dominik Csapak (4):
  add qmeventd
  add 'qm cleanup'
  use qmeventd to execute qm cleanup
  implement a 'real' reboot for vms

 Makefile          |  11 +++-
 PVE/CLI/qm.pm     |  87 ++++++++++++++++++++++++++++
 PVE/QemuServer.pm |  24 +++++++-
 qmeventd.c        | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 286 insertions(+), 6 deletions(-)
 create mode 100644 qmeventd.c

-- 
2.11.0





More information about the pve-devel mailing list