Browse documentation

Alethic Guard · v0.4.0

Install and run Guard

Prepare a supported host, verify the release archive, and enroll an offline workload.

Guard release source

Install and run Guard

This guide uses the published Guard v0.4.0 archive. Plan to start with a NIC-free local workload and verify its boundary on the host before using real inputs.

Prepare the host and guest

Use Ubuntu 24.04 on x86-64 with KVM available. Follow the supported runtime matrix for the qualified kernel, libvirt, QEMU, and guest configuration. The host filesystem must support POSIX ACLs. A trusted host administrator manages enrollment, images, policy, and lifecycle operations.

Prepare an approved QCOW2 guest that already contains your model weights, inference runtime, agent, and any dependencies it needs. An offline guest cannot download these after launch. Stage input as a separate approved read-only block image if the guest needs it. Guard holds the guest’s changes in a private writable disk overlay.

Verify and install the archive

Download the Linux archive and SHA-256 manifest into the same directory. Verify the manifest before extracting the archive.

sha256sum --check SHA256SUMS

On the supported host, install the runtime packages. Run the installer from the extracted archive directory.

sudo apt-get install libvirt-daemon-system libvirt-clients qemu-system-x86 \
  qemu-utils acl python3-venv iproute2 nftables
sudo ./packaging/install

The installer activates a versioned installation under /opt/alethic-guard/current and installs the host daemon and policy controller services. It uses the wheels packaged in the archive, including the release’s pinned Kernel dependency.

Enroll an offline workload

From the extracted archive, compile the included offline policy and install it in the root-owned policy directory. Place your approved image and optional read-only input in the image directory.

guard_cli=/opt/alethic-guard/current/venv/bin/alethic-guard
"$guard_cli" profile compile policy/examples/offline-research.yaml --output ./offline-research.json
sudo install -m 0444 ./offline-research.json /etc/alethic-guard/policies/
sudo install -m 0444 ./approved-guest.qcow2 /var/lib/alethic-guard/images/
sudo install -m 0444 ./approved-input.raw /var/lib/alethic-guard/images/
sudo systemctl enable --now alethic-guardd.service

The included offline research policy expects the read-only input. For a workload with only its private disk, use an approved offline policy with an empty input list.

Create the enrollment with the image and input names. Use the returned workload ID for lifecycle commands.

sudo "$guard_cli" workload create --profile offline-research \
  --image approved-guest.qcow2 --input approved-input.raw
sudo "$guard_cli" workload start WORKLOAD_ID
sudo "$guard_cli" workload verify WORKLOAD_ID

Start the model and agent through the workload’s own guest setup. Guard inspects the paused VM configuration before it resumes the guest. Use a synthetic workload first and review the host verification before staging sensitive data.

Configure a mediated collector

Use the mediated profile only for the documented collector operation. The guest still has zero network interfaces. Its dedicated channel sends a typed request to a host gateway, and the configured host route reaches the exact approved HTTPS endpoint.

Follow the versioned mediated setup for the host routes, destination addresses, TLS trust, and controller configuration. The release evidence example gives the expected collector record and deployment settings. Requalify when the collector route, TLS trust, guest image, or backend changes.

Upgrade

Contain and terminate active workloads, then stop both Guard services before running the verified installer for the new version. Review workload status after starting the services. Guard’s deployment guide describes how the installer preserves enrollment, policies, and guest images. See operations for the cutoff and recovery procedure.