
guestkit
io.github.zyvorai/guestkit
Read-only evidence and boot-readiness tools for one VM disk image, offline.
Documentation
GuestKit
Know it will boot. Before you power it on.
Offline VM intelligence and migration assurance. GuestKit reads a VM disk while the guest is off, scores first-boot readiness 0–100, repairs it through a plan you can read, and certifies cutover with a signed Passport.
6 disk formats · 0–100 boot score · 0 appliance daemons · 8 migration targets · Zyvor Production Licence
Gallery · Docs · Product · Wiki · 30-day Enterprise trial
What's new
| Release | What changed |
|---|---|
| 1.3.0 | Supply chain and assurance: guestkit cve (OpenVEX/CSAF, EPSS/KEV, offline DB), `attest create |
| 1.2.11 | Security hardening: guest paths resolve chroot-style, mount/archive/cpio traversal closed, guest filesystems mount nodev,nosuid, read_file refuses non-regular files and caps at 1 GiB, NBD lock moved to /run/lock or XDG_RUNTIME_DIR, job ids restricted to [A-Za-z0-9._-], plus loop/NBD cleanup, GPT, mdstat and grep option-injection fixes |
| 1.2.10 | Disk access works on Ubuntu 26.04 (loop and NBD readiness is read from sysfs, so root:disk 0660 device nodes no longer time out); VHDX, VDI, VHD and VMDK images are detected; nine RustSec advisories cleared |
| Agent (1.2.6) | Per-container eBPF network policy and BPF-LSM controls in the guest agent (guestkit.netpolicy / guestkit.lsm), off by default, audit first, enforce only under a time-bound lease |
| 1.2.5 | Offline inject on run_migrate_repair: hostname, network, users, services, first-boot scripts, cloud-init, AD rejoin, Windows KMS and RDP, appended to the repair plan |
| 1.2.5 | Online snapshots freeze the filesystem through the privileged helper, so KubeVirt snapshots of PVC-backed VMs work with the unprivileged agent |
| 1.2.5 | Linux agent connects to the virtio channel on stock distros (udev rule shipped in DEB, RPM and tarball); concurrent NBD mounts no longer race |
| 1.2.2 | Web Image Vault reaches TUI parity: inventory tabs, Assurance (plan, passport, repair preview and gated apply), Profiles and Files |
| 1.2.0 | guestkit-qemu assured QEMU/VirtIO runtime, guestkit vm, virtctl-guestkit guestfs, the cutover bundle and guestkit shrink for oversized disks |
Full history: CHANGELOG.md.
Why GuestKit
Every hypervisor exit fails the same way: you discover the disk was broken at 2am, in the cutover window, after power-on. GuestKit reads the disk while the guest is off — qcow2, VMDK, VHDX, VHD, VDI or raw — through its own pure-Rust engine (NBD or loop mount). There is no appliance daemon and no "power it on and see".
| When this happens… | GuestKit gives you… |
|---|---|
| "Will it boot?" is answered at power-on | An offline doctor score (0–100) with a root-cause chain for each blocker |
| Each migration relies on scripts and tribal knowledge | Structured plans in JSON/YAML and a CI gate on the same score |
| Cutover weekend is full of surprises | Hypervisor-aware migrate-plan and day-0 packs, for 8 targets |
| There is no audit trail of what was checked | A signed Cutover Passport per disk |
| Repairs are hand edits inside a mounted image | Fix plans you can read, applied with backups and rollback |
| Migration order is guessed by hand | fleet wave-plan: dependency-aware waves |
Fixes are never implicit. Repairs go through a plan you can read, applied with backups and rollback, and the same score drives the CI gate, the signed Cutover Passport, and assured QEMU launch.
|
Boot-readiness scoring First-boot probability 0–100, the blockers explained, and a reviewable fix plan. The cutover problem |
Offline repair Repairs go through a plan you can read, applied with backups and rollback. What you can do |
Migration assurance The same score drives the CI gate, the signed Cutover Passport and assured QEMU launch. Quick start |
|
Engine and formats A pure-Rust engine over qcow2, VMDK, VHDX, VHD, VDI and raw, through NBD or loop mount. Platform layout |
Suite hand-offs Export with Transiva, convert and deploy with h2kvm, assure with GuestKit, operate on Zorvia or Zeus OS. Who does what |
CLI, TUI, web, CI CLI, TUI, QEMU, Python, web console, in-guest agent and a GitHub Action. Run the web stack |
70+ commands · 6 disk formats · 0 appliance daemons · 8 migration targets · Zyvor Production Licence

See it live
Assurance: doctor score 78, a REVIEW decision, and ranked findings with a fix command each.
Summary: OS identity and inventory counts from inspect.
Image Vault: import a disk, or try the offline demo.
The bundled source-available web console rendering its offline demo data, not a live deployment. Demo videos are in the gallery.
How it fits together

disk.qcow2 / .vmdk / .vhdx / .vhd / .vdi / .raw
│
▼
┌──────────────────────┐
│ Pure-Rust engine │──► doctor 0–100 + blockers
│ NBD / loop mount │──► migrate-plan YAML
└──────────────────────┘──► Passport · repair · CI gate
│ guestkit-qemu (assured launch)
CLI · TUI · QEMU · Python · Web · Agent · GitHub Action
Export with Transiva (Zyvor Production Licence) → convert & deploy with h2kvm (Zyvor Production Licence) → assure with GuestKit (Zyvor Production Licence) → operate on Zorvia or Zeus OS. Run and manage VMs with FluxVM. Who does what · h2kvm integration
Architecture in depth: docs/architecture/overview.md.
Quickstart
# v1.3.0 GitHub Release (tar.gz only, no RPM/COPR) — crates.io `guestkit` is still 0.3.2
curl -fsSL -O https://github.com/zyvorai/zyvor-guestkit/releases/download/v1.3.0/guestkit-1.3.0-linux-amd64.tar.gz
tar xzf guestkit-1.3.0-linux-amd64.tar.gz && cd guestkit-1.3.0-linux-amd64
./install.sh # host deps (qemu-utils, nbd); run ./guestkit in place or add it to PATH
export PATH="$PWD:$PATH"
guestkit doctor vm.qcow2 --target proxmox --explain
guestkit migrate-plan vm.vmdk --target kvm --export plan.yaml
guestkit passport emit vm.qcow2 --target kvm -o passport.json
guestctl tui vm.qcow2 # Assurance · preview · export
guestkit-qemu plan vm.qcow2 --json # assurance → QEMU definition (build from source: not in the tarball)
CI gate — same score, no CLI install step:
- uses: zyvorai/guestkit@v1
with:
disk: vm.qcow2
target: kvm
fail-below: '80'
Targets: kvm · proxmox · qemu · kubevirt · aws · azure · gcp · hyperv. Host needs: Linux with qemu-img, losetup and qemu-nbd (Debian/Ubuntu qemu-utils), plus the loop and nbd kernel modules. Attaching and mounting a disk needs root: run as root, or GuestKit calls sudo for losetup, qemu-nbd, modprobe, mount and umount. On Ubuntu 26.04 the /dev/loopN and /dev/nbdN nodes are created on demand and are root:disk 0660, so unprivileged reads need sudo, the disk group or a udev rule: see Prerequisites.
Python (v1.1.0+), on PyPI: pip install zyvor-guestkit, then guestkit.run_doctor("vm.qcow2", target="kvm", explain=True). The full quick start, shrink and Python examples: docs/quick-start.md.
MCP server — guestkit mcp-serve <image> [--target kvm] is a stdio MCP server exposing six read-only evidence tools for one disk image. Build with cargo build --release --features mcp. Registry name io.github.zyvorai/guestkit; OCI image ghcr.io/zyvorai/guestkit-mcp. Opening a disk needs loop/NBD, so the container must run as root with --privileged (or SYS_ADMIN plus devices) despite its nonroot default user. See docs/guides/MCP.md and DOCKER.md.
Documentation
| Goal | Document |
|---|---|
| Docs site | zyvorai.github.io/zyvor-guestkit |
| Docs home | docs/README.md · INDEX |
| DevOps runbooks | docs/devops |
| Feature guide | guestkit-user-feature-guide.md |
| h2kvm integration | h2kvm integration |
| QEMU / VirtIO runtime | qemu-runtime.md |
| Dump virsh → GuestKit | virsh-to-guestkit.md |
| Architecture | overview |
The complete map, with the changelog and roadmap, is in docs/documentation-map.md.
Go deeper
- Gallery: console screenshots and demo videos — docs/gallery.md.
- Who does what: the suite split and the libvirt/virsh map — docs/who-does-what.md.
- h2kvm integration: docs/h2kvm-at-a-glance.md.
- What you can do: assure, plan, certify, repair, launch — docs/capabilities.md.
- Web stack (GHCR): docs/web-stack-ghcr.md.
- Platform layout: docs/platform-layout.md.
- Repository: docs/repository-layout.md.
- Prerequisites and build: docs/prerequisites-and-build.md;
docs/and this README are authoritative.
Source-available, Enterprise
Source-available under the Zyvor Production Licence v2.0. This repo. A 30-day trial is available on request from sales@zyvor.dev (a paid evaluation Order at no charge); production and any other use needs a paid Order under the Zyvor Production Licence v2.0. See pricing. Full offline doctor, migrate-plan, repair, fleet, policy · CLI · TUI · Python · self-hosted web/workers.
Enterprise — buy for programs. Same engine — not a locked doctor. Command Center · Portfolio · Assurance · Migration Factory · Passport Authority · OIDC / RBAC / audit · SLA · air-gap · hypervisor exit workshops.
30-day Enterprise trial · Pricing
Trial expired or want a guided evaluation? Book a demo or start a 30-day PoC — no email needed. sales@zyvor.dev remains as a fallback.
Maturity
GuestKit is at v1.3.0 (GitHub Release; PyPI zyvor-guestkit; crates.io guestkit is still 0.3.2). The architecture overview states the engine's scope plainly:
| Area | Status |
|---|---|
| Pure-Rust parsing: partition tables, filesystem signatures, evidence schema, boot engine, assurance APIs | Shipped |
Web UI (deploy/ui: inventory, Assurance, Profiles, Files), GHCR zyvor-ui | Shipped |
| In-process QCOW2 read | Partial: format detection and selective reads; full cluster walk defers to qemu-nbd |
| File access inside guests | Through loop devices / qemu-nbd and a host mount, not in-process ext4/NTFS parsers |
guestkit shrink | Narrow by design: a single/last ext2/3/4 partition, MBR or GPT, no LVM/LUKS; other layouts are reported and left untouched |
GHCR web stack (deploy/docker-compose.ghcr.yml) | Eval only: unauthenticated, do not expose beyond localhost |
| Guest-agent eBPF policy and LSM | Opt-in: gated by capabilities.ebpf, off by default |
Part of the Zyvor stack
| Product | Role next to GuestKit |
|---|---|
| GuestKit | Offline VM assurance: boot score, repair, Cutover Passport |
| Transiva | Exports VMs out of the source hypervisor, upstream of GuestKit |
| h2kvm | Converts and deploys to KVM; uses the GuestKit Python package for offline fixes |
| Zorvia | KubeVirt VM platform to operate the migrated VMs |
| FluxVM | Runs and manages VMs; production run, network and TTL sit there, not in guestkit vm |
Support
A 30-day trial is available on request from sales@zyvor.dev (a paid evaluation Order at no charge); production and any other use needs a paid Order under the Zyvor Production Licence v2.0. See pricing. If it helps you, you can donate any amount you like: https://zyvor.dev/donate. A donation is voluntary and supports development and maintenance. It is not a purchase: it buys no support, SLA, features, priority or license, and it is not tax-deductible (Zyvor AI Labs Private Limited is a company, not a charity). Zyvor Enterprise (supported releases, SLAs, a named contact and enterprise features) is separate: sales@zyvor.dev.
License
GuestKit is source-available under the Zyvor Production Licence v2.0 (SPDX LicenseRef-Zyvor-Production-2.0, also in LICENSES/). A 30-day trial is available on request from sales@zyvor.dev (a paid evaluation Order at no charge); production and any other use needs a paid Order under the Zyvor Production Licence v2.0. Buy / get a quote: zyvor.dev/buy · sales@zyvor.dev. See NOTICE and docs/legal/.
Price: INR 4,999 per seat per year incl. 18% GST in India; US$50 per seat per year excl. tax elsewhere. Buy: zyvor.dev/buy. Orders of USD 5,000 or more and quotes are invoiced in USD through Skydo.
Zyvor Enterprise adds what production teams ask for: supported releases, deployment and upgrade guidance, priority incident triage, a named technical contact and 24x7 critical intake. Production support, SLAs, and Zyvor Enterprise products are licensed separately. Plans and terms: docs/SUBSCRIPTION-MODEL.md · Pricing · sales@zyvor.dev.
Report vulnerabilities privately per SECURITY.md. More at zyvor.dev/guestkit · docs · blog.
ghcr.io/zyvorai/guestkit-mcp:1.3.1docker pull ghcr.io/zyvorai/guestkit-mcp:1.3.1:undefinedRelated Servers
io.github.zyvorai/kairon
Inspect Kairon VMs, network policy and VM-edge flows from an agent. Read-only by default.
io.github.zyvorai/netra
eBPF network observability and safe emergency control for Linux and Kubernetes.
io.github.zyvorai/paqtra
Read-only Cilium and Hubble network observability and flow investigation for Kubernetes.