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 <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-03-19 09:17:31 +01:00 committed by Thomas Lamprecht
parent b0a9a38568
commit ccb2e2eaeb

View File

@ -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 = (