Run a Nomad node
This guide takes you from a server to a running node. It uses Ubuntu 24.04 LTS, a Linux operating system, and Docker Compose, which packages and starts the software with its settings. You’ll connect to the server through SSH, a secure remote terminal.
Before starting, review the $10,000 minimum deposit in ETH and operating costs in node economics. If server setup is new to you, contact us and we can walk through it together. Run commands on the node host unless a step says otherwise.
1. Confirm your deployment
Contact us before provisioning. We’ll help you choose a suitable host and confirm your funding plan. Nomad supplies the network configuration; you do not need to choose signer keys or calculate gas settings yourself.
Intel SGX is the processor feature that gives Nomad a protected workspace for keys and transfer data. The overview explains it in plain language. These are the specifications to confirm with your hosting provider:
- An x86-64 Intel CPU with SGX2 and Flexible Launch Control enabled.
- A Linux kernel with the SGX driver. For a VM, SGX must be exposed to the guest.
- Persistent local storage, reliable networking, and accurate system time.
Ask your hosting provider what happens to SGX identity during migration or replacement. Read recovery limits and host security before funding.
2. Prepare SGX
First check that Linux can see the two SGX devices. These file paths are how the software accesses the processor’s security features:
ls -l /dev/sgx_enclave /dev/sgx_provisionIf either is missing, ask your provider to check the hardware, BIOS, or VM configuration before continuing. Next, install Intel’s packages, including AESM, the service used to support attestation. Attestation is evidence that the expected software is running in protected hardware.
sudo apt-get update
sudo apt-get install -y ca-certificates curl
sudo install -d -m 0755 /etc/apt/keyrings
sudo curl -fsSL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key \
-o /etc/apt/keyrings/intel-sgx-keyring.asc
sudo chmod 0644 /etc/apt/keyrings/intel-sgx-keyring.asc
printf '%s\n' 'deb [signed-by=/etc/apt/keyrings/intel-sgx-keyring.asc arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu noble main' \
| sudo tee /etc/apt/sources.list.d/intel-sgx.list
sudo apt-get update
sudo apt-get install -y libsgx-quote-ex libsgx-dcap-ql libsgx-dcap-default-qpl sgx-aesm-service
sudo systemctl enable --now aesmd
sudo systemctl status aesmd --no-pagerConfigure the quote provider using Intel’s installation guide and your hosting provider’s instructions. Keep any provider-specific attestation collateral endpoint.
Check the configuration file and AESM socket:
sudo test -S /var/run/aesmd/aesm.socket
sudo test -f /etc/sgx_default_qcnl.confYou’ll verify production enclave initialization during funding. These checks only confirm that the required files and service are present.
3. Install Docker and create the node directory
Install Docker Engine and the Compose plugin using Docker’s Ubuntu instructions. Then prepare the working directory:
docker version
docker compose version
mkdir -p ~/nomad/data
cd ~/nomad
chmod 700 data
umask 077Create compose.yaml:
services:
nomad:
image: ghcr.io/mirageprivacy/nomad:latest
command: ["run"]
devices:
- /dev/sgx_enclave:/dev/sgx_enclave
- /dev/sgx_provision:/dev/sgx_provision
volumes:
- /var/run/aesmd:/var/run/aesmd
- /etc/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf:ro
- ./data:/root/.config/nomad
ports:
- "8000:8000/tcp"
- "9000:9000/tcp"
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--max-time", "5", "http://127.0.0.1:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
stop_grace_period: 5m
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"Allow inbound TCP traffic on both ports 8000 and 9000 in your host firewall and hosting provider’s network rules. Port 8000 serves attestation and enclave key sharing between nodes; port 9000 carries gossip traffic. Both must be reachable by peers. The local health check can still use 127.0.0.1.
The data mount keeps configuration and sealed state across container replacement. Keep the image’s enclave paths at /opt/nomad/enclave.sgxs and /opt/nomad/enclave.sig.
Validate the Compose file and pull the image:
docker compose config --quiet
docker compose pull nomad
docker compose run --rm nomad --version4. Generate configuration
docker compose run --rm nomad config --network ethereum --write
sudo chmod 600 data/config.tomlThis creates data/config.toml without overwriting an existing file. Keep the supplied Ethereum network, peer, signer, and pricing settings. We maintain these defaults and will provide any network-wide configuration updates needed for your deployment.
Keep enclave.seal_path = ".", ports 8000 and 9000, and the production enclave paths for this Compose setup. Next, add your backup settings.
Never use --debug or --nosgx with real funds. See configuration and preferences for the field reference.
5. Configure backups
Follow backups and recovery, including the Amazon S3 setup, before funding.
6. Fund and activate your node
Funding is required before the first start. A new node cannot run until the deposit command has created and funded its accounts.
Choose an ETH amount worth at least $10,000 and replace AMOUNT_IN_ETH below with that amount, written as a decimal number. Keep the command running in a persistent terminal such as tmux:
docker compose run --rm nomad deposit AMOUNT_IN_ETH- Check that the logs show
Loading prod enclaveand thatdata/eoa.binhas an S3 backup. The command displays the funding addresses and the amount each needs. - Send native ETH on Ethereum mainnet to the displayed addresses, meeting each target. Save the address table privately.
- Wait for every account to activate and for the deposit command to finish successfully. Confirm that S3 received the updated
eoa.binbefore continuing.
Read fund your node for the detailed checks and amount options. If the command stops after you send funds, keep the state and address table and contact us before retrying; a new invocation requests fresh accounts.
7. Start and verify
Continue only after the deposit and account activation in step 6 have completed successfully.
docker compose up -d nomad
docker compose ps
docker compose logs --tail=100 nomad
curl --fail --silent --show-error http://127.0.0.1:8000/
curl --fail --silent --show-error http://127.0.0.1:8000/attestCheck the version, isSgx: true, and isReadOnly: false. Compare the attestation’s enclave identity and production mode with the build details we provide. isSgx alone does not verify an approved build.
Review logs for peer, RPC, attestation, or S3 errors. Confirm that both sealed files have remote backup versions.
Finally, configure monitoring and work with us to observe a transfer through execution and collection. A responsive API is only the first check; completed settlement confirms the node can do its work.