Skip to main content
For the SDK-facing parameters (NetworkSpec, ports) see Network access.
BoxLite uses user-mode networking: the box’s eth0 connects over vsock to a user-mode proxy on the host side, which handles NAT, DHCP, and DNS. No root required, no TUN/TAP device, and no impact on the host network. Backend implementations (source src/boxlite/src/net/): Fixed virtual subnet layout (source src/boxlite/src/net/constants.rs): Network configuration is delivered to the guest via DHCP: IP, default gateway, and DNS server (defaulting to the host resolver).

Controlling the Network from the SDK

The network is controlled by NetworkSpec, with three modes:
Port forwarding uses the ports parameter (host -> guest); the simplest form is a (host_port, guest_port) tuple:

Troubleshooting