diff --git a/src/operators/AMD.md b/src/operators/AMD.md index 0db3e01..2babb27 100644 --- a/src/operators/AMD.md +++ b/src/operators/AMD.md @@ -12,22 +12,72 @@ More information about the capabilities of each generation can be found on the [ The server must have a public IP. -## The Kernel +# DeTEE CLI + +You will need the [DeTEE CLI](https://hub.docker.com/r/detee/detee-cli) to create your operator wallet. The wallet is required to receive rewards. + +The server has a key, but that is used only for authentication, and not to receive rewards. + +# The Kernel TL/DR: You need a new kernel, so install Fedora or Archlinux on the server. We will write here when newer generations are supported. -## DeTEE Daemon +# DeTEE SNP Daemon -The DeTEE Daemon will be available for download with the release of the testnet. +TLDR: To download the installation script, run: +```bash +wget https://registry.detee.ltd/daemon/install_daemon.sh +``` + +The script will guide you through the rest of the steps, that are also detailed below. + +## Installation + +The script looks as follows: +```bash +#!/bin/bash +set -e +echo "Creating folders..." +mkdir -p /var/lib/detee/boot/ +mkdir -p /etc/detee/daemon/vms/ +mkdir -p /usr/local/bin/detee/ +mkdir -p /opt/detee_vms/ +echo "Installing qemu-system-x86..." +pacman -S qemu-system-x86 --noconfirm + +echo "Downloading detee-snp-daemon, systemd unit file and config..." +wget -O /etc/detee/daemon/sample_config.yaml https://registry.detee.ltd/daemon/config.yaml +wget -O /usr/local/bin/detee-snp-daemon https://registry.detee.ltd/daemon/detee-snp-daemon +wget -O /etc/system/systemd/detee-snp-daemon https://registry.detee.ltd/daemon/detee-brain-mock.service + +echo "Take a look at /etc/detee/daemon/sample_config.yaml" +echo "Modify config based on your setup and save it to /etc/detee/daemon/config.yaml" +echo "Press enter when done (this will attempt to start the daemon)" +read my_var + +echo "Starting detee-snp-daemon..." +systemctl daemon-reload +systemd start detee-snp-daemon.service +``` + +You can also copy-paste this to your server and run it. The script pulls the daemon, the systemd unit file and the config. + +## DeTEE SNP Daemon Config You will need to configure the daemon by modifying `/etc/detee/daemon/config.yaml`. The default configuration does not offer public IPs, and offers by default 16 vCPUs, 20GB of Memory and 400GB of storage. Modify these values depending on how many resources you want to rent to the network. Here is a sample configuration that includes public IPv4 and IPv6 IPs: -```json +```yaml +# Get the CLI from https://hub.docker.com/r/detee/detee-cli +# And use `detee-cli account` to find your operator wallet +owner_wallet: "x52w7jARC5erhWWK65VZmjdGXzBK6ZDgfv1A283d8XK" +# Brain URL might change in the future brain_url: "http://164.92.249.180:31337" -max_cores_per_vm: 8 -max_vcpu_reservation: 24 -max_mem_reservation_mb: 25000 +max_cores_per_vm: 16 +max_vcpu_reservation: 31 +max_mem_reservation_mb: 30000 +# If you don't have seconday IPs, just comment out this section +# If you have secondary IPs, add them here. They will get assigned in order to VMS network_interfaces: - driver: "MACVTAP" device: "eno8303" @@ -45,13 +95,17 @@ network_interfaces: last_ip: "2a0d:3003:b666:a00c:0002:0000:0000:fffc" netmask: "64" gateway: "2a0d:3003:b666:a00c::1" +# if you have extra disks, you can mount them at /opt/detee_vms_2/ or similar +# and add them here volumes: - - path: "/var/lib/detee/" - max_reservation_gb: 500 + - path: "/opt/detee_vms/" + max_reservation_gb: 700 +# Make sure IPs in this range are free, since they will get randomly assignED public_port_range: start: 30000 end: 50000 max_ports_per_vm: 5 +# This is the multiplicator we recommend during the testnet phase price: 20000 ``` @@ -63,26 +117,6 @@ The private IPv4 connection and port forwarding capabilities are enabled through Please feel free to experiment with the price. A price of 20000 is recommended by our team in the testnet. -## Registering node - -You will need the detee-cli to register your node under your DeTEE account. The CLI will be available for download after the release of the testnet. The rewards are collected by the owner (meaning the DeTEE wallet generated by the CLI) and not by the node. Follow the steps below to register the node. - -When booting, the node will print it's public key in the logs. To access logs, run: -``` -journalctl -fu detee-snp-daemon.service -``` -In the logs, there will be a line similar to this: -``` -Jan 26 00:59:13 detee-amd-1 detee-snp-daemon[764125]: [2025-01-25T22:59:13Z INFO detee_snp_daemon::global] Loaded the following public key: 7Xw3RxbP5pvfjZ8U6yA3HHVSS9YXjKH5Vkas3JRbQYd9 -``` - -Grab the key and use the following command in the detee-cli to register the node: -``` -detee-cli account register-node 7Xw3RxbP5pvfjZ8U6yA3HHVSS9YXjKH5Vkas3JRbQYd9 -``` - -You should be set. - ## Easy way to get free LP - tell your friends about DeTEE