Repository avatar
Multimedia
v1.3.1
active

guestkit

io.github.zyvorai/guestkit

Read-only evidence and boot-readiness tools for one VM disk image, offline.

Documentation

GuestKit

CI crates.io PyPI License: Zyvor Production 1.0 Rust GHCR Docs

Book a demo 30-day PoC Quickstart

GuestKit - Know it will boot. Before you power it on.

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

ReleaseWhat changed
1.3.0Supply chain and assurance: guestkit cve (OpenVEX/CSAF, EPSS/KEV, offline DB), `attest create
1.2.11Security 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.10Disk 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.5Offline 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.5Online snapshots freeze the filesystem through the privileged helper, so KubeVirt snapshots of PVC-backed VMs work with the unprivileged agent
1.2.5Linux 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.2Web Image Vault reaches TUI parity: inventory tabs, Assurance (plan, passport, repair preview and gated apply), Profiles and Files
1.2.0guestkit-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-onAn offline doctor score (0–100) with a root-cause chain for each blocker
Each migration relies on scripts and tribal knowledgeStructured plans in JSON/YAML and a CI gate on the same score
Cutover weekend is full of surprisesHypervisor-aware migrate-plan and day-0 packs, for 8 targets
There is no audit trail of what was checkedA signed Cutover Passport per disk
Repairs are hand edits inside a mounted imageFix plans you can read, applied with backups and rollback
Migration order is guessed by handfleet 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

Capabilities at a glance: Assure, Repair, Certify, Surfaces


See it live

GuestKit web console — Assurance panel showing a boot score of 78 with ranked findings

Assurance: doctor score 78, a REVIEW decision, and ranked findings with a fix command each.

GuestKit web console — Summary with OS identity and inventory counts

Summary: OS identity and inventory counts from inspect.

GuestKit web console — Image Vault landing page

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

Read the disk offline; decide before power-on

  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

GoalDocument
Docs sitezyvorai.github.io/zyvor-guestkit
Docs homedocs/README.md · INDEX
DevOps runbooksdocs/devops
Feature guideguestkit-user-feature-guide.md
h2kvm integrationh2kvm integration
QEMU / VirtIO runtimeqemu-runtime.md
Dump virsh → GuestKitvirsh-to-guestkit.md
Architectureoverview

The complete map, with the changelog and roadmap, is in docs/documentation-map.md.

Go deeper

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:

AreaStatus
Pure-Rust parsing: partition tables, filesystem signatures, evidence schema, boot engine, assurance APIsShipped
Web UI (deploy/ui: inventory, Assurance, Profiles, Files), GHCR zyvor-uiShipped
In-process QCOW2 readPartial: format detection and selective reads; full cluster walk defers to qemu-nbd
File access inside guestsThrough loop devices / qemu-nbd and a host mount, not in-process ext4/NTFS parsers
guestkit shrinkNarrow 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 LSMOpt-in: gated by capabilities.ebpf, off by default

Part of the Zyvor stack

ProductRole next to GuestKit
GuestKitOffline VM assurance: boot score, repair, Cutover Passport
TransivaExports VMs out of the source hypervisor, upstream of GuestKit
h2kvmConverts and deploys to KVM; uses the GuestKit Python package for offline fixes
ZorviaKubeVirt VM platform to operate the migrated VMs
FluxVMRuns and manages VMs; production run, network and TTL sit there, not in guestkit vm

→ zyvor.dev


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.


Know every disk will boot before cutover weekend

Book a demo 30-day PoC Pricing Contact sales Star on GitHub