Skip to content

How to install Intel SGX Driver on Ubuntu

Mats edited this page Mar 29, 2020 · 8 revisions

In this tutorial describes how to set up Intel SGX on a Linux system. The Intel SGX driver is required to run the enclaves on the supported machine. This makes it possible to execute enclaves that designate their own memory area with higher privileges. These can only be encrypted and decrypted by the processor. Primarily we will deal with the installation of the SGX driver.

First of all, we have to download the latest Intel SGX release (for example Intel SGX Linux 2.8 Release) on the following page:

Screenshot 2020-02-23 at 00 33 03

❗ Note: In the meantime Linux SGX version 2.9 has been released. It is possible that the manual also applies to version 2.9. However, the manual has been tested with version 2.8.


Please make sure to use the SGX release for Ubuntu 18.04. Subsequently you will be redirected to a mirror where two binary files are contained.

Screenshot 2020-02-23 at 00 34 22

Download the driver file sgx_linux_x64_driver_<version>.bin and navigate to the destinated location in the filesystem. Before we can run the file, we have to use the chmod command to make it executable.

  • chmod +x sgx_linux_x64_driver_<version>.bin

Now we can run the driver installation with root privileges. sudo ./sgx_linux_x64_driver_<version>.bin


After execution of the .bin file, the SGX driver has been successfully installed and is ready for use.