Docker compose for KVM. Define multi-VM stacks in one YAML file. No libvirt, no XML, no distributed control plane.
Website and docs: https://zeroecco.github.io/holos/
The primitive is a VM, not a container. Every workload instance gets its own kernel boundary, qcow2 overlay, cloud-init seed, and generated SSH access.
Requires Linux +
/dev/kvm. macOS builds run offline commands likevalidate,import,images, andpull, butupandrunneed a KVM host.
One disposable VM, no compose file:
holos run alpine
holos exec <printed-project-name>
holos down <printed-project-name>A single-service stack you can curl. Save as holos.yaml:
name: hello
services:
web:
image: ubuntu:noble
ports:
- "8080:80"
cloud_init:
packages:
- nginx
write_files:
- path: /var/www/html/index.html
content: "hello from holos\n"
runcmd:
- systemctl restart nginxholos up
curl localhost:8080
holos down helloThat is a real VM booting a cloud image, installing a package, writing config, and forwarding a host port.
Pre-built binaries are attached to every GitHub release:
TAG=v0.2.2
ASSET=holos_${TAG#v}_Linux_x86_64.tar.gz
BASE=https://github.com/zeroecco/holos/releases/download/$TAG
curl -LO $BASE/$ASSET
curl -LO $BASE/checksums.txt
grep " $ASSET$" checksums.txt | sha256sum -c -
gh attestation verify $ASSET --repo zeroecco/holos
sudo tar -xz -C /usr/local/bin -f $ASSET holos
holos version
holos doctorRelease pages include SHA-256 checksums and GitHub artifact attestations for signed provenance. Verify both before installing binaries on production hosts.
Or build from source:
go build -o bin/holos ./cmd/holos
go test ./...
bin/holos doctorholos up [-f holos.yaml] start all services
holos run [flags] <image> [-- cmd...] launch a one-off VM
holos down <project> stop and remove a project
holos ps [-f holos.yaml] list running projects
holos start [-f holos.yaml] [svc] start a stopped service or all services
holos stop [-f holos.yaml] [svc] stop a service or all services
holos console <project> [<inst>] attach serial console
holos exec <project> [<inst>] [-- cmd...]
SSH into an instance
holos logs <project> [<svc|inst>] show console logs
holos validate [-f holos.yaml] validate compose file
holos pull <image> pull a cloud image
holos verify <image>|--all verify cached image checksums
holos images list available images
holos devices [--gpu] list PCI devices and IOMMU groups
holos doctor [--json] check host dependencies
holos install [-f holos.yaml] [--system] [--enable]
install a systemd unit
holos uninstall [-f holos.yaml] [--system]
remove the systemd unit
holos import [vm...] [--all] [--xml file] [--connect uri] [-o file]
convert virsh VMs into holos.yaml
- Website: landing page and rendered docs.
- CLI guide: ad hoc VMs,
exec, systemd install, virsh import, anddoctor. - Compose file: services, volumes, healthchecks, networking, PCI passthrough, Dockerfile provisioning, and defaults.
- JSON Schema: editor completion and validation for
holos.yaml. - Examples: runnable and template stacks with README-style explanations.
- Development: build, test, host requirements, and release process.
- Security policy: supported versions and private reporting.
- Threat model / hardening: image verification, state permissions, locks, and operational guidance.
- Contributing: build, test, style, and PR conventions.
Start with the small nginx example:
holos up -f examples/alpine-nginx/holos.yaml
curl localhost:8080
holos down alpine-nginxThe examples directory also includes Dockerfile provisioning, GPU passthrough,
and a multi-service stack that shows depends_on, generated config, and
replicas.
- Linux with
/dev/kvm qemu-system-x86_64qemu-img- One of
cloud-localds,genisoimage,mkisofs, orxorriso - OVMF / edk2-ovmf firmware for UEFI or PCI passthrough
sshforholos execand healthchecks
Run holos doctor to check the host.
kex_exchange_identification: read: Connection reset by peer usually means
cloud-init is still regenerating host keys and restarting sshd. holos exec
waits up to 60s by default, but very slow first boots may need another retry or
holos exec -w 5m <project>.
The serial console may attempt autologin before cloud-init creates the user.
Wait for cloud-init ... finished in the console log, then use holos exec.
Cloud images generally do not ship with a console password, and holos does not
add one.
KVM is a Linux kernel feature. macOS binaries are useful for authoring and
offline commands, but holos up and holos run must execute on a Linux KVM
host.
holos is not Kubernetes. It does not try to solve multi-host clustering, live migration, service meshes, overlay networks, schedulers, CRDs, or control plane quorum.
The goal is to make KVM workable for single-host stacks without importing the operational shape of Kubernetes.
Licensed under the Apache License, Version 2.0. See
NOTICE for attribution.