All pages

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

  1. Get docker-compose.tailscale.yml.
  2. In Tailscale's admin console (Settings > Keys), make an auth key tagged tag:qkvm.
  3. Put it in a file called .env beside the Compose file: TS_AUTHKEY=tskey-auth-.... It is needed for the first start only; take it out afterwards.
  4. Run docker compose -f docker-compose.tailscale.yml up -d.
  5. Open https://qkvm.<your tailnet>.ts.net:8787/ and choose a password with the setup code from docker 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

  1. Get docker-compose.netbird.yml.
  2. Make a setup key in NetBird's dashboard (Setup Keys) and put it in .env: NB_SETUP_KEY=.... Add NB_MANAGEMENT_URL=... where you run NetBird's management yourself.
  3. Run docker compose -f docker-compose.netbird.yml up -d.
  4. 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:

  1. In NetBird's dashboard (Team > Service Users), make a service user that may see the peers, and a token for it.
  2. In qKVM, open Settings > Network > NetBird > Set up.
  3. Enter the management API's address (https://api.netbird.io for 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

VolumeHolds
qkvm-dataqKVM's settings, logs and history
qkvm-keysThe server storage key. Back it up separately from qkvm-data.
tailscale-state, or netbird-config and netbird-stateThe 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, then docker 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> (or netbirdio/netbird:<version>), put the version and digest in the file, and run up -d again.

Full reference