Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

'failed to load enclave' in hardware mode with Intel SGX

alepvn33
Beginner
652 Views

Hello everyone,

 

For the past few days, following the official guide (https://gramine.readthedocs.io/en/latest/devel/building.html) I've been trying to install Gramine in my laptop (HP EliteBook 840 G3, Intel Core i7-6500U CPU @ 2.50GHz × 4, Ubuntu 18.04.6 LTS, 5.4.0-150-generic) without any luck.

The point where I'm stuck is the Intel SGX installing. For the drivers, I upgrade my kernel to the 5.11.5 and the drivers are already included. Then, after building and installing Intel SGX SDK as the official Intel guide (https://download.01.org/intel-sgx/latest/dcap-latest/linux/docs/Intel_SGX_SW_Installation_Guide_for_Linux.pdf) says, I use the sample code under SampleCode/LocalAttestation in simulation mode to check the installing, and everything works perfectly. However, after building and installing PSW and running the sample code in hardware mode, I get "failed to load enclave" as a result. I tried everything but nothing seems to work. In the attached txt I show every command that I used to clarify my situation.

Can you please help me? I've tried everything so far.

Thanks!

 

 

0 Kudos
2 Replies
Aznie_Intel
Moderator
541 Views

Hi Alepvn33,

 

Thanks for reaching out.

 

The issue might be because your SGX driver is not loaded. Try running these commands and see if you get any errors. If an error arises, it means that the SGX driver was not correctly installed.

 

$ sudo /sbin/depmod

$ sudo /sbin/modprobe isgx

 

 

Regards,

Aznie


0 Kudos
Aznie_Intel
Moderator
463 Views

Hi Alepvn33,


Thank you for your question. If you need any additional information from Intel, please submit a new question as this thread is no longer being monitored. 



Regards,

Aznie


0 Kudos
Reply