Info on how to build/use swtpm and libtpms. Pretty good doc at swtpm wiki. Qemu page has good info also, including qemu command lines. Qemu tpm.
I have been maintaining a "swtpm ppa" at ppa:smoser/swtpm.
libtpms and swtpm seem to be working their way into debian/ubuntu.
- libtpms (debian, ubuntu) arrived only in groovy (20.10) in ubuntu (no focal).
- swtpm is available in Jammy (Ubuntu 22.04). (ITP #941199, debian, ubuntu)
the 'build.sh' below is no longer necessary. I'm building with Ubuntu versions of the packages and just doing 'no source-change backports'.
Good catch. It kind of stinks that to go "backwards", I'll have to delete the files and add new ones. I'll just do that.