Skip to main content

Module nspawn

Module nspawn 

Source
Expand description

NspawnBackend — systemd-nspawn based sandbox isolation

Runs each sandbox as a lightweight container via systemd-nspawn, bind-mounting the host root filesystem (--directory=/) with ephemeral /tmp and /run. Provides network isolation via --network-veth and GPU pass-through via device bind-mounts.

Service discovery uses host-side IPC paths namespaced by HYPRSTREAM_INSTANCE rather than network IP, avoiding timing issues with veth IP assignment.

Structs§

NspawnBackend
systemd-nspawn sandbox backend.
NspawnConfig
Configuration for the nspawn backend.
NspawnHandle
Backend-specific state stored on each PodSandbox.