vmsilo/rootfs-nixos
Davíð Steinn Geirsson 22f632df88 fix: vm-run console commands not returning output with cloud-hypervisor
Cloud-hypervisor's hybrid vsock (Unix socket + CONNECT protocol) doesn't
support half-close. When recv_pkt() gets a 0-byte read from shutdown(SHUT_WR),
it sends VSOCK_OP_SHUTDOWN with both RCV|SEND flags, tearing down the entire
connection and killing the response path.

Two fixes:
- Remove s.shutdown(SHUT_WR) from the vsock proxy
- Make guest command handler self-terminating: head -1 | bash. The pipe
  gives bash a clean EOF after one command line, so it no longer depends
  on vsock half-close to exit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 17:10:10 +00:00
..
guest fix: vm-run console commands not returning output with cloud-hypervisor 2026-03-22 17:10:10 +00:00
configuration.nix feat: replace crosvm USB passthrough with usbip-over-vsock 2026-03-22 16:15:27 +00:00
default.nix feat: replace crosvm USB passthrough with usbip-over-vsock 2026-03-22 16:15:27 +00:00
make-erofs-image.nix Replace ext4+qcow2 rootfs with erofs 2026-02-18 18:21:33 +00:00