The os_image_hash in vm_config is verified by binding the hardware-signed quote to the software that actually booted. This prevents a host from substituting a malicious image.
Verification Paths
Full-image TDX Path
- The verifier obtains the OS image identified by
os_image_hash. - It checks the image checksum manifest.
- It recomputes the expected
MRTD and RTMR0-2 from the image and VM configuration. - It requires these recomputed values to match the measurements in the hardware quote.
Unified Image Identity (TDX Lite, SEV-SNP, GCP TDX)
For these paths, the os_image_hash is defined as sha256(sha256sum.txt). The sha256sum.txt is a manifest containing SHA-256 digests and relative filenames for all critical components (kernel, initrd, firmware, etc.).
The verification process follows these steps:
sha256(checksum_file) == os_image_hash.- The checksum file must contain the expected
measurement.*.cbor entry (e.g., measurement.tdx.cbor or measurement.snp.cbor), and that entry must hash to the supplied measurement material. - The supplied measurement material must replay to the hardware-signed TDX
MRTD/RTMR values, SEV-SNP launch MEASUREMENT/HOST_DATA, or the GCP TPM UKI event.