[pve-devel] [PATCH qemu-server 3/3] increase timeout when resuming suspended VM

Dominik Csapak d.csapak at proxmox.com
Tue Mar 19 09:17:31 CET 2019


when the state is on a slow storage, it can take a while to load it

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 05fb4be..580c432 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5319,7 +5319,7 @@ sub vm_start {
 	my $cpuunits = defined($conf->{cpuunits}) ? $conf->{cpuunits}
 	                                          : $defaults->{cpuunits};
 
-	my $start_timeout = $conf->{hugepages} ? 300 : 30;
+	my $start_timeout = ($conf->{hugepages} || $is_suspended) ? 300 : 30;
 	my %run_params = (timeout => $statefile ? undef : $start_timeout, umask => 0077);
 
 	my %properties = (
-- 
2.11.0





More information about the pve-devel mailing list