Code Monkey home page Code Monkey logo

[ERROR] occlum-pal: Failed to create enclave with error code 0x2006: Invalid SGX device. Please make sure SGX module is enabled in the BIOS, and install SGX driver afterwards. (line 152, file src/pal_enclave.c) about enclave-cc HOT 5 CLOSED

niteeshkd avatar niteeshkd commented on July 16, 2024
[ERROR] occlum-pal: Failed to create enclave with error code 0x2006: Invalid SGX device. Please make sure SGX module is enabled in the BIOS, and install SGX driver afterwards. (line 152, file src/pal_enclave.c)

from enclave-cc.

Comments (5)

niteeshkd avatar niteeshkd commented on July 16, 2024 1

The above problem disappeared after reinstalling the SGX plugin in K8s cluster. We can close this issue.

from enclave-cc.

niteeshkd avatar niteeshkd commented on July 16, 2024

It seems the above issue is already reported with occlum .

from enclave-cc.

dcmiddle avatar dcmiddle commented on July 16, 2024

Thanks for researching and reporting.

from enclave-cc.

mythi avatar mythi commented on July 16, 2024

The above problem disappeared after reinstalling the SGX plugin in K8s cluster. We can close this issue.

any suggestions if we need to improve some docs on this? the enclave-cc quickstart briefly mentions the need for and "SGX enabled cluster" and the use of sgx.intel.com/epc resource request which implies the device plugin usage.

from enclave-cc.

niteeshkd avatar niteeshkd commented on July 16, 2024

any suggestions if we need to improve some docs on this? the enclave-cc quickstart briefly mentions the need for and "SGX enabled cluster" and the use of sgx.intel.com/epc resource request which implies the device plugin usage.

Yes, I would like to mention the following two things about the SGX plugin REAME page.

  1. There are three approaches (one with Operator and two with kubectl) to install SGX plugin. For me only the second approach (which deploys NFD and NodeFaetureRules before deploying SGX plugin) worked. The other two approaches did not report the value of sgx.intel.com/epc .
  2. Regarding the above issue, after rebooting the machine, I noticed Error from server (InternalError): error when creating "https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/sgx_plugin/overlays/epc-nfd/": Internal error occurred: failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s": dial tcp 10.104.79.143:443: connect: connection refused while installing SGX plugin using the second approach although I noticed the correct value of sgx.intel.com/epc. Somehow, i managed to install SGX plugin after few trials of uninstalling/installing SGX plugin with SGX admission webhook. Not sure whether SGX admission webhook should be installed before NFD / NodeFaetureRules or just before SGX Plugin. I would suggest one to make sure the SGX plugin is installed without any error apart from seeing the correct value of sgx.intel.com/epc . Also, it should be clearly mentioned that SGX admission webhook is required for both the approaches using kubectl.

from enclave-cc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.