[pve-devel] [PATCH qemu-server v2 0/5] add qmeventd
Dominik Csapak
d.csapak at proxmox.com
Wed Oct 17 14:31:18 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
needs qemu >= 2.12 and my patch[1] on top
changes from v1:
* 1/5 is new and contains changes that we want for qemu 2.12
* incorporated feedback from w.bumiller
* fixed the -no-reboot check
1: http://lists.nongnu.org/archive/html/qemu-devel/2018-10/msg01271.html
Dominik Csapak (5):
add second qmp socket with qemu 2.12
add qmeventd
add 'qm cleanup'
use qmeventd to execute qm cleanup
implement a 'real' reboot for vms
Makefile | 12 +++-
PVE/CLI/qm.pm | 87 +++++++++++++++++++++++++++
PVE/QemuServer.pm | 23 +++++++-
qmeventd.c | 172 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 288 insertions(+), 6 deletions(-)
create mode 100644 qmeventd.c
--
2.11.0
More information about the pve-devel
mailing list