intel / intel/confidential-computing.sgx

Unable to install Intel SGX DCAP driver on Ubuntu 20.04 with kernel 5.15.0-1035-azure

Open
#945 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

I am trying to install the Intel SGX DCAP driver on a virtual machine running Ubuntu 20.04 with kernel version 5.15.0-1035-azure. However, the installation fails with the following error message:

```
Failed to build driver.
DKMS make.log for sgx-1.41 for kernel 5.15.0-1035-azure (x86_64)
Wed Apr 12 22:46:31 UTC 2023
Makefile:24: *** Can't install DCAP SGX driver with inkernel SGX support. Stop.
```
I have followed the suggested steps to disable the in-kernel SGX driver, such as blacklisting intel_sgx in /etc/modprobe.d/blacklist.conf and adding noxsave and nosgx to the kernel parameters in /etc/default/grub. However, the issue persists.

Here is the output of `uname -a`:

`Linux accvm3 5.15.0-1035-azure #42~20.04.1-Ubuntu SMP Wed Mar 1 19:17:41 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
`

And the output of `sudo dmesg | grep -i sgx`:
```
[ 0.550821] sgx: EPC section 0x1c0200000-0x1c1bfffff
[ 0.552345] sgx: EPC section 0x1c1e00000-0x1c1ffffff
```

I would appreciate any help or suggestions to resolve this issue.

The reason why I need to do this is that I need ECDSA signatures and the readme says:

> To use ECDSA attestation, you must install Intel(R) Software Guard Extensions Driver for Data Center Attestation Primitives (Intel(R) SGX DCAP). Please follow the [Intel(R) SGX DCAP Installation Guide for Linux* OS](https://download.01.org/intel-sgx/latest/dcap-latest/linux/docs/Intel_SGX_SW_Installation_Guide_for_Linux.pdf) to install the Intel(R) SGX DCAP driver.
> NOTE: If you had already installed Intel(R) SGX driver without ECDSA attestation, please uninstall the driver firstly and then install the Intel(R) SGX DCAP driver. Otherwise the newly installed Intel(R) SGX DCAP driver will be unworkable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.