Coder Social home page Coder Social logo

Not able to run SampleEnclave because of SGX module seems to be disabled in BIOS while my BIOS tells it is enabled about linux-sgx-driver HOT 9 CLOSED

intel avatar intel commented on August 29, 2024
Not able to run SampleEnclave because of SGX module seems to be disabled in BIOS while my BIOS tells it is enabled

from linux-sgx-driver.

Comments (9)

haitaohuang avatar haitaohuang commented on August 29, 2024

do you see /dev/isgx after installing driver?

from linux-sgx-driver.

shao158 avatar shao158 commented on August 29, 2024

I have the same problem running SampleEnclave.

I can see /dev/isgx and "isgx" in /etc/modules. Thanks for any help.

from linux-sgx-driver.

andyzyb avatar andyzyb commented on August 29, 2024

Can you list all the packages you've installed for SGX ? There might be missing some packages.

from linux-sgx-driver.

shao158 avatar shao158 commented on August 29, 2024

Thanks for replying.

Yes, according to this page, I ran the following commands to make sure I have all dependencies:

sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python libssl-dev git
sudo apt-get install libssl-dev libcurl4-openssl-dev protobuf-compiler libprotobuf-dev debhelper cmake reprepro
sudo apt-get install build-essential python
sudo apt-get install libssl-dev libcurl4-openssl-dev libprotobuf-dev

from linux-sgx-driver.

shao158 avatar shao158 commented on August 29, 2024

And I installed the following SGX packages:

libsgx-enclave-common
libsgx-epid
libsgx-launch
libsgx-urts
libsgx-uae-service
libsgx-quote-ex

from linux-sgx-driver.

andyzyb avatar andyzyb commented on August 29, 2024

Did you use the Intel Debian repo for installation (apt-get) for SGX packages, then it will resolve all the dependency?

If you install it through dkpg one by one, there are many other packages to be installed.

Can you check if aesm service is running, like "sudo service aesmd status"?

from linux-sgx-driver.

shao158 avatar shao158 commented on August 29, 2024

Thanks for reminding this.
Now I installed aesm, and SampleEnclave is running perfect in both Hardware and Sim modes.

But LocalAttestation still has an error, for both Hardware and Sim modes,
saying "failed to load enclave". Is this also because I missed some packages?
I already used apt-get to check all six packages list above.
And "sudo service aesmd status" is actively running.

from linux-sgx-driver.

andyzyb avatar andyzyb commented on August 29, 2024

For LocalAttestion, there seems an error in README. Can you try below command?

$ cd SampleCode/LocalAttestation
$ make $ make
$ cd bin
$ ./app $ ./app

from linux-sgx-driver.

shao158 avatar shao158 commented on August 29, 2024

Wow. This works. Thanks you very much.

from linux-sgx-driver.

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.