public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH qemu-server] migrate: skip tpmstate for NBD migration
@ 2021-11-16 10:52 Fabian Grünbichler
  2021-11-16 11:12 ` Thomas Lamprecht
  2021-11-16 13:25 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 5+ messages in thread
From: Fabian Grünbichler @ 2021-11-16 10:52 UTC (permalink / raw)
  To: pve-devel

the tpmstate volume is not available in the VM directly, but 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>
---
 PVE/QemuServer.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 580af9e..76d45a2 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};
 
-- 
2.30.2





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-16 13:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 10:52 [pve-devel] [PATCH qemu-server] migrate: skip tpmstate for NBD migration Fabian Grünbichler
2021-11-16 11:12 ` Thomas Lamprecht
2021-11-16 11:39   ` Fabian Grünbichler
2021-11-16 11:50     ` Thomas Lamprecht
2021-11-16 13:25 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal