# Check SGX Support

### Intel SGX check

There is no easy way to check SGX support in CPU and BIOS using Windows, therefore Linux is required to be installed to perform the checks.

Please check the section on Ubuntu Installation:

Operating System - Linux

Intel Software Guard Extension (SGX) functions are required for running an Ethernity NODE.\
To test if your environment supports SGX functions, run the small utility included in the repository:

#### **1. Clone the repository**

If you have not done so already, clone the repostiory.

```
git clone https://github.com/ethernity-cloud/mvp-pox-node.git
cd mvp-pox-node
```

Run test-sgx

```
utils/linux/test-sgx
```

### Results

```
...
Extended feature bits (EAX=07H, ECX=0H)
eax: 0 ebx: 29c6fbf ecx: 0 edx: 0
sgx available: 1

CPUID Leaf 12H, Sub-Leaf 0 of Intel SGX Capabilities (EAX=12H,ECX=0)
eax: 1 ebx: 0 ecx: 0 edx: 241f
sgx 1 supported: 1
sgx 2 supported: 0
MaxEnclaveSize_Not64: 1f
MaxEnclaveSize_64: 24
...
```

The following values must be 1 to indicate SGX support by the CPU:\
**sgx available**

One of the following values must be 1 to indicate SGX support in the System/BIOS\
**sgx 1 supported**\
**sgx 2 supported**

Another way of telling SGX works as expected is a value other than 0 for the following:\
**MaxEnclaveSize\_64**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ethernity.cloud/ethernity-node/prerequisites-ethernity-node/check-sgx-support.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
