---
title: "Bare Metal Deployment"
description: "Run a Verifiable Container Runtime on your own AMD SEV-SNP or Intel TDX server, launched with QEMU by vcomp-qemu-cli."
source: "Verifiable Compute"
---
A bare metal deployment runs the CRT on your own server instead of a cloud provider's
confidential VM. QEMU boots the CRT directly inside an AMD SEV-SNP or Intel TDX guest, and the
CPU measures each boot component, as described in the
[Deployment Overview](../overview.mdx#system-architecture). You are responsible for the hardware,
firmware and host OS.

<Alert variant="neutral" title="Images from EQTY">
  Bare metal CRT images are not on the [deployment artifacts](../deployment_artifacts.mdx) page
  yet. Ask your EQTY contact for the root filesystem image, its SHA256 hash, and access to the
  `vcomp-cli` package.
</Alert>

## Before you start

You need:

- A server that meets the bare metal entries in the
  [support matrix](../overview.mdx#support-matrix), running Ubuntu 26.04 or later.
- The host prepared for confidential computing: BIOS settings, kernel, and for Intel TDX the
  attestation services (PCCS and QGS). Follow
  [System Requirements](../../../appendix/confidential-computing/system-requirements.mdx)
  and [BIOS & Host Config](../../../appendix/confidential-computing/bios-platform.mdx);
  the host setup is the same as for Verifiable Confidential Containers. For an NVIDIA GPU, also
  enable its confidential computing mode as described there.
- Your CA's single-line base64 value (`ca.singleline`), and an operator certificate signed by
  it. See [Operator Certificates (mTLS)](../operator-certificates.mdx).

## 1. Install the launcher

1. Install QEMU, OVMF and `screen`. The launcher uses the host's QEMU and
   `/usr/share/ovmf/OVMF.fd`, and runs each CRT in a `screen` session:

   ```sh
   sudo apt install qemu-system-x86 ovmf screen
   ```

2. Install the full `vcomp-cli` package from the package index your EQTY contact gives you. It
   provides `vcomp-qemu-cli` as well as the command line tools. The `vcomp_cli_lite` package on
   the [Command Line](../../cli.mdx#install) page does not include the launcher.

   ```sh
   pip install -U --extra-index-url "$EQTY_PACKAGE_INDEX" vcomp-cli
   vcomp-qemu-cli --help
   ```

3. Make the bundled helper binaries executable. Some package versions install them without the
   executable bit:

   ```sh
   ASSETS="$(python3 -c 'import os, vcomp_cli; print(os.path.dirname(vcomp_cli.__file__))')/assets"
   sudo chmod +x "$ASSETS/eqty-cli" "$ASSETS/sev-measure-sign"
   ```

## 2. Prepare the work directory

The launcher keeps its state under `/images/work`, one subfolder per CRT. To use another
directory, set `WORK_DIR`, and on AMD also `AMD_ID_KEY` and `AMD_ID_AUTHOR`.

1. Create the directory and place the CRT root filesystem image in it:

   ```sh
   sudo mkdir -p /images/work
   sudo cp rootfs.tgz /images/work/
   ```

2. Create the CRT's storage. The **data** drive becomes the encrypted internal store inside the
   TEE and holds Docker images and job data, so size it for the images and models you will run.
   The **external** drive sits outside the TEE and backs the
   [file browser](../../cli.mdx#file-browser); it is optional.

   ```sh
   cd /images/work
   fallocate -l 100G data.img && mkfs.ext4 -L data data.img
   fallocate -l 50G external.img && mkfs.ext4 -L external external.img
   ```

3. **AMD only.** The launcher signs the boot components for SEV-SNP with an ID key and an author
   key. Generate them once:

   ```sh
   cd /images/work
   openssl ecparam -name secp384r1 -genkey -noout -out id-key.pem
   openssl ecparam -name secp384r1 -genkey -noout -out author-key.pem
   ```

## 3. Write the configuration

Create `/images/work/config.json`. This example runs one CPU-only CRT on standard ports, so the
[Quick Start](../quick-start.mdx) URLs work unchanged. Replace the placeholders:

```json
{
  "id": 1,
  "cpu": "amd",
  "cores": 16,
  "ram": 64,
  "rootfs": {
    "src": "/images/work/rootfs.tgz",
    "hash": "<rootfs SHA256 from EQTY>",
    "format": "tar-as-block",
    "rootfs_source": "vda"
  },
  "data_drive": "/images/work/data.img",
  "external_drive": "/images/work/external.img",
  "internal": {
    "size": "90G",
    "insecure": false,
    "integrity": false
  },
  "gpu": { "enabled": false },
  "network": {
    "ssl": true,
    "docker_api": true,
    "portshift": false
  },
  "cab64": "<contents of ca.singleline>"
}
```

- Set `cpu` to `"intel"` on a TDX host.
- Check the image against its hash before you start: `sha256sum /images/work/rootfs.tgz`.
- To pass through NVIDIA GPUs, run several CRTs on one host, or tune storage and keys, see the
  [vcomp-qemu-crt configuration reference](../../components/vcomp-qemu-crt.mdx).

<Alert variant="warning" title="Keep debug options off">
  Leave `generatefakekey`, `internal.insecure`, `allow_no_tee` and `rootfs.skipfshash` unset or
  `false` in production. Each one weakens what the attestation proves.
</Alert>

## 4. Start the CRT

1. If the configuration passes through a GPU, load the VFIO driver first:

   ```sh
   sudo modprobe vfio_pci
   ```

2. Start the CRT:

   ```sh
   sudo vcomp-qemu-cli start /images/work/config.json
   ```

3. Watch it boot. The session is named `TEE` followed by the CRT's `id`; detach with `Ctrl-A D`:

   ```sh
   sudo screen -x TEE1
   ```

   The first boot verifies the root filesystem and sets up the encrypted store, which takes a few
   minutes, longer with `integrity` enabled.

The CRT listens on the host's IP address: the API and web console on port 447, HTTPS for your
workloads on 443, and the file browser on 446. Continue with the
[Quick Start](../quick-start.mdx), using the host's IP address as the CRT address.

## Stop the CRT

```sh
sudo vcomp-qemu-cli stop 1
```

The argument is the CRT's `id`. Stopping kills the VM; the encrypted internal store on
`data.img` is kept for the next start.

## Troubleshooting

See [Troubleshooting](../../components/vcomp-qemu-crt.mdx#troubleshooting) in the configuration
reference for TEE detection, GPU passthrough, ports and hash mismatches.