Install kernel headers, development tools, Rust, and WireGuard so your host can build and run dstack securely.
Good to know:
These commands assume Ubuntu 20.04+ (including 24.04).
For other distros, install the equivalent packages (e.g.dnf groupinstall "Development Tools"
on Fedora).
dstack-gateway
over HTTPS.linux-headers-$(uname -r)
– must match uname -r
; otherwise DKMS fails.build-essential
– gcc, g++, make, libc headers.wireguard
+ wireguard-tools
– encrypted overlay between VM and gateway.chrpath
, diffstat
, lz4
, xorriso
– helpers pulled in by dstack build scripts.💡 If you just upgraded your kernel and the exact header package is not yet published, reboot into an older kernel (via GRUB) whose headers exist, or wait until the mirror catches up.
rustup
so future updates are one command away:
/etc/dstack/.env
.
Variable | Reason |
---|---|
DSTACK_DOMAIN | Enables automatic HTTPS via ACME (Zero-Trust gateway). |
DSTACK_EMAIL | Required by Let’s Encrypt for expiry notices & abuse reports. |
DSTACK_API_PORT / DSTACK_UI_PORT | Separate the JSON API from the user-facing UI so you can lock one down via firewall if needed. |
systemd
servicesystemd
guarantees auto-start on boot and automatic restart on crash.
Listening on https://<DSTACK_DOMAIN>
and no errors about WireGuard or TLS.
80
and 443
(or your custom ports) on any cloud firewall.