[pve-devel] [PATCH qemu-server v5 3/3] use qmeventd to execute qm cleanup
Dominik Csapak
d.csapak at proxmox.com
Fri Nov 9 11:05:45 CET 2018
we reverse the direction of the event socket (this does not
prevent live migration) and point it to wher qmeventd listens
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/QemuServer.pm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 82c9b96..5f42b49 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3225,8 +3225,7 @@ sub config_to_command {
push @$cmd, '-mon', "chardev=qmp,mode=control";
if (qemu_machine_feature_enabled($machine_type, $kvmver, 2, 12)) {
- my $eventsocket = qmp_socket($vmid, 0, 'event');
- push @$cmd, '-chardev', "socket,id=qmp-event,path=$eventsocket,server,nowait";
+ push @$cmd, '-chardev', "socket,id=qmp-event,path=/var/run/qemu-server/event.socket,reconnect=5";
push @$cmd, '-mon', "chardev=qmp-event,mode=control";
}
--
2.11.0
More information about the pve-devel
mailing list