From ccb2e2eaebe3da6b3deeee29e349fac7745559af Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 19 Mar 2019 09:17:31 +0100 Subject: [PATCH] increase timeout when resuming suspended VM when the state is on a slow storage, it can take a while to load it Signed-off-by: Dominik Csapak --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 05fb4bea..580c432d 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 = (