swtpm

The goal of the swtpm project is to provide a TPM emulator (TPM 1.2 & TPM 2) that can be integrated into virtualized environments, such as virtual machines and containers. So far it has been integrated into QEMU and as a prototype into RunC…

https://github.com/stefanberger/swtpm/wiki

https://github.com/stefanberger/swtpm