From 41c8671e78c5ccea17a2051f0e15125b3a559885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 16 Nov 2021 11:52:15 +0100 Subject: [PATCH] migrate: skip tpmstate for NBD migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 580af9e0..76d45a26 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -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};