Building from source
On macOS, you can install enclo without building via Homebrew. On Linux, building from source is currently the only option.
Building requires an Apple silicon Mac or a Linux machine with /dev/kvm.
Intel Macs are not supported, and Windows is not supported yet. Run all
commands below from the repository root:
For Debian 13 and Ubuntu 24.04. Your user must be able to open /dev/kvm; if
not, run sudo usermod -aG kvm "$USER" and log in again.
Skip the second and third lines if you already have Rust installed via rustup.
The export line applies only to the current shell, and subsequent builds
require it, so add it to your shell profile.
make install builds the guest images, enclo-shim, and the enclo binary,
then installs them under ENCLO_HOME (default ~/.enclo). It is safe to
re-run, and it prints the PATH line to add to your shell startup file. Once
installed, connect your harness.
Running make m0 instead of make install builds the same components and
boots a single sandbox to verify the boot path, ending with
PASS: milestone 0 exit test.
Linux requirements
- Your user must be able to open
/dev/kvm, which on most distributions means being in thekvmgroup. erofs-utilsmust be version 1.7 or newer and built with zlib support. Debian 12 and Ubuntu 22.04 ship older versions that must be built from source.- Rust must be installed via rustup so you can add the musl target required by the guest agent.
More
See
Building enclo from source
in the repository for per-distribution notes, running enclo-shim directly
with a spec file, release builds, Make targets, cross-architecture testing, and
the repository layout.