]> git.proxmox.com Git - qemu-server.git/commit
set resume parameter for vm_start_nolock if there is a vmstate
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 7 Jul 2020 08:20:03 +0000 (10:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 Jul 2020 10:29:59 +0000 (12:29 +0200)
commitd544e0e0cb5e017696d5fe442908801ca3f3dd29
tree9652cf5e1781c4e7d30749a851b0283e8d86daf3
parent871deaa55737a692cf1b4cc13923fa6f44fd65f0
set resume parameter for vm_start_nolock if there is a vmstate

In config_to_command, '-loadstate' will be added whenever there is a
vmstate in the config. But in vm_start_nolock, the resume parameter
is used to calculate the appropriate timeout and to remove the vmstate
after the start. The resume parameter was only set if there is a
'suspended' lock, but apparently [0] we cannot rely on the lock to be
set if and only if there is a vmstate.

[0]: https://forum.proxmox.com/threads/task-error-start-failed.72450

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm