]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
destroy_vm: allow to pass new config and lock instead
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Nov 2019 16:03:28 +0000 (17:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Nov 2019 16:03:30 +0000 (17:03 +0100)
commitb04ea5845346a8b13711abc03b58d86f2d6afb5f
tree4113e6ee7ed6db47cd4c25ddafd7d01c4d1bad3d
parent7dc7f315f39bcf2daa745e3d73344552524d8f6b
destroy_vm: allow to pass new config and lock instead

This brings qemu more in line with containers, and it's nicer to
allow passing the replacement config if we want to keep it, instead
of setting a "memory: 128" config.

Use that to lock it on removal before final deletion, and on legacy
tar archive restore, in between old VM destruction and new
restoration.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm
PVE/CLI/qm.pm
PVE/QemuServer.pm