]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
fix vm_resume and allow vm_start with QMP status 'shutdown'
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 19 Oct 2020 12:18:41 +0000 (14:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 5 Nov 2020 10:22:47 +0000 (11:22 +0100)
commit8e0c97bbbf8e91306a99b8b98d81d0018f8a7029
tree7b0231742f05285a63faaa0bd1795311c0140b55
parent27b25d037e3a48fddbcbad254bfad245f1e296de
fix vm_resume and allow vm_start with QMP status 'shutdown'

When the VM is in status 'shutdown', i.e. after the guest issues a
powerdown while a backup is running, QEMU requires a 'system_reset' to
be issued before 'cont' can boot the guest again.

Additionally, when the VM has been powered down during a backup, the
logically correct call would be a 'vm_start', so automatically vm_resume
from vm_start in case this situation occurs. This also means the GUI can
cope with this almost unchanged.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer.pm