VirtualBox 7.0 BETA2 Ubuntu 22.04 Guest, Windows 10 host TPM2 Error

Temporary forum to discuss issues and problems during a VirtualBox Beta or Release Candidate phase.
Post Reply
GilW
Posts: 5
Joined: 22. Sep 2022, 07:24

VirtualBox 7.0 BETA2 Ubuntu 22.04 Guest, Windows 10 host TPM2 Error

Post by GilW »

Hello,

I'm trying to use TPM2 on Windows 10 host with Ubuntu 22.04 Guest.
setting->System->Motherboard->TPM: v2.0

$ sudo dmesg | grep -i tpm
[ 0.000000] efi: ACPI=0x7ef7e000 ACPI 2.0=0x7ef7e014 TPMFinalLog=0x7efd6000 SMBIOS=0x7efd5000 MOKvar=0x7d953000 TPMEventLog=0x7d947018
[ 0.002035] ACPI: TPM2 0x000000007EF77000 000034 (v04 VBOX VBOXTPM2 00000001 ASL 00000061)
[ 0.002040] ACPI: SSDT 0x000000007EF76000 000124 (v01 VBOX VBOXTPMT 00000002 INTL 20100528)
[ 0.002058] ACPI: Reserving TPM2 table memory at [mem 0x7ef77000-0x7ef77033]
[ 0.325016] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0x0, rev-id 1)


The error:
$ sudo tpm2_createprimary -C o -c prim.ctx
ERROR:tcti:src/tss2-tcti/tcti-device.c:198:tcti_device_receive() Failed to get response size fd 3, got errno 14: Bad address
ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:404:Esys_CreatePrimary_Finish() Received a non-TPM Error
ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:135:Esys_CreatePrimary() Esys Finish ErrorCode (0x000a000a)
ERROR: Esys_CreatePrimary(0xA000A) - tcti:IO failure
ERROR:esys:src/tss2-esys/esys_iutil.c:1145:iesys_check_sequence_async() Esys called in bad sequence.
ERROR:esys:src/tss2-esys/api/Esys_FlushContext.c:66:Esys_FlushContext() Error in async function ErrorCode (0x00070007)
ERROR: Esys_FlushContext(0x70007) - esapi:Function called in the wrong order
ERROR: Unable to run tpm2_createprimary
aeichner
Oracle Corporation
Posts: 193
Joined: 31. Aug 2007, 19:12

Re: VirtualBox 7.0 BETA2 Ubuntu 22.04 Guest, Windows 10 host TPM2 Error

Post by aeichner »

Thanks for the report, this should be fixed with the next Beta!
GilW
Posts: 5
Joined: 22. Sep 2022, 07:24

Re: VirtualBox 7.0 BETA2 Ubuntu 22.04 Guest, Windows 10 host TPM2 Error

Post by GilW »

Thanks!

With BETA3 I can access the TPM from the Ubuntu 22.04 Guest.

But still getting an error message:

sudo dmesg | grep -i tpm
[ 0.001887] ACPI: TPM2 0x000000007FFF02E0 000034 (v04 VBOX VBOXTPM2 00000001 ASL 00000061)
[ 0.001889] ACPI: SSDT 0x000000007FFF0320 000124 (v01 VBOX VBOXTPMT 00000002 INTL 20100528)
[ 0.001898] ACPI: Reserving TPM2 table memory at [mem 0x7fff02e0-0x7fff0313]
[ 0.795488] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0x0, rev-id 1)
[ 0.797914] tpm tpm0: A TPM error (256) occurred attempting the self test
[ 0.801983] tpm tpm0: starting up the TPM manually
Post Reply