]> git.proxmox.com Git - qemu-server.git/commitdiff
migrate: skip tpmstate for NBD migration
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 16 Nov 2021 10:52:15 +0000 (11:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 16 Nov 2021 13:03:01 +0000 (14:03 +0100)
This patch fixes the wrong attempt of setting up an NBD server for
the replicated TPM state volume, in contrast to the other volumes the
TPM state is managed by swtpm and isn't available to QEMU for
block-migration/bitmap tracking.

Note that we do migrate the state volume via a storage migration
anyway if necessary.

This code path was only triggered for replicated VMs with TPM.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 580af9e0cdeb7ba252fbed103790870983a165ca..76d45a269581f0c4323b7e03d56fe3bf0989ee38 100644 (file)
@@ -5238,6 +5238,7 @@ sub vm_migrate_get_nbd_disks {
        my ($ds, $drive) = @_;
 
        return if drive_is_cdrom($drive);
+       return if $ds eq 'tpmstate0';
 
        my $volid = $drive->{file};