qKVM in Docker beside Tailscale or NetBird
Two Compose files run qKVM in the network of a Tailscale or a NetBird container. The wall is then reached from the tailnet alone, and lists the tailnet's machines in Find KVMs.
Beside Tailscale
- Get
docker-compose.tailscale.yml. - In Tailscale's admin console (Settings > Keys), make an auth key tagged
tag:qkvm. - Put it in a file called
.envbeside the Compose file:TS_AUTHKEY=tskey-auth-.... It is needed for the first start only; take it out afterwards. - Run
docker compose -f docker-compose.tailscale.yml up -d. - Open
https://qkvm.<your tailnet>.ts.net:8787/and choose a password with the setup code fromdocker compose -f docker-compose.tailscale.yml logs qkvm.
The file starts qKVM with --https --setup-code --tls-tailscale, so browsers trust its certificate once HTTPS Certificates is on in the tailnet.
Beside NetBird
- Get
docker-compose.netbird.yml. - Make a setup key in NetBird's dashboard (Setup Keys) and put it in
.env:NB_SETUP_KEY=.... AddNB_MANAGEMENT_URL=...where you run NetBird's management yourself. - Run
docker compose -f docker-compose.netbird.yml up -d. - Open the wall at its NetBird address with the setup code from
docker compose -f docker-compose.netbird.yml logs qkvm.
For Find KVMs, qKVM asks NetBird's management API:
- In NetBird's dashboard (Team > Service Users), make a service user that may see the peers, and a token for it.
- In qKVM, open Settings > Network > NetBird > Set up.
- Enter the management API's address (
https://api.netbird.iofor NetBird's own) and the token. qKVM checks them and says how many machines it sees.
The token is kept encrypted, never shown again, sent only to the address it was entered for, and left out of every export. A management API on your own network needs the switch May be a private address.
The volumes
| Volume | Holds |
|---|---|
qkvm-data | qKVM's settings, logs and history |
qkvm-keys | The server storage key. Back it up separately from qkvm-data. |
tailscale-state, or netbird-config and netbird-state | The machine's identity in the tailnet |
Nothing is published on the machine's own network. To reach the wall from there as well, uncomment the ports lines ("8787:8787") of the tailnet container.
Updating
- qKVM:
docker compose -f <the file> pull qkvm, thendocker compose -f <the file> up -d. - Tailscale's and NetBird's images are pinned by their digest. To move one on, look up the new version's digest with
docker buildx imagetools inspect tailscale/tailscale:<version>(ornetbirdio/netbird:<version>), put the version and digest in the file, and runup -dagain.