-
Notifications
You must be signed in to change notification settings - Fork 1
Guest Agent
hypersdk edited this page Aug 7, 2026
·
1 revision
In-guest agent (Linux + Windows path) over virtio-serial / QGA — same evidence schema and fix-plan format as offline assurance.
Deep docs: guest-agent.md · Protocol 1.3.
For the KubeVirt / Zeus packaged agent (zyvor-guest-agent), see Zeus VM Tools.
cargo build --release --features agent --no-default-features \
--target x86_64-unknown-linux-musl
# Inside guest
guestkit agent --channel virtio
# Dev without VM
guestkit agent --channel stdioguestkit agent-proxy \
--socket /var/lib/libvirt/qemu/channel/target/$VM/org.qemu.guest_agent.0 \
--listen 127.0.0.1:8765
curl http://127.0.0.1:8765/doctor
guestkit agent-call --url http://127.0.0.1:8765 …guestkit repair vm.qcow2 --fix boot --inject-agent \
--agent-binary ./target/x86_64-unknown-linux-musl/release/guestkitWindows: agent-inject --windows writes GuestKitAgent + virtio-serial driver into the SYSTEM hive (hivex / registry-write). Stock qemu-guest-agent is disabled so GuestKit owns the channel while remaining QGA-compatible for KubeVirt/libvirt.
JSON-RPC 2.0, length-prefixed frames; also accepts stock QGA {"execute":…} on the same channel. Protocol 1.3 adds rich heartbeat, telemetry, security choke points, and live migration assist.
guestkit passport emit vm.qcow2 --target kvm -o p.json \
--live-url http://127.0.0.1:8765See Passport.