Documentation
¶
Overview ¶
Package session is the virtle CLI's session layer over the qemu VM machinery: boot with CLI semantics, run the foreground session (the ssh-ready gate, the interactive SSH attach loop with autoprovision and retries, suspend-on-signal, stats), and the out-of-process suspend and hotplug commands.
It lives under backend/qemu because today's session implementation is qemu-machinery-bound (vsock SSH destinations, chardev readiness sockets, QMP-migration suspend), and it is deliberately transitional scaffolding: most of it is QGA-era plumbing that the virtle guest daemon (design D9) deletes — readiness becomes the daemon handshake, autoprovision becomes a host-pushed key at boot, and the residual foreground loop moves onto the public backend API. Keep this surface minimal; it is not a designed session API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hotplug ¶
Hotplug attaches or detaches a manifest-declared hotplug device on a running session, over the control socket.