qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Trustedgrub2 reports No TPM found


From: Stefan Berger
Subject: Re: [Qemu-discuss] Trustedgrub2 reports No TPM found
Date: Fri, 5 May 2017 17:36:47 +0000

   I would use the following configure lines. You may want to watch out so
   you don't have two versions of the library on your system, though:

   libtpms: ./configure --prefix=/usr --with-tpm2 --with-openssl ; make ;
   make check ; sudo make install
   swtpm: ./configure --prefix=/usr --with-openssl ; make ; sudo make
   check -j16 ; sudo make install

   Please run a 'make check -j16' on the swtpm project before running a
   'make install'.

   Can you follow the setup steps that the person raising this issue
   followed: [1]https://github.com/stefanberger/swtpm/issues/21


     ----- Original message -----
     From: anshul makkar <address@hidden>
     To: <address@hidden>, <address@hidden>
     Cc:
     Subject: Trustedgrub2 reports No TPM found
     Date: Fri, May 5, 2017 12:32 PM

   Hi,
   I had a working vTPM solution with TPM 1.2 using swtpm, libtpm qemu2.8,
   cuse.
   I wanted to try TPM 2.0 so I switched to:
   swtpm: tpm2-preview branch. Compiled using ./configure --with-tpm2
   --enable-debug --enable-cuse
   libtpm: tpm2-preview.rev142 branch. Compiled using ./configure
   --with-tpm2 --enable-debug
   Installed TPM2.0-TSS software stack.
   Using seabios with TPM patches and TrustedGrub2.
   [2]https://github.com/ts468/seabios-tpm
   Now when I start guest with TrustedGrub2, I get an error message from
   grub that TPM device not found. Even Windows guest fails to detect TPM.
   Command that I used to start the guest
   swtpm_cuse --tpm2 -M 260 -m 1 -n vtpm0 . I can see /dev/vtpm0 after
   this
   command.
   Launch the guest: sudo qemu-system-x86_64  -enable-kvm  -m 2048 -boot b
   -bios seabios.bin -boot menu=on -tpmdev
   cuse-tpm,id=tpm0,path=/dev/vtpm0
   -device tpm-tis,tpmdev=tpm0 -drive format=raw,file=ubuntu.img
   I debugged TrustedGrub2.0 code and found that it issues BIOS call INT
   1Ah, (AH)=BBh,(AL)=00h ( TCG_StatusCheck ) which fails.
   TPM 1.2 used to work fine, so just wondering if I have missed any
   components.
   Please can you share your thoughts.
   Thanks
   Anshul Makkar

References

   1. https://github.com/stefanberger/swtpm/issues/21
   2. https://github.com/ts468/seabios-tpm


reply via email to

[Prev in Thread] Current Thread [Next in Thread]