Documentation / Getting started

Build a machine from one system file.

A system file links a machine profile to a software profile. Eclogite validates both branches, resolves the complete graph, locks every input, and produces either a VM bundle or a physical-machine image.

single JSON input typed references immutable output

01 · Input

The system file

The preferred interface is one strict JSON or JSONC system definition passed with --config. The checked-in UTM example uses aliases for predefined catalog objects:

{
  "schema": "eclogite.system/v0.1",
  "name": "utm-arm64",
  "machine": "utm-arm64",
  "software": "minimal"
}

Keep the configuration outside the empty output directory, then run:

mkdir machine && cd machine
eclogite create \
  --config ../examples/utm-arm64.json \
  --fetch
./vm.sh run
Why one file?

The machine and software remain independently reusable, but the system file is the complete reviewed decision about which pair becomes one output.

02 · Resolution

Aliases and file links

Each reference has one deterministic interpretation. Resolution never searches by prefix or downloads an arbitrary URL.

InputMeaningExample
Bare stringExact typed catalog name or declared aliasutm-arm64
./ or ../File relative to the system file../software/base.jsonc
Absolute pathRejected in persisted intent/Users/…
HTTP or Git URLRejected; use a pinned catalog sourcehttps://…

The lock records the canonical object name, defining catalog or file, content hash, and alias provenance. Changing a linked file changes the input hash.

03 · Commands

One selector across the CLI

Validation, inspection, locking, and creation consume the same file:

eclogite validate system.json
eclogite graph --config system.json --format tree
eclogite plan --config system.json
eclogite lock --config system.json
eclogite create --config system.json --fetch

Today ./eclogite at the repository root runs the reference tool, inside the linux-libre-vm dev VM or its container: validate, lock, fetch and build work; image, test and create are planned. The first system to try is qemu-arm64-minimal-busybox (docs/minimal-busybox.md).

./eclogite lock  -c qemu-arm64-minimal-busybox
./eclogite fetch -c qemu-arm64-minimal-busybox
./eclogite build -c qemu-arm64-minimal-busybox

--machine and --software remain available as an interactive shorthand. Scripts and CI should use --config so the complete intent is reviewable.

Detailed source document: docs/cli.md

04 · Data model

Machine and software stay separate

Machine profile

  • Platform and exact CPU model
  • vCPU count and memory
  • Boot method and firmware
  • Storage, network, and console
  • QEMU, UTM, or physical runtime contract

Software profile

  • Package selection
  • Kernel or operating-system family
  • Init and read-only root policy
  • Image and volumes
  • Services and tests come from packages

The machine selects the platform, so one software profile serves every compatible machine. Validation checks every package's constraints against that platform and machine.

Detailed source document: docs/configuration.md

05 · Build design

Resolve before executing

system.json
    ↓ validate + resolve
system.lock.json
    ↓ emit deterministic plan
state/plan.mk
    ↓ execute inside pinned build VM
immutable layers
    ↓ compose + test
VM bundle or hardware image

The standalone C host tool owns parsing, schemas, graph resolution, locks, cache keys, and scheduling. Seven generic shell builders each know one build style. Package JSON is data and never becomes an embedded scripting language.

Detailed source document: docs/architecture.md

06 · Deployment

QEMU and UTM use the same public runner

A virtual output contains immutable artifacts, vm.json, a generated backend driver, and a bundle-local vm.sh. The public lifecycle stays consistent:

./vm.sh validate
./vm.sh run
./vm.sh start
./vm.sh console
./vm.sh status
./vm.sh stop

The UTM ARM64 profile requires Apple Silicon and UTM 5 or newer. It uses UTM's QEMU backend with HVF, direct kernel boot, an imported disk copy, serial console, shared NAT, and VirtFS/9p.

Detailed source document: docs/vm-bundle.md

07 · Local and remote state

Downloads and layers are shared

The single eclogite executable uses per-user storage under ~/.cache/eclogite/ for catalog snapshots, Git mirrors, package sources, and immutable build layers. Projects keep only their intent, locks, plans, and outputs.

Remote layers are accepted only when the input key, immutable digest, manifest hashes, and trusted workflow provenance all match.

Detailed source document: docs/storage.md

08 · Project status

Design first, then migrate package by package

GitHub CI will validate the C tool, schemas, catalog, plans, shell contracts, and generated site on Linux and macOS. Dedicated KVM-capable runners will build and publish signed layers. UTM receives a separate Apple Silicon smoke-test environment.

Implemented so far: the reference tool tools/eclogite-mjs behind ./eclogite (validate, resolve, lock, plan, graph, why, fetch, build), the make, configure, files and linux-kernel builders, and three workflows: the reference checks, the builder check inside the pinned linux-libre-vm v0.4.0 dev container on aarch64 and x86-64, and this site. Not yet: the image step, vm.sh, the C tool and remote layers.

Reference implementation

linux-libre-vm remains independent and buildable throughout the rewrite. Its images, kernel settings, runners, and boot tests are the compatibility oracle.

Detailed source document: docs/ci.md