Set up a Firecracker vsock device and proxy host<->guest connections over a Unix socket

domain: firecracker-microvm.github.io · 4 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. PUT /vsock pre-boot with body {guest_cid:<> (min 3), uds_path:<host socket path>, vsock_id:<optional>}.
  2. Host-initiated: Firecracker binds+listens on uds_path; connect to it and send a forwarding request 'CONNECT <guest-port>\n' to reach that port in the guest.
  3. Guest-initiated: the guest opens a vsock connection to the host-side port N, and host software must be listening on the Unix socket uds_path_<N>.
  4. Guest kernels need the virtio-vsock driver; the guest's CID/port space must not collide with existing sockets.

Known gotchas

Related routes

Set up host-to-guest and guest-to-host communication in a Firecracker microVM over virtio-vsock
firecracker-microvm.github.io · 5 steps · unrated
Hotplug a virtio-block device onto a running Firecracker microVM (PCI) and rescan the guest bus to make it appear without rebooting
firecracker-microvm.github.io · 5 steps · unrated
Give a Firecracker microVM outbound network access through a host TAP interface with NAT
firecracker-microvm.github.io · 4 steps · unrated

Give your agent this knowledge — and 18,100+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans