Repository navigation
aleph-vm 2.2 introduces Intel TDX support for V-PROGRAMs and fixes minor issues linked to recovery on reboot.
⚠️ Upgrade notes
- Launch measurements moved in every flavor (one guest kernel for SNP and TDX, rebuilt and stripped attest agent, changed init). V-PROGRAM and confidential-instance publishers rebuild and republish their runtimes from the 2.2 image outputs; a client pinning a 2.1.x measurement will not match a 2.2 launch. The 2.2.0 runtimes are published as
exec-1.4,compose-1.4,gpu-1.1,snp-1.3andsnp-gpu-1.1in the vm-images aggregate, and the first TDX runtime asvprogram_runtimes.tdx-1.0: aplatform: "tdx"bundle with a requiredmeasurements.json(mrtd,rtmr1,rtmr2), built withscripts/vprogram_bundle.py --flavor tdxand selected with--runtime tdx-1.0(the manifest's platform picks the backend; no new client flag). - TDX hosts need an Intel Xeon with TDX (verified on a Xeon 6731E), TME, TME-MK, SGX, TDX and the SEAM loader enabled in the BIOS, a kernel of 6.16 or newer booted with
kvm_intel.tdx=1 nohibernate, QEMU 10.1 or newer with libnuma, and Intel's DCAP stack:tdx-qgs,libsgx-dcap-default-qpl,sgx-dcap-pccswith an Intel PCS API key, and one run ofPCKIDRetrievalToolto register the platform.tee.tdxis advertised only whilekvm_intel.tdxreadsYand the Quote Generation Service answers on its socket (ALEPH_VM_TDX_QGS_SOCKET, default/var/run/tdx-qgs/qgs.socket); otherwisetee_unavailable_reasonsays why. Nothing changes for an AMD host. Runbook: Operating Intel TDX hosts. - TDX hosts serve V-PROGRAMs only. Confidential instances and confidential GPUs stay SEV-SNP; a TDX V-PROGRAM with a
gpublock or less than 2 GiB of memory is refused at allocation. A platform on firmware behind Intel's current TCB verifies cryptographically but is reportedOutOfDate, which the default client policy refuses; only a firmware update fixes that. - Network side, TDX: the deb ships
aleph-message1.7 (verification.backend: "tdx", no policy, four pinned registers) and pyaleph 0.12.0-rc2 accepts such messages on tdx runtimes. aleph-rs 0.22.0 can neither create nor verify a TDX V-PROGRAM and scheduler 0.2.3 does not place ontee.tdx; the client (aleph-rs #408 to #411) and the placement rule (scheduler #217) ship separately. Until then a TDX CRN advertises the capability and receives no TDX workload. - An SEV-SNP host without
/dev/sevno longer advertises SNP. The module parameter alone used to count; such a host could not launch a guest anyway. - Changing
IPV6_ADDRESS_POOLnow moves VMs. Edit it insupervisor.envand restartaleph-vm-agent: every running VM outside the new pool is rebuilt onto a fresh address, one at a time (disks, record and port forwards kept); a stopped VM moves on its owner's next start. Plain guests re-apply their cloud-init network at every boot from now on, so an in-guest edit of the cloud-init netplan file is overwritten at the next reboot. - Coming from 1.15 in place: a node whose daemon logged a
vm_indexheld by another VM at every reconcile cycle converges on this upgrade. The VM owning the tap keeps its index and address; the duplicate, which had no network, is stopped and created again once on a fresh index. - Schedulers: the
Aleph-EIP191-V1payload may carry anode_hash(the node's bare item hash); a node enforces it when present and refuses any other node's, including while its own hash is still unresolved, and accepts a payload without it as before (#1307). aleph-vm-scheduler #223 emits it; requiring the field comes once every scheduler does.POST /control/machine/{ref}/migration/export/cancelends an export in flight and restarts the VM (404 without a job, 409 while a destination download runs); a cancelled job reportsexport_failedwitherror: "export cancelled". The scheduler half is aleph-vm-scheduler #222.tee.nvidia_ccis still sent as the legacy view of the GPUccmode; its removal is postponed.
How to upgrade
Download and install the package for your OS. The package restarts aleph-vm-supervisor and aleph-vm-agent itself; running QEMU and confidential VMs are re-adopted automatically.
On Ubuntu 26.04 (Resolute Raccoon), recommended for SEV-SNP and TDX hosts:
sudo rm -f /opt/aleph-vm.ubuntu-26.04.deb
sudo wget -P /opt https://github.com/aleph-im/aleph-vm/releases/download/2.2.0/aleph-vm.ubuntu-26.04.deb
sudo apt install /opt/aleph-vm.ubuntu-26.04.debOn Debian 13 (Trixie):
rm -f /opt/aleph-vm.debian-13.deb
wget -P /opt https://github.com/aleph-im/aleph-vm/releases/download/2.2.0/aleph-vm.debian-13.deb
apt install /opt/aleph-vm.debian-13.debOn Debian 12 (Bookworm):
rm -f /opt/aleph-vm.debian-12.deb
wget -P /opt https://github.com/aleph-im/aleph-vm/releases/download/2.2.0/aleph-vm.debian-12.deb
apt install /opt/aleph-vm.debian-12.debOn Ubuntu 24.04 (Noble Numbat):
sudo rm -f /opt/aleph-vm.ubuntu-24.04.deb
sudo wget -P /opt https://github.com/aleph-im/aleph-vm/releases/download/2.2.0/aleph-vm.ubuntu-24.04.deb
sudo apt install /opt/aleph-vm.ubuntu-24.04.debOn Ubuntu 22.04 (Jammy Jellyfish):
sudo rm -f /opt/aleph-vm.ubuntu-22.04.deb
sudo wget -P /opt https://github.com/aleph-im/aleph-vm/releases/download/2.2.0/aleph-vm.ubuntu-22.04.deb
sudo apt install /opt/aleph-vm.ubuntu-22.04.debThe crn_upgrade.sh helper recognises Ubuntu 26.04 but still not Debian 13; use the commands above there.
Verify
systemctl is-active aleph-vm-supervisor aleph-vm-agent
curl -s http://localhost:4020/about/capability | jq .teeA TDX host lists tdx: {"qgs": true}; an SEV-SNP host lists sev_snp as before.
🔷 Intel TDX V-PROGRAMs
2.1 shipped the TDX message schema and quote verifier with no caller. 2.2 wires the launch path end to end: host probe, firmware, QEMU command line, register prediction, guest attestation and agent routing. Trust model: Confidential computing.
- Host capability (#1291):
tee.tdxrequires KVM TDX and a reachable Quote Generation Service, re-probed on every host-info call. TDVF is built from the same edk2 pin as OVMF and ships in the runtime bundle, so there is nothing to install on the host. - The command line is fixed per runtime (#1292, #1294):
-cpu host, nokernel-hashes, no policy, no CPU-model pin. The per-deployment tokens (workload root hash, verified volumes) travel on a 64 KiB descriptor drive attached last, andmrconfigidis the SHA-384 of that token line, so the deployment is bound to the launch the way the measured cmdline binds an SNP launch. The daemon refuses an agent-supplied cmdline, GPUs and less than 2 GiB. - Registers are predicted from the files (#1293):
aleph_tee::tdx::measureand a stdlib-only Python mirror compute MRTD from the TDVF metadata, RTMR1 from the kernel's Authenticode hash, RTMR2 from the boot options and initrd, and MRCONFIGID from the descriptor suffix. The predicted values match a real TD's report byte-exact and are checked in CI astdxMeasurementnext to the SNP goldens. Two facts differ fromvirtee/tdx-measureand are recorded with the vectors: QEMU does not patch the kernel setup header under TDX, and edk2 202602 prepends theinitrd=initrdtoken. - Guest side (#1295, #1296): one kernel serves SNP and TDX. The attest agent picks its backend by guest device, reads the local TDREPORT, and quotes over configfs-tsm; a QGS outage surfaces as
host quote service unreachable, never as an attestation failure. The init has the agent verify the descriptor drive against MRCONFIGID before using its tokens and powers off on a mismatch. Underaleph_insecure_unattested=1the descriptor is taken unchecked behind a console warning, sovprogram runon plain QEMU keeps working. - Agent routing (#1297): the runtime manifest's
platformselects the launch path, and the message'sverification.backendmust equal it, so an SNP-measured message never boots a TD whose registers it does not describe. The bundle'smeasurements.jsonmust match the manifest triple (#1313). - Hardened after a security audit (#1311, #1312): the descriptor accepts only what the daemon renders (
workload_roothash=<64 hex>, optionallyverified_volumes=<64 hex>[,...], at most eight), so no descriptor token can shadow a measured one; the configfs provider must be exactlytdx_guest. In the verifier, TCB Info identity fails closed, the QE binding compares all 64 bytes, certificate profiles and PCK identities are checked,SEPT_VE_DISABLEis required next to the debug gate, and the collateral cache writes through a temporary file. - Tested on hardware. A Xeon 6731E CRN (PhoenixNAP DL320 Gen12, kernel 7.0, QEMU 10.2) launches the measured runtime; the TD's MRTD, RTMR1, RTMR2 and MRCONFIGID match the prediction, the descriptor check accepts the matching drive and rejects a wrong one, and the attested-TLS certificate the guest served verifies through the full relying-party path. Its quote and collateral are in the tree as fixtures (#1298), including a genuine
OutOfDateappraisal. - Scope: V-PROGRAMs only. A TD cannot be reset, so a guest reboot ends the VM and it shows up as exited.
🌐 Networking and adoption
- Host reboot (#1305): controller units start before the daemon, and QEMU recreates its tap with no host address; a plain instance came up without a gateway and a measured guest never leased an address. The daemon now sets the tap addresses at adoption, restarts ndppd on a bare tap and starts the per-tap DHCP server for SNP and TDX guests with a fresh lease file. A plain daemon restart is unchanged.
- IPv6 pool change (#1306): a startup pass compares every VM's persisted guest IPv6 with the pool and rebuilds the ones outside it, under the per-hash create lock, one VM at a time. A pool setting that does not parse makes nothing stale, so a misconfigured node never retires its fleet. The daemon warns at adoption and start about a guest address outside the pool.
vm_indexcollision (#1310): a contested index among active controller configs goes to the most recently written one, which is the VM whose QEMU holds the tap; a create for the other one rebuilds it on a fresh index instead of refusing for ever.
🔁 Migration
retire_vmends the VM's export first: the runner task is cancelled, the partial file unlinked,qemu-imgkilled, and the host's migration slot freed, instead of exporting a VM nobody wanted for five minutes while its disks were purged underneath (#1304).
🔑 Scheduler authentication
- A signed scheduler request can name the node it is for:
node_hashin theAleph-EIP191-V1payload, inside the signed bytes, so the signature and the replay cache both cover it (#1307).scripts/sign_allocation_request.py --node-hashproduces such a payload; an empty value signs one every node refuses.
🐛 Fixes and internals
- The measured attest agent is built with
strip = true, so a change to test-only code no longer moves every launch measurement through ThinLTO symbol names (#1309). The binary is 3 MB smaller. HostInfo.sev_snp_supportedrequires/dev/sev, matching the agent's check (#1291).docs/architecture/confidential.mddescribes the wired TDX path;docs/operators/tdx.mdstates the 90 s quote budget (#1313).
What's Changed
- feat: Intel TDX host capability and TDVF build (TDX 1/N) by @odesenfans in #1291
- feat(controller): Intel TDX QEMU argv builder and oracle (TDX 2/N) by @odesenfans in #1292
- feat(tee): predict TDX MRTD, RTMR1, RTMR2 and MRCONFIGID (TDX 3/N) by @odesenfans in #1293
- feat(daemon): Intel TDX launch slice with the MRCONFIGID-bound descriptor drive (TDX 4/N) by @odesenfans in #1294
- feat(tee): Intel TDX guest backend and descriptor check in the attest agent (TDX 5/N) by @odesenfans in #1295
- feat(nix): the measured Intel TDX runtime image and manifest (TDX 6/N) by @odesenfans in #1296
- feat(agent): route TDX V-PROGRAMs to the daemon's TDX launch path (TDX 7/7) by @odesenfans in #1297
- fix(agent): end a migration export when the VM is retired or the scheduler calls it off by @odesenfans in #1304
- fix(agent): move VMs off a stale guest IPv6 after a pool change by @odesenfans in #1306
- fix(daemon): bring adopted VMs back on the network after a host reboot by @odesenfans in #1305
- fix(agent): strip the measured binary by @odesenfans in #1309
- test(aleph-tee): TDX fixtures captured on the Xeon 6 node by @odesenfans in #1298
- fix(agent): require the tdx bundle's measurements record; refresh TDX docs by @odesenfans in #1313
- fix(aleph-tee): close the small gaps in the TDX verifier by @odesenfans in #1311
- fix(agent): close the TDX descriptor grammar by @odesenfans in #1312
- fix(daemon): rebuild a VM stranded on a vm_index collision instead of refusing for ever by @odesenfans in #1310
- feat(auth): let a signed scheduler request name the node it is for by @odesenfans in #1307
Full Changelog: 2.1.4...2.2.0
What's Changed
- feat: Intel TDX host capability and TDVF build (TDX 1/N) by @odesenfans in #1291
- feat(controller): Intel TDX QEMU argv builder and oracle (TDX 2/N) by @odesenfans in #1292
- feat(tee): predict TDX MRTD, RTMR1, RTMR2 and MRCONFIGID (TDX 3/N) by @odesenfans in #1293
- feat(daemon): Intel TDX launch slice with the MRCONFIGID-bound descriptor drive (TDX 4/N) by @odesenfans in #1294
- feat(tee): Intel TDX guest backend and descriptor check in the attest agent (TDX 5/N) by @odesenfans in #1295
- feat(nix): the measured Intel TDX runtime image and manifest (TDX 6/N) by @odesenfans in #1296
- feat(agent): route TDX V-PROGRAMs to the daemon's TDX launch path (TDX 7/7) by @odesenfans in #1297
- fix(agent): end a migration export when the VM is retired or the scheduler calls it off by @odesenfans in #1304
- fix: move VMs off a stale guest IPv6 after a pool change by @odesenfans in #1306
- fix(daemon): bring adopted VMs back on the network after a host reboot by @odesenfans in #1305
- fix(agent): strip the measured binary by @odesenfans in #1309
- test(aleph-tee): TDX fixtures captured on the Xeon 6 node by @odesenfans in #1298
- fix(agent): require the tdx bundle's measurements record; refresh TDX docs by @odesenfans in #1313
- fix(aleph-tee): close the small gaps in the TDX verifier by @odesenfans in #1311
- fix(agent): close the TDX descriptor grammar by @odesenfans in #1312
- fix(daemon): rebuild a VM stranded on a vm_index collision instead of refusing for ever by @odesenfans in #1310
- feat(auth): let a signed scheduler request name the node it is for by @odesenfans in #1307
Full Changelog: 2.1.4...2.2.0