Guest Agent
Purpose
Guest Agent — Guest Agent surface.
When to use it
- Operate Guest Agent when your job matches this surface
- Prefer dry-run / doctor before mutating repairs on disks
- Shut down the guest before write operations
How to get there
- Doc id:
guest-agent - Nav: Guest Agent → Guest Agent
- Primary interface: Build
--features agent; inject offline; proxy on host
Operate from CLI / TUI (UX)
- Build
--features agent; inject offline; proxy on host. cargo build --release --features agent --target x86_64-unknown-linux-musl.guestkit agent-inject IMAGE --agent-binary ….- Boot guest;
guestkit agent-proxy --socket … --listen 127.0.0.1:8765. curl /ping/doctor/evidence.- Or
guestkit agent-call --socket … --method guestkit.getEvidence. - Prefer
guestkit qga --execute guest-pingovervirsh qemu-agent-command(virsh-to-guestkit.md). - Empty / fail: No channel → missing virtio-serial/QGA; Windows needs virtio-serial driver.
- Success:
/pingOK; RPC returns doctor JSON.
Host needs Linux + qemu-img / losetup / qemu-nbd; mount/repair often need root. GuestKit does not invent disk contents.