[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvirt-users
Subject:    Re: How to move emulated SWTPM data to a new VM
From:       Sam Varshavchik <mrsam () courier-mta ! com>
Date:       2021-09-24 12:38:38
Message-ID: cone.1632487118.982546.151347.1004 () monster ! email-scan ! com
[Download RAW message or body]

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

Tomáš Golembiovský writes:

> 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,

Yes, I used "Modify configuration before install" in my trial run, I am  
aware of this setting.

Next time I'll see if that gives me the new VM's UUID, and I'll try making a  
copy of the existing swtpm subdirectory before the VM gets created and  
started.




[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic