On Thu, Sep 23, 2021 at 08:32:46PM -0400, Sam Varshavchik wrote: > I have an existing VM with an emulated TPM module. > > I'm trying to create a replacement VM, pointing to the same disk image that > the existing VM uses, and also migrate the existing TPM module to it. > > Would just copying everything in /var/lib/libvirt/swtpm/<UUID> work? I did > some practice runs, and it seems that virt-manager immediately starts the > new VM as soon as it creates one, so I need to quickly turn it off, go look > up its new UUID, and copy over the TPM files? When creating the VM in virt-manager, in the last step you can select a checkbox 'Modify configuration before install'. When you do that you will see the configuration dialog for the VM and there on the Overview tab you can also find the UUID. I haven't tried that but that way you may be able to create the TMP directory in advance. Hope this helps, Tomas -- Tomáš Golembiovský <tgolembi@xxxxxxxxxx>