liuqun / tpm2-ibmswtpm

Ubuntu snap package for IBM's software TPM 2.0 simulator
2 stars 3 forks source link

(snap) all tpm commands fail #2

Closed vorlonofportland closed 5 years ago

vorlonofportland commented 5 years ago

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.

vorlonofportland commented 5 years ago

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.