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 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel