If you're running a local machine and not a cloud-based VM -
- 1.Go to your BIOS menu
- 2.Enable SGX (Software controlled is not enough)
- 3.Disable Secure Boot
- 4.Disable Hyperthreading (recommended)
sgx_linux_x64_driver_1.41.binis the latest driver as of March 9th, 2023. Please check under https://download.01.org/intel-sgx/sgx-linux/ that this is still the case. If not, please send us a PR or notify us.
If you are a node runner all you must do to install SGX is to save this as a script and run it.
- 1.Download the SGX install script.
Execute the script.
sudo bash sgx
Copy of raw script.
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony dkms gpg-agent -y
UBUNTUVERSION=$(lsb_release -r -s | cut -d '.' -f 1)
PSW_PACKAGES='libsgx-enclave-common libsgx-aesm-launch-plugin libsgx-aesm-epid-plugin libsgx-aesm-quote-ex-plugin libsgx-urts sgx-aesm-service libsgx-uae-service autoconf libtool make gcc'
if (($UBUNTUVERSION < 16)); then
echo "Your version of Ubuntu is not supported. Must have Ubuntu 16.04 and up. Aborting installation script..."
elif (($UBUNTUVERSION == 16)); then
elif (($UBUNTUVERSION == 18)); then
elif (($UBUNTUVERSION == 20)); then
elif (($UBUNTUVERSION == 22)); then