Skip to main content
Expose a host Unix socket or local Windows named pipe to a sandbox over virtio-vsock. See VSock for guest connection details, platform support, and security considerations.
VSock routes are local-only and unavailable with the multi-tenant deployment profile.

Typical flow

Functions

m.WithVsock()

Append one or more guest-to-host VSock routes to the sandbox configuration.

VsockRoute

Use VsockSocketTypeDgram for a datagram route. Datagram routes are unavailable on Windows. Host paths must be absolute, and each socket type and port pair must be unique.

VsockSocketType