---
description: "Attest a Verda Confidential VM on AMD SEV-SNP: verify SEV-SNP is active, run snpguest attestation, and verify the measured boot chain."
revision_date: 25.11.2026
---

# CPU attestation on AMD SEV-SNP

Attestation lets you verify, before any workload runs, that your instance is running with full confidential computing protections enabled. The CPU and the GPU are attested separately.

AMD SEV-SNP and Intel TDX produce different evidence with different tools, so follow the section that matches your instance's CPU (see [Supported Hardware](https://docs.verda.com/confidential-computing/#supported-hardware)).

The AMD-SP generates a report containing the **launch measurement** (a SHA-384 over the OVMF firmware plus, because Verda uses direct kernel boot, the kernel, initramfs and kernel command line), the SEV-SNP TCB version, and a user-supplied nonce or public key hash. The report is signed with the VCEK (a per-chip ECDSA key cryptographically derived from the firmware version), verifiable against AMD's public certificate chain. The guest requests it through the SEV guest driver (`/dev/sev-guest`).

## Verify SEV-SNP is active

```console
$ sudo dmesg | grep -i sev-snp
[    1.816039] Memory Encryption Features active: AMD SEV SEV-ES SEV-SNP
```

## Run SEV-SNP attestation

Install `snpguest` (one-time):

```console
$ curl -fsSL https://github.com/virtee/snpguest/releases/download/v0.10.0/snpguest \
    -o /usr/local/bin/snpguest && chmod +x /usr/local/bin/snpguest
```

Check that SEV, SEV-ES, and SNP are all active:

```console
$ snpguest ok
[ PASS ] - SEV: ENABLED
[ PASS ] - SEV-ES: ENABLED
[ PASS ] - SNP: ENABLED
```

Generate an attestation report and fetch the AMD certificate chain:

```console
$ mkdir -p /tmp/snp-attest
$ snpguest report /tmp/snp-attest/report.bin /tmp/snp-attest/nonce.bin --random
$ snpguest fetch ca pem /tmp/snp-attest/ turin
$ snpguest fetch vcek pem /tmp/snp-attest/ /tmp/snp-attest/report.bin
```

Verify the certificate chain (AMD ARK → ASK → VCEK):

```console
$ snpguest verify certs /tmp/snp-attest/
The AMD ARK was self-signed!
The AMD ASK was signed by the AMD ARK!
The VCEK was signed by the AMD ASK!
```

Verify the attestation report is signed by this chip's VCEK:

```console
$ snpguest verify attestation /tmp/snp-attest/ /tmp/snp-attest/report.bin
Reported TCB Boot Loader from certificate matches the attestation report.
Reported TCB TEE from certificate matches the attestation report.
Reported TCB SNP from certificate matches the attestation report.
Reported TCB Microcode from certificate matches the attestation report.
VEK signed the Attestation Report!
```

## Verify measured boot

Because the launch measurement covers the firmware, kernel, initramfs and command line, you can verify the boot chain end-to-end: fetch the signed report, independently recompute the expected measurement from the on-disk boot artifacts, and compare.

Download and run the helper **inside the CVM, as root**:

- [measure_boot.sh](https://docs.verda.com/assets/confidential_compute/measure_boot.sh){:download="measure_boot.sh"}

```console
$ chmod +x measure_boot.sh
$ sudo ./measure_boot.sh
[+] Fetching SEV-SNP attestation report...
[+] Computing expected measurement with sev-snp-measure...

OVMF     : /boot/OVMF.amdsev.fd
Kernel   : /boot/vmlinuz
Initrd   : /boot/initrd.img
Cmdline  : console=ttyS0 root=UUID=... ro ...
vCPUs    : 30 (family=26 model=2 stepping=1)

Report measurement   : 5D8F582C2D1FF3311E6B2E25509F130343B012EC5EFE06756E01E5FB4FE44DF4...
Expected measurement : 5D8F582C2D1FF3311E6B2E25509F130343B012EC5EFE06756E01E5FB4FE44DF4...

MATCH: launch measurement matches OVMF+kernel+initrd+cmdline
```

A **`MATCH`** means the running CVM was launched from exactly that firmware, kernel, initramfs and command line: the hardware *and* the boot chain are verified. The script auto-installs its dependencies (`snpguest`, and `sev-snp-measure` via `pipx`), so the instance needs outbound internet and `apt` the first time.

!!! note
    Everything the measurement is computed over is available inside the CVM, so the script runs with no extra setup: the firmware is bundled to `/boot/OVMF.amdsev.fd` at provisioning time (see [OVMF](#ovmf)), and `/boot/vmlinuz` + `/boot/initrd.img` are the kernel and initramfs of your own volume (see [vmlinuz and initrd](#vmlinuz-and-initrd)). To pin a known-good value, record the `Expected measurement` from a trusted build and compare future reports against it (the report's measurement is what the AMD-SP signs).

### OVMF

**OVMF** (Open Virtual Machine Firmware) is the VM's UEFI firmware and the first thing in the launch measurement. The host loads it at launch, so you can't bring your own: Verda pins one public build for all SEV-SNP instances, which keeps the measurement reproducible. Unlike Ubuntu's stock build, it enables 1 GiB page tables (`PcdUse1GPageTable=TRUE`) so it can boot behind Verda's 16 TiB PCI MMIO aperture.

| | |
|---|---|
| Source | [verda-cloud/edk2](https://github.com/verda-cloud/edk2), branch `amdsev-large-bars` |
| Release | `verda-amdsev-largebars-stable202605` |
| Commit | [`0c0bd94a4699bde01f86c6b9c39f37545af68a4a`](https://github.com/verda-cloud/edk2/commit/0c0bd94a4699bde01f86c6b9c39f37545af68a4a) |
| SHA-256 | `fea1855b6c983324246e6d3fb6642be200c0a38fd17b94884a45130ffb0b3a81` |

To verify it, download the `.fd` file from the [GitHub release](https://github.com/verda-cloud/edk2/releases/tag/verda-amdsev-largebars-stable202605) and compare its SHA-256 with the table, or rebuild it from the commit with the [build instructions](https://github.com/verda-cloud/edk2/blob/amdsev-large-bars/devenv_build/README.md). The measured copy is also on your instance at `/boot/OVMF.amdsev.fd`.

### vmlinuz and initrd

Your kernel and initial ramdisk come from your own OS volume, not from Verda. At every boot, Verda reads whatever your distro's `vmlinuz` and `initrd.img` symlinks point to, read-only, and boots those files directly, so they are part of the launch measurement. A kernel update therefore takes effect, and changes the measurement, at your next Shutdown and Start from the console.
