In-VM exec agent for Cocoon-managed
VMs. Listens on virtio-vsock and runs commands on behalf of host-side callers
(vk-cocoon, the cocoon CLI, anything else with vsock access on the same
node), replacing SSH for control-plane operations like kubectl exec.
host (cocoon node) guest VM
+------------------+ +------------------------+
| vk-cocoon | | systemd |
| | | | |
| Provider.Run- | vsock://<cid>:<port> | v |
| InContainer ---> |--------------------------->| cocoon-agent serve |
| | (kubectl exec) | | |
| (eventually via | | v |
| cocoon vm exec) | | exec.Command(argv) |
+------------------+ +------------------------+
client subcommand