Get Step1: Call sgx_qe_get_target_info: Error in sgx_qe_get_target_info. 0xe047 when running the sgx.attest.sample.intel.sdk

sama 6 Reputation points
2023-01-03T17:40:06.217+00:00

I have azure cloud VM with kernel 5.15 (which DCAP driver already installed on it)
I followed the link https://github.com/Azure-Samples/microsoft-azure-attestation/tree/master/sgx.attest.sample.intel.sdk in order to run sgx.attest.sample.intel.sdk sample but when I run genquotes$ sudo ./runall.sh i get this:
make -C enclave
make[1]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'
make genkey
make[2]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'
make[2]: Nothing to be done for 'genkey'.
make[2]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'
make build
make[2]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'
/opt/intel/sgxsdk/bin/x64/sgx_edger8r --trusted enclave.edl --search-path ./ --search-path /opt/intel/sgxsdk/include
Build using: cc, g++, SGX_DEBUG=1
g++ -c -m64 -O0 -g -fPIC -Wno-attributes -I/opt/intel/sgxsdk/include -DDEBUG -UNDEBUG -UEDEBUG -std=c++11 -m64 -O0 -g -nostdinc -fvisibility=hidden -fpie -ffunction-sections -fdata-sections -fstack-protector-strong -I. -I.. -I/opt/intel/sgxsdk/include -I/opt/intel/sgxsdk/include/tlibc -I/opt/intel/sgxsdk/include/libcxx -std=c++11 -nostdinc++ ecalls.cpp
cc -c -m64 -O0 -g -fPIC -Wno-attributes -I/opt/intel/sgxsdk/include -DDEBUG -UNDEBUG -UEDEBUG -m64 -O0 -g -nostdinc -fvisibility=hidden -fpie -ffunction-sections -fdata-sections -fstack-protector-strong -I. -I.. -I/opt/intel/sgxsdk/include -I/opt/intel/sgxsdk/include/tlibc -I/opt/intel/sgxsdk/include/libcxx enclave_t.c
g++ -o genquote_enclave ecalls.o enclave_t.o -m64 -O0 -g -L/usr/lib/x86_64-linux-gnu -L/opt/intel/sgxsdk/lib64 -lsgx_urts -lpthread -lsgx_dcap_ql -lsgx_quote_ex -lsgx_uae_service -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L/opt/intel/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tcxx -lsgx_tcrypto -lsgx_tservice -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections
make[2]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'
make sign
make[2]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'
<EnclaveConfiguration>
<ProdID>1</ProdID>
<ISVSVN>1</ISVSVN>
<StackMaxSize>0x400000</StackMaxSize>
<HeapMaxSize>0x400000</HeapMaxSize>
<TCSNum>2</TCSNum>
<DisableDebug>0</DisableDebug>
</EnclaveConfiguration>
tcs_num 2, tcs_max_num 2, tcs_min_pool 1
The required memory is 12668928B.
The required memory is 0xc15000, 12372 KB.
Succeed.
make[2]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'
make[1]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'
make -C host
make[1]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/host'
Build using: cc, g++
cc -c -m64 -O0 -g -fPIC -Wno-attributes -I/opt/intel/sgxsdk/include -DDEBUG -UNDEBUG -UEDEBUG enclave_u.c
g++ -c -m64 -O0 -g -fPIC -Wno-attributes -I/opt/intel/sgxsdk/include -DDEBUG -UNDEBUG -UEDEBUG -std=c++11 -I. -I/usr/include host.cpp
g++ -o genquote_sgx_host host.o enclave_u.o -lcrypto -m64 -O0 -g -L/usr/lib/x86_64-linux-gnu -L/opt/intel/sgxsdk/lib64 -lsgx_urts -lpthread -lsgx_dcap_ql -lsgx_quote_ex -lsgx_uae_service
make[1]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/host'
host/genquote_sgx_host ./enclave/genquote_enclave.debug.signed enclave.info.debug.json

[get_platform_quote_cert_data ../qe_logic.cpp:378] Error returned from the p_sgx_get_quote_config API. 0xe047  
Step1: Call sgx_qe_get_target_info: Error in sgx_qe_get_target_info. 0xe047  
make: *** [Makefile:18: run] Error 255  
make -C enclave  
make[1]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'  
make genkey  
make[2]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'  
make[2]: Nothing to be done for 'genkey'.  
make[2]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'  
make build  
make[2]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'  
/opt/intel/sgxsdk/bin/x64/sgx_edger8r --trusted enclave.edl --search-path ./ --search-path /opt/intel/sgxsdk/include  
Build using: cc, g++, SGX_DEBUG=0  
g++ -c -m64 -O2 -fPIC -Wno-attributes -I/opt/intel/sgxsdk/include -DNDEBUG -UEDEBUG -UDEBUG -std=c++11 -m64 -O2 -nostdinc -fvisibility=hidden -fpie -ffunction-sections -fdata-sections -fstack-protector-strong -I. -I.. -I/opt/intel/sgxsdk/include -I/opt/intel/sgxsdk/include/tlibc -I/opt/intel/sgxsdk/include/libcxx -std=c++11 -nostdinc++ ecalls.cpp  
cc -c -m64 -O2 -fPIC -Wno-attributes -I/opt/intel/sgxsdk/include -DNDEBUG -UEDEBUG -UDEBUG -m64 -O2 -nostdinc -fvisibility=hidden -fpie -ffunction-sections -fdata-sections -fstack-protector-strong -I. -I.. -I/opt/intel/sgxsdk/include -I/opt/intel/sgxsdk/include/tlibc -I/opt/intel/sgxsdk/include/libcxx enclave_t.c  
g++ -o genquote_enclave ecalls.o enclave_t.o -m64 -O2 -L/usr/lib/x86_64-linux-gnu -L/opt/intel/sgxsdk/lib64  -lsgx_urts -lpthread -lsgx_dcap_ql -lsgx_quote_ex -lsgx_uae_service -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L/opt/intel/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tcxx -lsgx_tcrypto -lsgx_tservice -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections  
make[2]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'  
make sign  
make[2]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'  
<EnclaveConfiguration>  
    <ProdID>1</ProdID>  
    <ISVSVN>1</ISVSVN>  
    <StackMaxSize>0x400000</StackMaxSize>  
    <HeapMaxSize>0x400000</HeapMaxSize>  
    <TCSNum>2</TCSNum>  
    <DisableDebug>1</DisableDebug>  
</EnclaveConfiguration>  
tcs_num 2, tcs_max_num 2, tcs_min_pool 1  
The required memory is 12668928B.  
The required memory is 0xc15000, 12372 KB.  
Succeed.  
<EnclaveConfiguration>  
    <ProdID>9999</ProdID>  
    <ISVSVN>1</ISVSVN>  
    <StackMaxSize>0x400000</StackMaxSize>  
    <HeapMaxSize>0x400000</HeapMaxSize>  
    <TCSNum>2</TCSNum>  
    <DisableDebug>1</DisableDebug>  
</EnclaveConfiguration>  
tcs_num 2, tcs_max_num 2, tcs_min_pool 1  
The required memory is 12668928B.  
The required memory is 0xc15000, 12372 KB.  
Succeed.  
<EnclaveConfiguration>  
    <ProdID>1</ProdID>  
    <ISVSVN>8888</ISVSVN>  
    <StackMaxSize>0x400000</StackMaxSize>  
    <HeapMaxSize>0x400000</HeapMaxSize>  
    <TCSNum>2</TCSNum>  
    <DisableDebug>1</DisableDebug>  
</EnclaveConfiguration>  
tcs_num 2, tcs_max_num 2, tcs_min_pool 1  
The required memory is 12668928B.  
The required memory is 0xc15000, 12372 KB.  
Succeed.  
make[2]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'  
make[1]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/enclave'  
make -C host  
make[1]: Entering directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/host'  
Build using: cc, g++  
cc -c -m64 -O2 -fPIC -Wno-attributes -I/opt/intel/sgxsdk/include -DNDEBUG -UEDEBUG -UDEBUG  enclave_u.c  
g++ -c -m64 -O2 -fPIC -Wno-attributes -I/opt/intel/sgxsdk/include -DNDEBUG -UEDEBUG -UDEBUG -std=c++11 -I. -I/usr/include host.cpp  
g++ -o genquote_sgx_host host.o enclave_u.o -lcrypto -m64 -O2 -L/usr/lib/x86_64-linux-gnu -L/opt/intel/sgxsdk/lib64  -lsgx_urts -lpthread -lsgx_dcap_ql -lsgx_quote_ex -lsgx_uae_service  
make[1]: Leaving directory '/home/sama/microsoft-azure-attestation/sgx.attest.sample.intel.sdk/genquotes/host'  
host/genquote_sgx_host ./enclave/genquote_enclave.release.signed           enclave.info.release.json  
  
[get_platform_quote_cert_data ../qe_logic.cpp:378] Error returned from the p_sgx_get_quote_config API. 0xe047  
Step1: Call sgx_qe_get_target_info: Error in sgx_qe_get_target_info. 0xe047  
make: *** [Makefile:22: run] Error 255  
Azure HPC Cache
Azure HPC Cache
An Azure service that provides file caching for high-performance computing.
23 questions
{count} vote