Closed oriordain-s closed 1 month ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/PEK-1252.
This message was autogenerated
Hello @oriordain-s , the attestation packages seem to have unexpected version numbers. Did you run the setup script correctly ? For example tdx-qgs is expected to have the version 1.21-0ubuntu2.1
for the latest release : https://github.com/canonical/tdx/releases/tag/2.1
Hi @hector-cao Thanks, so it looks like the repo versions got out of sync between the host and TD. Did a clean install from Version 2.1 on host, created new TD image etc. Subsequently - got a successful quote:
root@tdx-guest:~/work/tdx# cd /usr/share/doc/libtdx-attest-dev/examples/
root@tdx-guest:/usr/share/doc/libtdx-attest-dev/examples#
root@tdx-guest:/usr/share/doc/libtdx-attest-dev/examples#
root@tdx-guest:/usr/share/doc/libtdx-attest-dev/examples#
root@tdx-guest:/usr/share/doc/libtdx-attest-dev/examples# ls
Makefile test_tdx_attest test_tdx_attest.c
root@tdx-guest:/usr/share/doc/libtdx-attest-dev/examples# ./test_tdx_attest
TDX report data
00000000: 0d 2c 04 41 f7 4e 25 bb 7d f1 c2 48 2b a2 53 c9
00000010: 8b 40 4e 56 8c f3 3a 64 7e d6 b7 32 e5 de 2d f3
00000020: 0a 31 34 01 7f 59 bc fc 4a 7f 45 76 21 98 3f ac
00000030: d8 8d 03 65 81 3d c9 ff 13 81 31 f8 5f 5e eb 69
Wrote TD Report to report.dat
TDX quote data
00000000: 04 00 02 00 81 00 00 00 00 00 00 00 93 9a 72 33
00000010: f7 9c 4c a9 94 0a 0d b3 95 7f 06 07 58 04 85 e0
00000020: 72 fa 19 60 81 56 40 6b 62 91 c0 2a 00 00 00 00
00000030: 05 01 07 00 00 00 00 00 00 00 00 00 00 00 00 00
00000040: 1c c6 a1 7a b7 99 e9 a6 93 fa c7 53 6b e6 1c 12
00000050: ee 1e 0f ab ad a8 2d 0c 99 9e 08 cc ee 2a a8 6d
00000060: e7 7b 08 70 f5 58 c5 70 e7 ff e5 5d 6d 47 fa 04
00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000000a0: 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00
000000b0: e7 02 06 00 00 00 00 00 91 eb 2b 44 d1 41 d4 ec
000000c0: e0 9f 0c 75 c2 c5 3d 24 7a 3c 68 ed d7 fa fe 8a
000000d0: 35 20 c9 42 a6 04 a4 07 de 03 ae 6d c5 f8 7f 27
000000e0: 42 8b 25 38 87 31 18 b7 00 00 00 00 00 00 00 00
000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000170: 00 00 00 00 00 00 00 00 4f fa 78 65 32 91 b2 02
00000180: 68 a4 be f3 30 2c d2 09 35 88 98 f9 d1 cc f5 1b
00000190: 03 68 36 21 76 87 73 22 36 27 d0 4c 02 a3 9a 62
000001a0: 6b d2 e2 66 2c d9 69 a2 4c c9 38 ae 7c b4 d7 19
000001b0: 1f 42 f0 21 ec da 17 89 f6 b1 8c 78 0c 5e dd 5b
...
..
000012b0: 38 43 41 51 45 77 43 67 59 49 0a 4b 6f 5a 49 7a
000012c0: 6a 30 45 41 77 49 44 53 51 41 77 52 67 49 68 41
000012d0: 4f 57 2f 35 51 6b 52 2b 53 39 43 69 53 44 63 4e
000012e0: 6f 6f 77 4c 75 50 52 4c 73 57 47 66 2f 59 69 37
000012f0: 47 53 58 39 34 42 67 77 54 77 67 0a 41 69 45 41
00001300: 34 4a 30 6c 72 48 6f 4d 73 2b 58 6f 35 6f 2f 73
00001310: 58 36 4f 39 51 57 78 48 52 41 76 5a 55 47 4f 64
00001320: 52 51 37 63 76 71 52 58 61 71 49 3d 0a 2d 2d 2d
00001330: 2d 2d 45 4e 44 20 43 45 52 54 49 46 49 43 41 54
00001340: 45 2d 2d 2d 2d 2d 0a 00 00 00 00 00 00 00 00 00
00001350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00001360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00001370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00001380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Successfully get the TD Quote
Wrote TD Quote to quote.dat
Failed to extend rtmr[2]
Failed to extend rtmr[3]
root@tdx-guest:/usr/share/doc/libtdx-attest-dev/examples#
Cheers.
Can close.
Describe the support request Executing on a TDX VM on a Preview Instance within DevCloud, am seeing that the test_tdx_attest program is returning a failure from the tax_att_get_quote function. Any insights appreciated.
While running that inside the VM, on the host the qgsd service repeats the following (4 in all):
Many thanks.
System report Please run the
system-report.sh
script (located in the root directory of this repo) on your host system and copy the output below.Git ref
Operating system details
Kernel version
TDX kernel logs
TDX CPU instruction support
Model specific registers (MSRs)
CPU details
QEMU package details
Libvirt package details
OVMF package details
sgx-dcap-pccs package details
tdx-qgs package details
sgx-ra-service package details
sgx-pck-id-retrieval-tool package details
QGSD service status
PCCS service status
MPA registration logs (last 30 lines)