migrate: skip tpmstate for NBD migration

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>
This commit is contained in:
Fabian Grünbichler 2021-11-16 11:52:15 +01:00 committed by Thomas Lamprecht
parent 248fab7a08
commit 41c8671e78

View 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};