---
title: "Bare Metal BIOS and Host Configuration"
description: "Required BIOS, kernel and attestation setup for bare metal deployments of Verifiable Confidential Containers and the Verifiable Container Runtime."
source: "Verifiable Compute"
---
Before running confidential computing workloads on bare metal, with either [Verifiable Confidential Containers](/verifiable-confidential-containers/deployment/baremetal/) or the [Verifiable Container Runtime](/verifiable-container-runtime/deployment/baremetal/), the underlying host platform must be configured correctly. These steps are usually performed by the infrastructure provider, data center operator, or hardware administrator, because they require access to the server BIOS/UEFI, BMC, host operating system, and platform-level credentials.

The exact BIOS menu names differ between server vendors. Use the names below as guidance and check the OEM documentation for the specific server model.

Choose the target CPU-specific setup path based on the server hardware:

- Use the **Intel TDX** section for Intel Xeon servers.
- Use the **AMD SEV-SNP** section for AMD EPYC servers.

This guide assumes you are running Ubuntu 26.04.

## Intel TDX

### Generate an Intel PCS API key for PCCS support

An Intel PCS API key is required for Intel TDX servers. PCCS uses it to retrieve and cache Intel attestation collateral. This is mandatory for Intel TDX hosts.

1. Go to the [Intel Provisioning Certification Service portal](https://api.portal.trustedservices.intel.com).
2. Sign in with an Intel account.
3. Open the Intel Provisioning Certification Service subscription page.
4. Subscribe to the service if the account is not already subscribed.
5. After subscribing, retrieve or create the PCS API key from the portal.
6. Copy the PCS API key.
7. Store the key in the required secret store for the deployment.
8. Configure PCCS with the PCS API key.
9. Configure the host quote provider or attestation stack to use the PCCS endpoint.
10. Confirm that PCCS can retrieve Intel attestation collateral.

### BIOS settings

These are the BIOS settings required to enable TDX on your machine. Each OEM's BIOS is different, so treat this as a guide only. See the OEM-specific notes at the bottom of the page for more detailed information.

1. Reboot the server and enter the BIOS/UEFI setup menu.
2. Confirm that the installed BIOS version supports Intel TDX.
   - If Intel TDX options are missing, update to a TDX-capable BIOS from the server OEM.
3. Find the CPU security and/or memory encryption settings and enable the Intel TDX-related settings:
   - **Total Memory Encryption / Intel TME:** Enabled
   - **Multi-Key Total Memory Encryption / Intel TME-MT:** Enabled
   - **Intel Trust Domain Extensions / Intel TDX:** Enabled
   - **TDX SEAM Loader / TDX Secure Arbitration Mode Loader:** Enabled, if shown
   - **TDX key split / TME-MT key split:** set to a non-zero value
   - **Intel SGX:** Enabled
   - **SGX PRM PRMRR size:** set according to the platform or OEM recommendation
   - **SGX auto MP registration:** Enabled
   - **SGX Factory Reset:** toggle on (optional)
4. Save the BIOS changes.
5. Fully power-cycle the host.
   - A warm reboot may not always apply firmware-level confidential computing changes.
6. After the operating system boots, verify that TDX was enabled.

#### Testing BIOS settings are correct

```bash
sudo dmesg | grep -i tdx
```

Expected output should include a message similar to one of the following:

```
virt/tdx: module initialized
tdx: TDX module initialized
```

If the output contains errors such as `module not loaded`, or if there are no TDX-related messages, TDX is probably not enabled correctly in BIOS, the TDX module is missing, or the host OS does not include the required TDX support.

### Operating System and Kernel settings

Install the TDX host stack (Canonical helper), then add the cmdline TDX requires:

```bash
apt-get update && apt-get install -y git

git clone https://github.com/canonical/tdx.git /root/tdx
cd /root/tdx && ./setup-tdx-host.sh

sed -i 's|^GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX="nohibernate kvm_intel.tdx=1"|' /etc/default/grub
update-grub && systemctl reboot
```

Verify the TEE is live after the reboot:

```bash
dmesg | grep -i "tdx"                        # expect: tdx: module initialized
cat /sys/module/kvm_intel/parameters/tdx     # expect: Y
```

### TDX attestation enclave (PCCS and QGS)

The following is software that needs to run on your host to support TDX enclaves.

```bash
apt-get install -y software-properties-common gnupg wget ca-certificates
add-apt-repository -y ppa:kobuk-team/tdx-attestation-release

# The PPA publishes for noble/oracular only; on 26.04 (resolute) pin to noble:
sed -i 's/^Suites: .*/Suites: noble/' /etc/apt/sources.list.d/*kobuk-team*.sources 2>/dev/null || true

apt-get update
apt-get install -y tdx-qgs libsgx-dcap-default-qpl sgx-dcap-pccs sgx-pck-id-retrieval-tool

# Install your Intel PCS key you created earlier into PCCS:
python3 - /opt/intel/sgx-dcap-pccs/config/default.json "<INTEL_PCS_API_KEY>" <<'PY'
import json,sys
p,k=sys.argv[1],sys.argv[2]
d=json.load(open(p)); d["ApiKey"]=k
json.dump(d,open(p,"w"),indent=4); open(p,"a").write("\n")
PY

# restart qgsd and pccs
systemctl enable --now qgsd pccs
pgrep -x qgs && echo "qgsd up (vsock CID 2 port 4050)"
```

## AMD SEV-SNP

AMD EPYC CPUs of the 3rd generation or later are required to enable AMD SEV-SNP. SEV-SNP is required to run Confidential Containers; SEV and SEV-ES are not enough.

### BIOS settings

1. Reboot the server and enter the BIOS/UEFI setup menu.
2. Confirm that the installed BIOS version supports AMD SEV-SNP.
   - If SEV-SNP options are missing, update to a SEV-SNP-capable BIOS from the server OEM.
3. Find the AMD CPU security, memory encryption, or virtualization settings.
   - The menu is often under CPU Configuration, AMD CBS, NB Configuration, Security, or Memory Encryption.
4. Enable the AMD memory encryption and confidential VM settings.
   - **Secure Memory Encryption / SME / SMEE:** Enabled
   - **Secure Encrypted Virtualization / SEV:** Enabled
   - **SEV-ES:** Enabled, if shown
   - **Secure Nested Paging / SNP / SEV-SNP:** Enabled
   - **SNP Memory Coverage / RMP Table Coverage:** Enabled, if shown
5. Configure SEV/SEV-SNP ASID allocation if the BIOS exposes this setting.
   - Reserve enough ASIDs for the expected number of confidential VMs.
   - A value around 500 is a reasonable starting point when the BIOS allows it.
   - Use the OEM recommendation if the platform has a specific requirement.
6. If the host will use NVIDIA GPUs or GPU passthrough, enable IOMMU.
   - **IOMMU:** Enabled
7. Save the BIOS changes.
8. Fully power-cycle the host.

### Kernel settings

Enable memory encryption and SEV/SNP in the kernel.

```bash
sed -i 's|^GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX="mem_encrypt=on kvm_amd.sev=1 kvm_amd.sev_snp=1"|' /etc/default/grub
update-grub && systemctl reboot
```

Reboot afterwards, then validate that the settings are enabled:

```bash
dmesg | grep -i "SEV-SNP"                    # expect: SEV-SNP enabled
cat /sys/module/kvm_amd/parameters/sev_snp   # expect: Y
```

### Validate the setup

You can verify that SEV-SNP is available by installing the latest `snphost` release and running `snphost ok`. Download the binary from the [snphost releases](https://github.com/virtee/snphost/releases) page.

Once you have it, make it executable and run the check:

```bash
chmod a+x snphost
sudo snphost ok
```

For a shorter output that only shows failures and summary counts:

```bash
sudo snphost ok --short
```

If `snphost ok` reports failures, the host is not ready for SEV-SNP workloads. Common causes are missing BIOS settings, an unsupported CPU generation, missing kernel support, disabled KVM support, or missing SEV-SNP firmware support.

## NVIDIA Confidential Computing

NVIDIA Confidential Computing is required when the workload uses supported NVIDIA GPUs in confidential mode.

1. Confirm that the server uses NVIDIA GPUs that support Confidential Computing.
   - For example, supported Hopper or Blackwell GPUs.
2. Confirm that the CPU confidential computing settings are enabled first.
   - For Intel hosts, enable Intel TDX.
   - For AMD hosts, enable AMD SEV-SNP.
3. Reboot the server and enter the BIOS/UEFI setup menu.
4. Check whether the server BIOS exposes NVIDIA GPU Confidential Computing, Secure AI, Protected PCIe, or similar GPU security options.
   - If present, enable the setting required by the OEM for confidential GPU operation.
   - If the BIOS does not expose a dedicated NVIDIA CC setting, continue with the host-side NVIDIA configuration.
5. Make sure IOMMU is enabled in BIOS if the GPU will be assigned to confidential VMs.
6. Save the BIOS changes and fully power-cycle the host.
7. Boot the host operating system.

Download the NVIDIA GPU Admin Tools on the host:

```bash
git clone https://github.com/NVIDIA/gpu-admin-tools
cd gpu-admin-tools
```

Query the current GPU confidential computing mode:

```bash
sudo python3 ./nvidia_gpu_tools.py --devices gpus --query-cc-settings
```

Enable NVIDIA Confidential Computing mode for the GPUs that will be assigned to confidential workloads:

```bash
sudo python3 ./nvidia_gpu_tools.py \
  --devices gpus \
  --set-cc-mode=on \
  --reset-after-cc-mode-switch
```

Query the mode again and confirm that the expected GPUs are in CC mode:

```bash
sudo python3 ./nvidia_gpu_tools.py --devices gpus --query-cc-settings
```

This step is needed because confidential GPU workloads require the GPU to be placed in confidential computing mode. If the GPU remains in normal mode, the CPU confidential VM may still start, but the GPU will not provide the expected confidential computing guarantees.

## Intel Trust Authority API key (optional)

An Intel Trust Authority API key is required when the deployment uses Intel Trust Authority for attestation. For example, this is needed when KBS is configured to verify evidence through ITA, or when EQTY Key Guardian is configured to use ITA as the attestation verifier.

1. Sign in to the Intel Trust Authority portal.
2. Select the correct tenant or organization.
3. Go to **Manage services**.
4. Choose **Add API Key**.
5. Create an Attestation API key.
6. Give the key a clear name that identifies the environment or service using it.
7. Associate the key with the required attestation policy, if a policy is required for the deployment.
8. Save the API key.
9. Retrieve the API key value from the portal.
   - The key value can only be retrieved from the portal.
10. Store the key in the required secret store for the deployment.
11. Configure the service that talks to Intel Trust Authority with:
    - The Intel Trust Authority API endpoint for the correct region.
    - The Attestation API key.
    - The required policy configuration, if applicable.

This step is needed because KBS or EQTY Key Guardian must be able to verify that the workload is running in the expected confidential computing environment before releasing protected material.

## OEM notes — Dell

Additional settings are needed to enable TDX on Dell 16G servers. See [Enable Intel TDX on Dell 16G](https://www.dell.com/support/kbdoc/en-us/000226452/enableinteltdxondell16g).