I have built and installed tpm20softwaresimulator as a snap and am running it on Ubuntu 18.10. Using tpm2-tools 2.1.0-1, all commands issued to the daemon fail.
$ snap info tpm20softwaresimulator
name: tpm20softwaresimulator
summary: TPM 2.0 Simulator
publisher: –
license: unset
description: |
Snap package for IBM's software TPM 2.0 simulator.
Based on the TPM 2.0 specification's source code donated by Microsoft,
with additional files to complete the implementation donated by Ken
Goldman.
Original homepage is at https://sourceforge.net/projects/ibmswtpm2/
commands:
tpm20softwaresimulator
refresh-date: 47 days ago, at 17:51 PST
installed: 974 (x1) 1MB -
$ sudo tpm2_nvlist
ERROR: GetCapability:Get NV Index list Error. TPM Error:0x100
$
The same commands succeed against a physical TPM 2.0.
It appears this is because, when not using a userspace resource manager together with the vtpm, one must manually run tpm2_startup -c first to initialize the state.
I have built and installed tpm20softwaresimulator as a snap and am running it on Ubuntu 18.10. Using tpm2-tools 2.1.0-1, all commands issued to the daemon fail.
$ snap info tpm20softwaresimulator name: tpm20softwaresimulator summary: TPM 2.0 Simulator publisher: – license: unset description: | Snap package for IBM's software TPM 2.0 simulator. Based on the TPM 2.0 specification's source code donated by Microsoft, with additional files to complete the implementation donated by Ken Goldman. Original homepage is at https://sourceforge.net/projects/ibmswtpm2/ commands:
The same commands succeed against a physical TPM 2.0.