edgelesssys / edgelessrt

Edgeless RT is an SDK and a runtime for Intel SGX. It combines top-notch Go support with simplicity, robustness and a small TCB. Developing confidential microservices has never been easier! C++17 and Rust (experimental) are also supported.
https://edgeless.systems
MIT License
134 stars 20 forks source link

Running sample #162

Open MuffinsThaCat opened 9 months ago

MuffinsThaCat commented 9 months ago

I am trying to run edglessrt go sample

Getting error while running OE_SIMULATION=1 erthost enclave.signed root@d1cc01526652:/com.docker.devenvironments.code/edgelessrt/samples/go/build# OE_SIMULATION=1 erthost enclave.signed [erthost] running in simulation mode [erthost] loading enclave ... Illegal instruction

Steps to reproduce on our end:

clone edgelessrt and go to samples/go run mkdir build run cd build run cmake run make run OE_SIMULATION=1 erthost enclave.signed

thomasten commented 9 months ago

We've not seen the "Illegal instruction" error before. Are you running this on an emulation layer? In our experience, edgelessrt requires real x64 hardware, even in simulation mode. (E.g., it won't run on Rosetta.)