[pve-devel] applied: [PATCH qemu-server v4 1/1] add hookscripts to vms
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Feb 1 13:07:11 CET 2019
On 1/31/19 2:33 PM, Dominik Csapak wrote:
> this adds a new config option for it, and executes it on four
> points in time:
>
> 'pre-start'
> 'post-start'
> 'pre-stop'
> 'post-stop'
>
> on pre-start we abort if the script fails
> and pre-stop will not be called if the vm crashes or if
> the vm gets powered off from inside the guest
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> changes from v3:
> * more concise check
>
> PVE/API2/Qemu.pm | 3 +++
> PVE/CLI/qm.pm | 2 ++
> PVE/QemuServer.pm | 12 ++++++++++++
> 3 files changed, 17 insertions(+)
>
applied, thanks!
More information about the pve-devel
mailing list