Requirements

General Khala Hardware Requirements

A system can potentially mine Phala if it meets these general requirements:

CPUSystemMemoryStorage
SGX-compatible Processor
SGX-compatible BIOSUbuntu 20.04≥ 2G per core≥ 1T
≥ 2 cores

Requirements Checklist

Alternatively, you can test mining through renting hardware.

Check Your CPU

Currently, only Intel® SGX is supported, hence an Intel® SGX compatible CPU is a requirement.

1. Lookup Your Processor

Windows

See how to lookup your CPU on Windows

Start > ⚙️Settings > 🎛️Control Panel

Note that you require a supported Linux OS to run a Phala miner.

On Windows, head over to ‘Control Panel/Settings,’ or right-click on the Start icon and select ‘System.’

Linux

See how to lookup your CPU's model on Linux

  • With a GUI

Settings > About

On Ubuntu, click in the upper-right corner, pick ‘Settings,’ select ‘About,’ and look for ‘Processor.’

(Navigating to ‘Settings’ on a Desktop GUI to look up CPU specs)

  • Without GUI

In case you do not have a GUI, enter the following command into your shell and look for your CPU’s ‘Model name:’

lscpu

(Looking up the CPU model with the lscpu command in the Linux shell)

2. Confirm the CPU Supports Intel® SGX

Once you know your CPU’s model name:

On the Intel® product specifications (ARK) website, you will find information about your CPU’s Intel® SGX compatibility. In addition, under the ‘Security & Reliability’ section, it will mention if your CPU is compatible or not. Below is an example of the Intel® Core™ i7-8700 CPU @ 3.20GHz, a screenshot taken from the Intel® product specifications (ARK).

(This image shows a CPU that supports Intel® SGX.)

ℹ️ If you do not have an Intel® SGX compatible CPU yet, you may use the advanced search option at the Intel® website to find your next processor. In general terms, the newer the processor is and the more cores it has, the greater the compatibility and the miner rating.

Check Your BIOS

A motherboard supporting Intel® SGX and the BIOS settings listed below is required.

1. Boot into BIOS

Refer to these resources to ‘boot into BIOS mode’ from Microsoft© or wikiHow.

Look for instructions to boot into your BIOS on the screen immediately after a cold boot; this varies by manufacturer.

2. Disable Secure Boot

In the BIOS settings go to: Security > Secure Boot and set it to Disabled

  • The terms in the BIOS menu may differ depending on your motherboard manufacturer.

3. Use UEFI Boot

In the BIOS menu under Boot > Boot Mode set it to UEFI.

4. Save & Reboot

Do not forget to save your BIOS settings.

  • Reboot your machine after the settings are saved.

5. Enable Intel® SGX Extensions

Go to Security > Intel® SGX (The exact name may vary by manufacturer), set it to Enabled.

Expand for critical additional information ℹ️

wget https://github.com/Phala-Network/sgx-tools/releases/download/0.1/sgx_enable
chmod +x sgx_enable
sudo ./sgx_enable

Supported Operating Systems

Ubuntu is recommended. You need to be able to boot your computer into a supported version of Ubuntu to mine. The following OS versions of Ubuntu have been reported to be compatible to mine.

More information on how to install Ubuntu Desktop.

  • If you have no GUI or physicall access to the machine, you may want to use SSH.

Ubuntu 20.04

Using a Linux kernel version of 5.8.0-xxx is recommended for Ubuntu 20.04.

To find your Linux kernel version type:

hostnamectl | grep Kernel

Get the Linux Kernel utilities for Ubuntu 20.04.

git clone https://github.com/mtompkins/linux-kernel-utilities.git
cd linux-kernel-utilities/
chmod +x *.sh

To see a list of available Kernel versions for your machine, execute the following command:

./compile_linux_kernel.sh

It is recommended to follow the instructions and select to install Ubuntu 20.04 Kernel version 5.8.



Ubuntu 21.10

For Ubuntu 21.10 we recommend kernel version 5.13.0-xxx.

To find your Linux kernel version type:

hostnamectl | grep Kernel

Some packages do not come natively installed. It is therefore recommended to install the most crucial ones now as instructed below.

DCAP Driver for Intel® SGX

First, install Rust with rustup. This is needed to install the driver.

To install rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Follow the instructions in the script.

Do not forget to execute source $HOME/.cargo/env for the installation to work.

After successfully installing Rust, you need to install Rust nightly with the following command:

rustup default nightly

To install the Foranix EDP target through executing:

rustup target add x86_64-fortanix-unknown-sgx --toolchain nightly

Now you are ready to Install the Intel® SGX driver.

echo "deb https://download.fortanix.com/linux/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/fortanix.list >/dev/null
curl -sSL "https://download.fortanix.com/linux/apt/fortanix.gpg" | sudo -E apt-key add -
sudo apt-get update
sudo apt-get install intel-sgx-dkms

Follow the instructions in the installation script. You may need to reboot after successful completion.

You are now ready to proceed to the next section.




👇 If you have any issues feel free to reach out to the community. 👇

Edit this page on GitHub