Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to open Intel SGX device #8

Open
Lio101 opened this issue Jan 21, 2022 · 2 comments
Open

Failed to open Intel SGX device #8

Lio101 opened this issue Jan 21, 2022 · 2 comments

Comments

@Lio101
Copy link

Lio101 commented Jan 21, 2022

Hi,
Is it possible to run the server on Linux machine with SGX support? (Not ACC VM)

I am trying to run it on Linux machine :
OS: Ubuntu 20.04
CPU: Intel i5 7200U
SGX SDK: 2.15

I was able to complete the setup, but getting this error when trying to start the server:
sudo docker run --rm --name model-server-test --device=/dev/sgx/provision -p 8888:8888 model-server [2022-01-21 09:47:43.469] [ServerApp] [info] Enclave path: /root/confonnx_server_enclave.signed [2022-01-21 09:47:43.469] [ServerApp] [info] Model path: /root/model.onnx [2022-01-21 09:47:43.469] [ServerApp] [info] Creating enclave [get_driver_type /home/sgx/jenkins/linux-ubuntuServer-release-build-trunk-215.1/build_target/PROD/label/Builder-UbuntuSrv18/label_exp/ubuntu64/linux-trunk-opensource/psw/urts/linux/edmm_utility.cpp:111] Failed to open Intel SGX device. 2022-01-21T09:47:43.000000Z [(H)ERROR] tid(0x7f8a50504f40) | enclave_create with ENCLAVE_TYPE_SGX1 type failed (err=0x1) (oe_result_t=OE_PLATFORM_ERROR) [../host/sgx/sgxload.c:oe_sgx_create_enclave:480] 2022-01-21T09:47:43.000000Z [(H)ERROR] tid(0x7f8a50504f40) | :OE_PLATFORM_ERROR [../host/sgx/create.c:oe_sgx_build_enclave:812] 2022-01-21T09:47:43.000000Z [(H)ERROR] tid(0x7f8a50504f40) | :OE_PLATFORM_ERROR [../host/sgx/create.c:oe_create_enclave:960] [2022-01-21 09:47:43.494] [ServerApp] [critical] ERROR (N11onnxruntime6server15EnclaveSDKErrorE): OE_PLATFORM_ERROR

@AdelinaFilip
Copy link

AdelinaFilip commented Apr 30, 2022

@Lio101 is there any update on this? I am running into almost the same issue when trying to run it in simulation mode

@Lio101
Copy link
Author

Lio101 commented May 6, 2022

@AdelinaFilip its not working in simulation mode. I am only able to build it in Azure Confidential Computing VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants