For the SDK-facing parameters (BoxLite uses user-mode networking: the box’sNetworkSpec,ports) see Network access.
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 byNetworkSpec, with three modes:
ports parameter (host -> guest); the simplest form is a (host_port, guest_port) tuple:
Troubleshooting
Related pages
- Network access — the parameters and how to use them
- Storage — image cache, rootfs, and volumes
- Security and isolation — where the network boundary sits

