[pve-devel] [PATCH qemu-server v2 0/5] add reboot api
Dominik Csapak
d.csapak at proxmox.com
Fri Aug 23 10:55:55 CEST 2019
this adds a reboot api call for vms, which uses a reboot trigger file
that gets detected by the qm cleanup call to start the vm again
this api call is useful when users want to apply pending hardware changes
without waiting for the vm to shutdown
changes from rfc:
* move the creation/deletion into their own subs
* only create reboot trigger while having the lock during shutdown
* cleanup the trigger on vm startup
* use always vm_stop even for ha vms, since we do not want to change
the target state
Dominik Csapak (5):
add create and remove reboot trigger subs
qm: cleanup: detect and handle reboot trigger
api: add reboot api call
qm: add reboot command
api: add missing index child links
PVE/API2/Qemu.pm | 67 +++++++++++++++++++++++++++++++++++++++++++++++
PVE/CLI/qm.pm | 15 +++++++++++
PVE/QemuServer.pm | 18 ++++++++++++-
3 files changed, 99 insertions(+), 1 deletion(-)
--
2.20.1
More information about the pve-devel
mailing list