vzdump: don't use dirty bitmap when VM was off

There can't be a dirty bitmap when the VM was off, and if it was off we
will also shut it down after the backup, so no point in creating one.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2020-08-19 17:02:04 +02:00 committed by Thomas Lamprecht
parent 0f6c69814b
commit 78179bda0f

View File

@ -513,7 +513,8 @@ sub archive_pbs {
$params->{encrypt} = JSON::false;
}
$params->{'use-dirty-bitmap'} = JSON::true if $qemu_support->{'pbs-dirty-bitmap'};
$params->{'use-dirty-bitmap'} = JSON::true
if $qemu_support->{'pbs-dirty-bitmap'} && $self->{vm_was_running};
$params->{timeout} = 60; # give some time to connect to the backup server