gpt4 book ai didi

azure - 'make' KDIR=/lib/modules/5.15.0-1023-azure/build....(错误退出状态 : 2)

转载 作者:行者123 更新时间:2023-12-03 06:35:23 26 4
gpt4 key购买 nike

我正在尝试使用 os ubuntu 20.04 https://www.intel.com/content/www/us/en/developer/articles/guide/intel-software-guard-extensions-data-center-attestation-primitives-quick-install-guide.html 的虚拟机上的链接安装 SGX DCAP当我运行命令 sudo ./sgx_linux_x64_driver_1.36.2.bin

I get error:
Unpacking Intel SGX Driver ... done.
Verifying the integrity of the install package ... done.
Installing Intel SGX Driver ...
/tmp/sgx-driver-TPgGiQ /home/sama
install -d /opt/intel/sgxdriver/package
install -d /opt/intel/sgxdriver/scripts
cp -r package/* /opt/intel/sgxdriver/package
install scripts/* /opt/intel/sgxdriver/scripts
/home/sama

Creating symlink /var/lib/dkms/sgx/1.36.2/source ->
/usr/src/sgx-1.36.2

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' KDIR=/lib/modules/5.15.0-1023-azure/build....(bad exit status: 2)
ERROR (dkms apport): binary package for sgx: 1.36.2 not found
Error! Bad return status for module build on kernel: 5.15.0-1023-azure (x86_64)
Consult /var/lib/dkms/sgx/1.36.2/build/make.log for more information.

这是 dpkg-query -s linux-headers-$(uname -r) 的结果

Package: linux-headers-5.15.0-1029-azure
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 24905
Maintainer: Ubuntu Kernel Team <<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d26283f2328216039282c200d21243e393e63382f38233938632e2220" rel="noreferrer noopener nofollow">[email protected]</a>>
Architecture: amd64
Source: linux-azure-5.15
Version: 5.15.0-1029.36~20.04.1
Provides: linux-headers, linux-headers-3.0
Depends: linux-azure-5.15-headers-5.15.0-1029, libc6 (>= 2.22), libelf1 (>= 0.142), libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.2.3.3)
Description: Linux kernel headers for version 5.15.0 on 64 bit x86 SMP
This package provides kernel header files for version 5.15.0 on
64 bit x86 SMP.
.
This is for sites that want the latest kernel headers. Please read
/usr/share/doc/linux-headers-5.15.0-1029/debian.README.gz for details.

这是运行命令 ls -la /dev/sgx* 的结果

crw-rw-rw- 1 root root    10, 125 Dec 27 07:31 /dev/sgx_enclave
crw-rw---- 1 root sgx_prv 10, 126 Dec 27 07:31 /dev/sgx_provision

/dev/sgx:
total 0
drwxr-xr-x 2 root root 80 Dec 27 07:31 .
drwxr-xr-x 20 root root 3960 Dec 27 09:43 ..
lrwxrwxrwx 1 root root 14 Dec 27 07:31 enclave -> ../sgx_enclave
lrwxrwxrwx 1 root root 16 Dec 27 07:31 provision -> ../sgx_provision

有人知道原因吗?

最佳答案

SGX DCAP 的安装过程与 azure 不同,并且驱动程序已安装(以 DCsV3 VM 为例)。事实上,它有自己的插件,您可以在这里找到 https://github.com/microsoft/Azure-DCAP-Client 。或者,您可以直接使用以下命令安装它:

curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-add-repository https://packages.microsoft.com/ubuntu/{your ubuntu distribution}/prod
sudo apt-get update
sudo apt-get install az-dcap-client
ln -s /usr/lib/libdcap_quoteprov.so /usr/lib/x86_64-linux-gnu/libdcap_quoteprov.so.1

PS:确保您使用支持 Intel SGX 的虚拟机。

关于azure - 'make' KDIR=/lib/modules/5.15.0-1023-azure/build....(错误退出状态 : 2),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74928238/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com