mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-15 18:49:34 +00:00
Fix ACPI-suspended VMs resuming after migration
Add checks for "suspended" and "prelaunch" runstates when checking whether a VM is paused. This fixes the following issues: * ACPI-suspended VMs automatically resuming after migration * Shutdown and reboot commands timing out instead of failing immediately on suspended VMs Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
This commit is contained in:
parent
95f1de689e
commit
7ba974a682
@ -8503,7 +8503,11 @@ sub vm_is_paused {
|
|||||||
mon_cmd($vmid, "query-status");
|
mon_cmd($vmid, "query-status");
|
||||||
};
|
};
|
||||||
warn "$@\n" if $@;
|
warn "$@\n" if $@;
|
||||||
return $qmpstatus && $qmpstatus->{status} eq "paused";
|
return $qmpstatus && (
|
||||||
|
$qmpstatus->{status} eq "paused" ||
|
||||||
|
$qmpstatus->{status} eq "suspended" ||
|
||||||
|
$qmpstatus->{status} eq "prelaunch"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub check_volume_storage_type {
|
sub check_volume_storage_type {
|
||||||
|
Loading…
Reference in New Issue
Block a user