]> git.proxmox.com Git - qemu-server.git/commitdiff
increase timeout when resuming suspended VM
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 19 Mar 2019 08:17:31 +0000 (09:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Mar 2019 08:26:56 +0000 (09:26 +0100)
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>
PVE/QemuServer.pm

index 05fb4bea726a4aad0dbd87343c70aca3a197885e..580c432d4d2afa7962e87ae87c17ca86c7c98501 100644 (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 = (