5

I want to use Intel SGX on Ubuntu.

I have a Dell Inspiron with an Intel i7-8550U, and that CPU supports SGX. I am running Ubuntu 18.04 from a bootable flash drive (my main OS is Windows 10, typically I use a VM for my Linux dev, but a VM seems unable to access the SGX chip). I have set SGX to "enabled" mode in my BIOS settings.

I have downloaded the latest version of the SGX SDK from here. I have downloaded the icls client from here. I then install it as follows:

sudo apt-get install alien
sudo alien --scripts Downloads/iclsClient-1.45.449.12-1.x86_64.rpm
sudo dpkg -i iclsclient_1.45.449.12-2_amd64.deb
sudo ./sgx_linux_x64_driver_778dd1f.bin
sudo dpkg -i libsgx-enclave-common_2.5.100.49891-bionic1_amd64.deb
sudo ./sgx_linux_x64_sdk_2.5.100.49891.bin
source sgxsdk/environment

The sdk includes some examples. I am able to run them in debug mode, but they are not working in hardware mode.

Any thoughts on why? Has anyone successfully run (the 2.5 version of) the SGX SDK using Ubuntu?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.