No description
  • Rust 71.7%
  • Python 19.2%
  • Shell 6%
  • Swift 1.1%
  • CSS 0.6%
  • Other 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ronald Farrer 7b3e9b4872
Some checks are pending
CI / Build (push) Blocked by required conditions
CI / Build-1 (push) Blocked by required conditions
Live ISO (gnome-light-openrc-x86_64) / Build + test + publish live ISO (gnome-light-openrc-x86_64) (push) Waiting to run
Live ISO (gnome-light-systemd-x86_64) / Build + test + publish live ISO (gnome-light-systemd-x86_64) (push) Waiting to run
Live ISO (server-openrc-aarch64) / Build + test + publish live ISO (server-openrc-aarch64) (push) Waiting to run
Live ISO (server-openrc-x86_64) / Build + test + publish live ISO (server-openrc-x86_64) (push) Waiting to run
Live ISO (server-systemd-aarch64) / Build + test + publish live ISO (server-systemd-aarch64) (push) Waiting to run
Live ISO (server-systemd-x86_64) / Build + test + publish live ISO (server-systemd-x86_64) (push) Waiting to run
Live ISO (xfce-openrc-x86_64) / Build + test + publish live ISO (xfce-openrc-x86_64) (push) Waiting to run
Mutation testing (nightly incremental, weekly full per group) / cargo-mutants (vm-runtime shard 1) (push) Waiting to run
Mutation testing (nightly incremental, weekly full per group) / cargo-mutants (vm-runtime shard 2) (push) Waiting to run
Mutation testing (nightly incremental, weekly full per group) / cargo-mutants (vm-runtime shard 3) (push) Waiting to run
Mutation testing (nightly incremental, weekly full per group) / cargo-mutants (backup) (push) Waiting to run
Mutation testing (nightly incremental, weekly full per group) / cargo-mutants (storage) (push) Waiting to run
Mutation testing (nightly incremental, weekly full per group) / mutation score (vm-runtime, merged shards) (push) Blocked by required conditions
CI / Mobile theme (light/dark) (push) Successful in 8s
CI / Plan (what needs to run) (push) Successful in 10s
CI / Light tier (x86 matrix deferred to landing) (push) Has been skipped
coverage-check / coverage (push) Successful in 10s
CI / public-leak-guard (push) Successful in 12s
CI / UX QA (static checkers) (push) Successful in 12s
CI / Overlay Manifests (push) Successful in 31s
CI / Web UI theme (light/dark) (push) Successful in 5s
Overlay sync / Publish gentoo/ as horcrux-overlay (push) Successful in 37s
CI / License inventory (push) Successful in 39s
CI / Security Audit (push) Successful in 57s
CI / Check (push) Successful in 3m42s
CI / Test (push) Has started running
CI / UI E2E (browser) (push) Has started running
CI / Build Web UI (push) Successful in 4m14s
Mutation testing (nightly incremental, weekly full per group) / cargo-mutants (vm-snapshot) (push) Successful in 28s
Mutation testing (nightly incremental, weekly full per group) / cargo-mutants (vm-runtime shard 0) (push) Has started running
CI / USE-flag feature builds (push) Successful in 14m58s
CI / Gentoo USE-flag matrix (ebuild install) (push) Has started running
CI / Gentoo Docker Build (push) Successful in 17m56s
boot environments API: a vanished boot environment/snapshot answers a plain 404 instead of the raw zfs clone error; test; no version bump
2026-12-03 02:16:37 -08:00
.ci update-check: treat GitHub rate limit/no-result without a key as a warning; per-repo default overlay dirs 2026-11-15 00:48:25 -08:00
.forgejo console iOS: iPhone/iPad app on the shared Rust client core, UI journeys against a real node in the Release build, App Store material, upload lane behind a switch 2026-12-03 00:00:34 -08:00
.github Remove GitHub Pages workflow 2026-11-27 12:10:14 -08:00
.nvchecker gentoo/ci: init-parity check joins backslash-continued lines so a multi-line inherit counts 2026-11-29 10:57:28 -08:00
branding iso: GRUB boot menu uses the product splash (official logo, scaled) via gfxterm; falls back to the text menu if splash/font missing; serial mirror unchanged 2026-10-28 17:00:51 -07:00
build VMs run in their own cgroup/scope, outside horcrux-api: a manager restart or upgrade never stops a running guest; no version bump 2026-12-03 00:00:32 -08:00
ci console iOS: iPhone/iPad app on the shared Rust client core, UI journeys against a real node in the Release build, App Store material, upload lane behind a switch 2026-12-03 00:00:34 -08:00
crates VMs run in their own cgroup/scope, outside horcrux-api: a manager restart or upgrade never stops a running guest; no version bump 2026-12-03 00:00:32 -08:00
deploy Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
docs console iOS: iPhone/iPad app on the shared Rust client core, UI journeys against a real node in the Release build, App Store material, upload lane behind a switch 2026-12-03 00:00:34 -08:00
examples Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
gentoo horcrux-core 1-r10: horcrux-doctor x11-scale never reports success for a GNOME user it cannot check (non-root + other user's session is now FAIL 'not checked', exit 1) or a helper that exits 0 without any OK line; tests 2026-12-03 02:16:37 -08:00
horcrux-api boot environments API: a vanished boot environment/snapshot answers a plain 404 instead of the raw zfs clone error; test; no version bump 2026-12-03 02:16:37 -08:00
horcrux-cli Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
horcrux-common Console relay: answer UDP requests from the address they reached (IP_PKTINFO / IPV6_RECVPKTINFO) when listening on the unspecified address; setting wan.relay_reply_from_request_address (default on); netns test with a route-back address that differs from the address the client sends to; no version bump 2026-12-02 21:46:58 -08:00
horcrux-desktop console: shared client core crate (horcrux-console-client) used by the desktop client, uniffi bindings for the mobile apps (horcrux-console-ffi), touch gesture model of the web client in Rust [WIP] 2026-11-30 13:50:51 -08:00
horcrux-ios ios: a drag on the console never pops back to the VM list (iOS 26+ content swipe-back and the edge swipe are off while the console is shown, restored after; a trackpad drag to the right left the console, seen in the UI test recording); no version bump 2026-12-03 00:00:34 -08:00
horcrux-mobile horcrux-mobile: follow the device light/dark (dark palette, color-scheme + theme-color per scheme), success button contrast, theme check + render proof 2026-10-30 14:50:43 -07:00
horcrux-mobile-android console android: compileSdk 37 (androidx.core 1.19 needs it; targetSdk stays 36), SDK setup installs platform 37 + build-tools 37 2026-12-01 23:28:50 -08:00
horcrux-ui feat(vm): network cards, CD-ROM/ISO library, boot order, VM edit, shutdown/reboot/reset, host bridges 2026-10-18 14:44:54 -07:00
keys Signed releases + SBOM: every published ISO, checksum, SBOM and evidence file gets an OpenPGP signature 2026-11-18 02:00:37 -08:00
packaging guest power: passthrough VMs hibernate themselves through the guest agent at host shutdown (agent hibernate/setup actions, engine fallback chain with its own timeout, node + per-VM setting, API, UI, CLI, docs) 2026-11-25 15:07:25 -08:00
site Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
terraform-provider-horcrux Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
tools/vmtest Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
ui-kit/map infra map: short filter placeholder (fits at phone width), sources empty state names the next step 2026-11-29 23:37:30 -08:00
.dockerignore gentoo: add live (9999) ebuild alongside versioned (0.1.0), fix placeholder URLs 2026-09-24 21:39:56 -07:00
.gitignore live ISO: stage overlay packages (app-containers/grype-bin) into a local repo for the rootfs emerge (run 7393: 'no ebuilds to satisfy app-containers/grype-bin' in every live-iso job; the overlay is not in the rootfs stage and the binhost lacks the new package) 2026-11-27 19:18:45 -08:00
AGENTS.md Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
API_DOCUMENTATION.md Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
Cargo.lock Console relay: Cargo.lock lists nix for horcrux-turn; CI runs the reply-address netns test in a privileged sibling with HX_TURN_REQUIRE_NETNS=1 (in the unprivileged Test container it only printed SKIP); no version bump 2026-12-02 22:12:18 -08:00
Cargo.toml console: shared client core crate (horcrux-console-client) used by the desktop client, uniffi bindings for the mobile apps (horcrux-console-ffi), touch gesture model of the web client in Rust [WIP] 2026-11-30 13:50:51 -08:00
CHANGELOG.md feat: versioned releases: semver tags, generated CHANGELOG.md, update and rollback policy 2026-11-17 14:12:15 -08:00
CI-TRIGGERS.md console iOS: iPhone/iPad app on the shared Rust client core, UI journeys against a real node in the Release build, App Store material, upload lane behind a switch 2026-12-03 00:00:34 -08:00
CODE_CLEANUP_REPORT.md refactor: Reduce compiler warnings by 88% (435→50) with code cleanup 2025-10-10 22:37:06 -07:00
COMPARISON.md Add comprehensive technical documentation 2025-10-11 21:08:30 -07:00
CONTRIBUTING.md Add comprehensive CONTRIBUTING.md guide 2025-10-11 18:28:16 -07:00
deny.toml compliance: license inventory generator, cargo-deny policy, About and open-source licenses pages, privacy policy, support window 2026-11-18 06:15:59 -08:00
DEPLOYMENT.md Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
docker-compose.yml Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
Dockerfile Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
Dockerfile.cli build: track latest stable Rust instead of pinning old versions 2026-09-24 20:01:49 -07:00
ENHANCEMENTS_FINAL_SUMMARY.md Add comprehensive enhancement session summary 2025-10-10 20:38:39 -07:00
ENHANCEMENTS_SESSION_SUMMARY.md docs: Add comprehensive enhancements session summary 2025-10-10 20:22:24 -07:00
FEATURES.md fix(cluster): report live node CPU/memory usage; add cluster status/remove endpoints 2026-10-15 20:49:34 -07:00
FINAL_STATUS.md docs: Update FINAL_STATUS.md - Platform now 5/5 stars, fully production ready 2025-10-10 19:27:54 -07:00
FINAL_VALIDATION_REPORT.md Add comprehensive final validation report 2025-10-10 20:50:04 -07:00
horcrux_logo.png first commit 2025-10-08 12:53:47 -07:00
IMPLEMENTATION_PLAN.md feat: Complete migration system with 100% real implementations 2025-10-10 18:56:20 -07:00
install.sh Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
LICENSE first commit 2025-10-08 12:53:47 -07:00
MISSING_FEATURES.md docs: document horcrux-mobile & terraform provider, fix stale claims 2026-10-12 16:42:24 -07:00
OIDC_FIX_SUMMARY.md docs: Add comprehensive OIDC security fix summary 2025-10-10 19:29:27 -07:00
PORTAINER_COMPARISON.md docs: add PORTAINER_COMPARISON.md 2026-10-13 12:34:24 -07:00
PROGRESS_SUMMARY.md Add comprehensive noVNC testing suite and documentation 2025-10-13 21:47:50 -07:00
PROJECT_STATISTICS.md refactor: Reduce compiler warnings by 88% (435→50) with code cleanup 2025-10-10 22:37:06 -07:00
PROXMOX_COMPARISON.md first commit 2025-10-08 12:53:47 -07:00
QUICKSTART.md Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
README.md Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
README.md.old first commit 2025-10-08 12:53:47 -07:00
REMAINING_WORK.md docs: Update REMAINING_WORK.md to reflect OIDC security fix 2025-10-10 19:06:27 -07:00
ROADMAP.md alerts: pooled SMTP transport shared across alert emails (per relay login, evicted on send failure); STARTTLS on non-465 ports, 20 s timeout; ROADMAP; no version bump 2026-11-23 12:37:11 -08:00
SECURITY.md docs: security contact moves to security@support.errant.solutions (author email in package metadata too); signing-key UID text unchanged 2026-11-30 12:18:41 -08:00
SESSION_COMPLETE.md Add comprehensive session completion summary 2025-10-10 21:09:40 -07:00
SESSION_COMPLETE_2025-10-12.md Add complete session documentation for testing and noVNC implementation 2025-10-12 22:54:21 -07:00
SESSION_SUMMARY.md feat: Complete migration system with 100% real implementations 2025-10-10 18:56:20 -07:00
SESSION_SUMMARY_2025-10-11.md Add session summary for 2025-10-11 code quality improvements 2025-10-11 17:47:30 -07:00
SESSION_SUMMARY_2025-10-12.md Add comprehensive documentation for libvirt integration 2025-10-12 21:51:58 -07:00
stage12.sh hogsmeade: ZFS stripe datasets conf, installer fixes, QEMU 3-disk test, stage1+2 helper 2026-10-30 03:01:10 -07:00
STATUS.md first commit 2025-10-08 12:53:47 -07:00
TECHNICAL_STATUS.md Web UI/API login = system users via PAM; no built-in admin, no initial-admin-password 2026-11-12 15:18:05 -08:00
test-runner.sh Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
test_novnc.sh Add comprehensive noVNC testing suite and documentation 2025-10-13 21:47:50 -07:00
TEST_STATUS.md feat(console): expose serial console over HTTP + CLI 2026-10-06 18:16:38 -07:00
test_vnc_protocol.py Add comprehensive noVNC testing suite and documentation 2025-10-13 21:47:50 -07:00
test_vnc_server.py Add comprehensive noVNC testing suite and documentation 2025-10-13 21:47:50 -07:00
THIRD-PARTY-LICENSES.txt console: Cargo.lock + third-party licences for uniffi; Android e2e driver [WIP] 2026-11-30 13:50:52 -08:00
TROUBLESHOOTING.md Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
USER_MANUAL.md Standard ports: web UI/API on HTTPS 443 + HTTP 80 redirect; 8006 and other ports are configurable (config.toml, env, API, UI, declarative); existing nodes keep their port on upgrade 2026-12-02 15:56:33 -08:00
VALIDATION_SESSION_SUMMARY.md docs: Add validation session summary 2025-10-10 19:57:32 -07:00
warning_analysis.md docs: mark warning_analysis.md as stale (55 warnings from 2025-10-12, already resolved/wired up) 2026-10-14 14:54:52 -07:00

Horcrux

Horcrux

A headless hypervisor/server OS (Proxmox VE-style virtualization manager) for Gentoo Linux, written in Rust, with an optional desktop.

Status: in active development (v0.1.x). Not yet suitable for production use. APIs, config and on-disk formats can still change between releases. Try it on test hardware.

License: GPL v3 Built with Rust Platform: Gentoo

Website and docs: horcrux.errant.solutions

Support the project: Horcrux is free and stays free. If it saves you time, you can leave a one-time tip, a monthly sponsorship or a crypto donation at errant.solutions/support/horcrux, or sponsor on GitHub Sponsors.

Documentation | Roadmap to 1.0 | API reference | Installation | Docker guide

Updates, supported versions and rollback | Privacy | Third-party licenses | Changelog

What is Horcrux?

Horcrux is a server-first operating system: a Gentoo-based hypervisor you install from an ISO (x86_64 and aarch64) and manage through the web UI, the API, the CLI or SSH. The server image has no desktop and needs no display: it installs over a serial console or SSH with an answer file, and the web UI comes up on the standard HTTPS port 443. A desktop is an optional edition (GNOME today) layered on the same core, for laptops and workstations that run VMs; it adds the desktop and nothing else (see Layers).

image what it is
horcrux-server-openrc-daily-x86_64.iso, horcrux-server-openrc-daily-aarch64.iso the headless server (the product)
horcrux-gnome-light-openrc-daily-x86_64.iso server core + GNOME (optional desktop edition)
horcrux-xfce-openrc-daily-x86_64.iso server core + XFCE (optional desktop edition for small machines, OpenRC only)

Image names are <product>-<desktop environment or "server">-<init system>-<channel>-<arch>.iso (details).

Horcrux is a web-managed virtualization platform that aims at Proxmox VE-style functionality (VMs, containers, storage, clustering, firewall, backups, RBAC) on Gentoo, with a Rust API server, a Rust/WASM web UI, a CLI and a Terraform provider. It differs from Proxmox in a few deliberate ways:

  • More backends: QEMU/KVM, Incus and LXD for VMs; Incus (preferred), LXD, LXC, Docker and Podman for containers. Incus is the preferred system-container/VM runtime; LXD stays supported as the secondary.
  • Kubernetes management: connect or provision k3s/kubeadm clusters, workloads, Helm.
  • Mixed-architecture clusters: x86_64, aarch64 and riscv64 nodes in one cluster.
  • Gentoo-native: ebuilds and USE flags select which features get built.
  • Rust throughout, including the web UI (Leptos/WASM).

Yearly support plans for businesses (best-effort email support, no SLA) are available: errant.solutions/support/horcrux/#plans. A paid stable update channel is planned after a stable 1.0 (the free channel stays complete). Design: docs/stable-channel.md.

Current status

What is covered by automated tests in the project's CI today:

  • Build and lint: formatting, clippy, release builds across feature sets, and a USE-flag feature build matrix.
  • Unit and integration tests run against a live horcrux-api server.
  • Against real services, not mocks: OpenLDAP, Dex (OIDC), PAM and an ACME test CA for auth realms and certificates; real nftables for firewall and SDN policy enforcement; real CNI plugins; real tap/VLAN/PXE VM networking; nested LXC and Incus containers; a k3s cluster with a local chart repository for Helm; the Docker daemon for container tests.
  • Web UI: built to WASM and exercised by browser end-to-end tests.
  • Gentoo: the container image builds through Portage, and the ebuild installs across a USE-flag matrix.
  • Security audit (cargo audit) runs on every change.

Known gaps and caveats:

  • riscv64 / aarch64 release binaries are cross-compiled, but there is no physical RISC-V hardware in the test setup. Reports from real riscv64 boards are welcome.
  • The Hypervisor HA fencing agent type is a stub (see horcrux-api/src/ha/fencing.rs); the IPMI, iLO/DRAC, SSH, libvirt, watchdog and SNMP-PDU agents are implemented.
  • The mobile UI's Storage and Network pages are placeholders ("coming soon").
  • Several status/summary documents in the repo root are historical session notes and may overstate completeness; treat this README, docs/ and the CI results as the source of truth. See also the stable 1.0 roadmap and checklist, the older ROADMAP.md and MISSING_FEATURES.md.
  • No third-party security review has been done.

Features

Virtualization and containers

  • Hypervisors: QEMU/KVM, Incus (preferred), LXD.
  • Container runtimes: LXC, Incus (preferred system containers), LXD, Podman (preferred OCI runtime, the default for containers and stacks) and Docker (secondary). Override per request with runtime=docker, or host-wide with HORCRUX_OCI_RUNTIME=docker.
  • Templates: full and linked clones, cloud-init.
  • Console access: VNC (noVNC in the browser via a WebSocket proxy; QEMU listens on 127.0.0.1 with a per-start password), SPICE, serial console, headless VMs.

Kubernetes

  • Connect clusters via kubeconfig or provision k3s/kubeadm clusters.
  • Pods, Deployments, StatefulSets, DaemonSets, Jobs/CronJobs, Services, Ingress, NetworkPolicies, ConfigMaps/Secrets, PVCs, StorageClasses.
  • Helm install/upgrade/rollback and repository management; metrics, events, logs, exec over WebSocket.

See docs/KUBERNETES.md.

Storage

ZFS, Ceph RBD, LVM, directory (qcow2) and iSCSI backends.

Clustering and HA

  • Corosync/Pacemaker clustering with quorum checks.
  • HA framework with affinity rules and fencing agents.
  • Live migration of running QEMU VMs (disk mirror + QEMU migration, no shared storage required), or offline migration with a verified copy; cancel rolls back. See docs/MIGRATION.md.

Security

  • Realms (user@realm): local, PAM, LDAP (plain/StartTLS/LDAPS), Active Directory, OpenID Connect (PKCE, state, nonce), and API keys.
  • Second factors: TOTP, WebAuthn security keys/passkeys, recovery codes; enforceable per user, realm or globally.
  • RBAC: Proxmox-style privileges checked on every API route, built-in and custom roles, path ACLs with propagation.
  • HTTPS by default on the standard port 443 (HTTP on 80 only redirects; extra ports are optional and configurable, docs/WEB-LISTENERS.md) using a node-local CA (or your own certificate, or ACME/Let's Encrypt with renewal). Plain HTTP is redirected.
  • Firewall: nftables-based, datacenter/node/per-guest rules, security groups, IPv4 and IPv6.

See docs/ACCESS_CONTROL.md.

Operations

  • Backup and restore: full/incremental/differential, vzdump-compatible format, scheduled jobs, gzip/zstd/lz4.
  • Monitoring and alerting: node and container metrics (/proc, cgroups v1/v2), live dashboard over WebSocket, thresholds, notification channels, alert history.
  • Web UI: Rust/WASM dashboard, VM management, alerts, consoles.
  • CLI (horcrux), mobile UI (horcrux-mobile) and a Terraform provider (terraform-provider-horcrux: horcrux_vm, horcrux_container, horcrux_storage_pool, horcrux_firewall_rule).

Installation

Prerequisites

  • Gentoo Linux (recommended); other Linux distributions may work but are not the target.
  • CPU with VT-x/AMD-V for KVM; 8+ GB RAM and 50+ GB disk are a sensible minimum for guests.
  • Rust 1.82 or later to build from source.

From source (installer script)

git clone https://github.com/CanuteTheGreat/horcrux.git
cd horcrux
sudo ./deploy/install.sh

The script checks requirements, creates the horcrux user and groups, builds from source, installs binaries and the web UI, configures services and initializes the database. Then open https://localhost.

There is no admin account and no default password: log in to the web UI and API with a system user (PAM) in the horcrux-admin or wheel group - see docs/WEB-LOGIN-PAM.md. Self-registration is off. Scripts must use https:// and trust the node CA from /api/tls/ca.pem (or the CLI's --ca-cert). Details: docs/ACCESS_CONTROL.md. The full guide is docs/INSTALLATION.md.

Docker (development)

The Docker path builds through the project's own Gentoo/Portage overlay (gentoo/), so USE flags still apply. It is a development/CI convenience, not a separate deployment target.

git clone https://github.com/CanuteTheGreat/horcrux.git
cd horcrux
docker-compose up -d

curl -k https://localhost/api/tls/ca.pem -o horcrux-ca.pem
curl --cacert horcrux-ca.pem https://localhost/api/health

See docs/DOCKER.md.

Gentoo ebuild

sudo mkdir -p /var/db/repos/local/app-emulation/horcrux
sudo cp deploy/gentoo/horcrux-0.1.0.ebuild /var/db/repos/local/app-emulation/horcrux/
cd /var/db/repos/local/app-emulation/horcrux
sudo ebuild horcrux-0.1.0.ebuild manifest
sudo USE="qemu lxc podman" emerge -av app-emulation/horcrux
sudo systemctl enable --now horcrux-api

A live horcrux-9999.ebuild is also in deploy/gentoo/.

USE flags

Flag Description Default
qemu QEMU/KVM virtualization on
lxc LXC containers on
podman Podman integration (preferred OCI runtime) on
docker Docker integration (secondary) on
cluster Clustering and HA (/ha/* pages, node list, create/join, failover) on
backup Backup compression on
gpu GPU passthrough off

Configuration

Edit /etc/horcrux/config.toml (example in deploy/config.toml.example):

[server]
host = "0.0.0.0"
port = 443
workers = 4

[storage]
default_pool = "local"

[clustering]
node_name = "node1"
cluster_name = "production"

[auth]
session_timeout = 7200  # 2 hours

Using it

API

The server publishes an OpenAPI spec and Swagger UI on your own node at /api/openapi.yaml and /api/docs once it is running. The spec is also in the repo at docs/openapi.yaml; guides are docs/API_DOCS.md and docs/API.md.

TOKEN=$(curl -s --cacert horcrux-ca.pem -X POST https://localhost/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"username": "alice", "password": "<your admin password>"}' | jq -r .ticket)

curl --cacert horcrux-ca.pem -H "Authorization: Bearer $TOKEN" https://localhost/api/vms

CLI

horcrux vm list
horcrux vm create --name myvm --memory 2048 --cpus 2 --disk 20
horcrux vm start vm-100
horcrux snapshot create vm-100 --name "before-upgrade" --include-memory
horcrux clone create vm-100 --name clone1 --full --start
horcrux completions bash > /etc/bash_completion.d/horcrux

See docs/CLI.md.

Testing

./test-runner.sh        # everything
cargo test --lib        # unit tests
cargo test --test integration_tests

Many integration tests need real services (nftables, LXC, Incus, k3s, LDAP...) and are meant to run in CI; the unit tests run anywhere.

Architecture

┌─────────────────────────────────────────────┐
│           Web UI (Leptos/WASM)              │
└───────────────────┬─────────────────────────┘
                    │ REST API / WebSocket
┌───────────────────┴─────────────────────────┐
│         Horcrux API Server (Axum)           │
│  VM │ Container │ Storage │ Cluster │ Auth  │
│ Backup │ Monitor │ Alerts │ Firewall │ SDN  │
└───────────────────┬─────────────────────────┘
┌───────────────────┴─────────────────────────┐
│        Hypervisors & Storage Backends       │
│  QEMU │ Incus │ LXD │ Docker │ Podman       │
│  ZFS │ Ceph │ LVM │ iSCSI │ Directory       │
└─────────────────────────────────────────────┘

Contributing

See CONTRIBUTING.md.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup target add wasm32-unknown-unknown
cargo install trunk
cargo run                                   # API server
cd horcrux-api/horcrux-ui && trunk serve    # UI

License

GPL-3.0. See LICENSE. The licenses of the third-party Rust crates in a build are in THIRD-PARTY-LICENSES.txt (generated by ci/third-party-licenses.py, checked by CI together with a cargo deny license policy, deny.toml); the web UI shows it under About & Licenses, offline.

Acknowledgments

Inspired by Proxmox VE. Built with Axum, Leptos, Tokio and Serde.

Support