Enroll a Compute Node (bare metal) - AMD SEV-SNP

Prev Next

1.0 Introduction

This article describes how to enroll a compute node on a bare-metal Advanced Micro Devices (AMD) Secure Encrypted Virtualization (SEV) - Secure Nested Paging (SNP) platform in Fortanix Confidential Computing Manager (CCM).

You can enroll a compute node in either of the following ways:

2.0 Generate a Join Token

A join token is used by the compute node to authenticate itself with Fortanix CCM. The same token is used for both enrollment methods.

Perform the following steps to generate a join token in Fortanix CCM:

  1. Log in to Fortanix Armor Platform. For more information, Access and Set Up Fortanix Armor.

  2. Navigate to the Fortanix CCM user interface (UI). For more information, refer to Fortanix Armor Solutions.

  3. In the CCM UI left navigation panel, click Infrastructure → COMPUTE NODES → AMD SEV-SNP, and then click ADD NODE.

    Figure 2: Add node

  4. In the Enroll Compute Node window, click COPY to copy the Join Token. This Join Token is used by the compute node to authenticate itself.

3.0 Enroll a Compute Node Using the Installer Script

3.1 Prerequisites

Ensure the following:

  • Simultaneous Multithreading (SMT) is disabled in BIOS when using AMD SEV-SNP. If enabled, the Confidential Virtual Machine (CVM) launch may fail with fw_error=7 'Policy is not allowed' error.

  • You have completed all required CPU, GPU, and system configuration prerequisites as outlined in the NVIDIA Deployment Guide for Confidential Computing.

    • Check the Secure AI Compatibility Matrix to view the supported combinations of NVIDIA GPUs, VBIOS versions, CUDA driver versions, and Confidential Computing modes.

  • qemu-system must be installed on the host before starting the Node Agent.

    Run the following command to verify if QEMU is already installed:

    which qemu-system-x86_64

    If not already installed, run the following commands to install the package:

    sudo apt-get update
    sudo apt-get install -y qemu-system

3.2 Ubuntu 26.04 Node Agent

Download the Ubuntu Node Agent installer from here.

Perform the following steps to enroll the Ubuntu 26.04 compute node:

  1. Run the following commands to extract the contents of the SNP-Node-Agent-Installer.tar.gz package and open the folder:

    tar -zxvf SNP-Node-Agent-Installer.tar.gz
    cd em-agent-installer-sevsnp
  2. Open the INSTALLER_README.md file containing the steps to enroll the compute node in Fortanix CCM.

    Text  Description automatically generated with medium confidence

    Figure 1: Installer Readme.md

  3. Run the following command to execute the installer.sh script:

    sudo bash installer.sh <join-token>

    Where, <join-token> is the token copied from Fortanix CCM. For more information, refer to Section 2.0: Generate a Join Token.

    NOTE

    For existing Fortanix CCM SaaS users, run the following commands to install the latest CCM node agent and update the ccm.fortanix.com endpoint to api.armor.fortanix.com:

    sudo apt update
    sudo apt upgrade em-agent

4.0 Enroll a Compute Node Using the Helm Chart

You can deploy the Fortanix CCM node agent (em-agent) as a container in a Kubernetes cluster using a Helm chart. The Helm chart deploys the Node Agent as a DaemonSet, ensuring that one Node Agent pod runs on each eligible AMD SEV-SNP node in the cluster.

4.1 Prerequisites

Ensure the following:

  • A Kubernetes cluster with AMD SEV-SNP enabled nodes.

  • kubectl installed and configured to access the Kubernetes cluster.

  • Helm 3.8 or later installed for Open Container Initiative (OCI) registry support.

  • Access to the container image registry that hosts the Fortanix Node Agent image.

  • Permissions to run privileged containers. The node agent requires the NET_ADMIN and SYS_ADMIN capabilities and host network access.

  • SMT disabled in the BIOS, as described in Section 3.1: Prerequisites.

4.2 Create the Namespace

Run the following command to create the Kubernetes namespace for the node agent:

kubectl create namespace em-agent-snp

4.3 Create the Authentication Secret

The Helm chart requires a Kubernetes Secret that contains the agent manager authentication token. Create this Secret in the target namespace before installing the Helm chart.

Run the following command:

kubectl create secret generic em-agent-secret \
  --namespace em-agent-snp \
  --from-literal=agent-manager-auth-basic-token="<join-token>"

Where, <join-token> is the token copied from Fortanix CCM. For more information, refer to Section 2.0: Generate a Join Token.

4.4 Create the Image Pull Secret

The Helm chart uses an image pull secret named em-agent-image-registry-key to authenticate with the container image registry. Create this Secret in the target namespace before you install the chart. Use the command corresponding to the registry that hosts the Node Agent container image.

If the image is hosted on Docker Hub, run the following command:

kubectl create secret docker-registry em-agent-image-registry-key \
  --namespace em-agent-snp \
  --docker-server=https://index.docker.io/v1/ \
  --docker-username=<dockerhub-username> \
  --docker-password=<dockerhub-access-token-or-password>

Where,

  • <dockerhub-username>: Your Docker Hub username.

  • <dockerhub-access-token-or-password>: Your Docker Hub access token or password.

4.5 Create the ConfigMap (Optional)

Use a Kubernetes ConfigMap to provide additional environment variables to the node agent. Create ConfigMap using either of the following methods:

Option A: Use the kubectl command with multiple literal values

Run the following command, replacing the example environment variables and values with the supported configuration parameters for your deployment:

kubectl create configmap em-agent-config \
  --namespace em-agent-snp \
  --from-literal=EXTRA_ENV_VAR_1="value1" \
  --from-literal=EXTRA_ENV_VAR_2="value2" \
  --from-literal=LOG_LEVEL="info" \
  --from-literal=FEATURE_FLAG="enabled"

Option B: Use a YAML manifest

  1. Create a file named configmap.yaml with the following content:

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: em-agent-config
      namespace: em-agent-snp
    data:
      EXTRA_ENV_VAR_1: "value1"
      EXTRA_ENV_VAR_2: "value2"
      LOG_LEVEL: "info"
      FEATURE_FLAG: "enabled"
  2. Run the following command to apply the manifest to create the ConfigMap:

    kubectl apply -f configmap.yaml

    To enable the ConfigMap integration during Helm chart installation, add the following options to the helm install command in Section 4.7: Install the Node Agent Helm Chart:

    --set emAgentSnp.configMap.enabled=true \
    --set emAgentSnp.configMap.name=em-agent-config

4.6 Configure the ServiceAccount (Optional)

By default, the Helm chart creates a dedicated ServiceAccount named em-agent-snp-sa for the Node Agent DaemonSet.

If you want to use an existing ServiceAccount instead, perform the following steps:

  1. Run the following command to create the ServiceAccount:

    kubectl create serviceaccount em-agent-snp-sa --namespace em-agent-snp
  2. Run the following command to install or upgrade the Helm chart using the existing ServiceAccount:

    helm upgrade --install em-agent-snp ./em-agent-snp \
      --namespace em-agent-snp \
      --create-namespace \
      --set emAgentSnp.serviceAccount.create=false \
      --set emAgentSnp.serviceAccount.name=em-agent-snp-sa

    NOTE

    Based on your cluster security policies, such as restricted Pod Security Standards or OpenShift Security Context Constraints (SCCs), ensure that the ServiceAccount has the permissions to run privileged containers with the NET_ADMIN and SYS_ADMIN capabilities and host network access.

4.7 Install the Node Agent Helm Chart

You can install the chart from the Docker Hub Open Container Initiative (OCI) registry or from a local directory.

4.7.1 Install from the Docker Hub OCI Registry

  1. Run the following command to log in to the registry:

    helm registry login registry-1.docker.io

    Enter your Docker Hub username and password or access token when prompted.

  2. Run the following command to install the Helm chart:

    helm install em-agent-snp oci://registry-1.docker.io/<dockerhub-username>/em-agent-snp-chart \
      --version <ccm-version> \
      --namespace em-agent-snp \
      --create-namespace

    Where,

    • <dockerhub-username>: The Docker Hub account that hosts the em-agent-snp-chart Helm chart.

    • <ccm-version>: The Fortanix CCM version for which you want to install the Node Agent Helm chart.

    For example:

    helm install em-agent-snp \
      oci://registry-1.docker.io/fortanix/em-agent-snp-chart \
      --version 5.2.4525 \
      --namespace em-agent-snp \
      --create-namespace

If you created a ConfigMap or configured an existing ServiceAccount in the previous sections, include the corresponding --set options described in Sections 4.5: Create the ConfigMap (Optional) and Section 4.6: Configure the ServiceAccount (Optional) in this installation command.

4.7.2 Install from a Local Directory

Run the following command from the directory that contains the chart:

helm install em-agent-snp ./em-agent-snp \
  --namespace em-agent-snp \
  --create-namespace

If you created a ConfigMap or configured an existing ServiceAccount in the previous sections, include the corresponding --set options described in Sections 4.5: Create the ConfigMap (Optional)) and Section 4.6: Configure the ServiceAccount (Optional) in this installation command.

5.0 Validate the Enrolled Compute Node

After the compute node is successfully enrolled, it appears in the COMPUTE NODES overview table in Fortanix CCM.

5.1 Installer Script Method

Perform the following steps to debug the em-agent service:

  1. Run the following command to view the logs:

    journalctl -xe | grep em-agent
  2. Run the following command to view the status of the em-agent service or check the system logs directly:

    systemctl status em-agent

5.2 Helm Chart Method

Perform the following steps to verify the em-agent deployment:

  1. Run the following command to check that the em-agent pods are running:

    kubectl get pods --namespace em-agent-snp
  2. Run the following command to view the pod logs:

    kubectl logs <pod-name> --namespace em-agent-snp

    Where, <pod-name> is the name of the em-agent pod, obtained from the output of Step 1.

Fortanix-logo

4.6

star-ratings

As of August 2025