Serve the web console

§ 1Purpose

Run vmlab-web and manage a lab from the browser instead of the CLI.

§ 2Prerequisites

§ 3Flowchart

1. Launch vmlab-web2. Open the console and pick a lab3. Work in theconsole

§ 4Steps

§ 4.11

§ 4.2Launch vmlab-web

console
$ cd my-lab/                      # the directory holding vmlab.wcl
$ vmlab-web --up                  # local-only on http://127.0.0.1:7878, lab boots in the background

$ vmlab-web --bind 0.0.0.0 --user admin \
    --password-hash "$VMLAB_WEB_PASSWORD_HASH"     # exposed on the network: login required

Secure default

A non-loopback bind with no credentials is refused at startup; pass --no-auth only when something else (a VPN, an ingress proxy with its own auth) guards the port. Behind a reverse proxy add --trust-proxy so login rate-limiting sees real client addresses.

Start vmlab-web from the lab directory (flags); --up brings that lab up in the background while the server starts serving immediately. In the official container image this is the default command — the compose stack maps :7878 and feeds the auth env vars.

§ 4.32

§ 4.4Open the console and pick a lab

Browse to the printed URL and sign in if prompted. The topbar's lab switcher lists running and managed labs — pick one, or New lab… to scaffold a fresh managed lab, choosing an *empty* lab or a *starter* one (a lan segment plus an Alpine VM from the public registry) that boots as-is. Opening the working-directory lab shows its overview: machine cards, power controls, events, and launch cards for declared guest web pages.

§ 4.53

§ 4.6Work in the console

Edit topology in the lab editor's Overview (designer canvas + inspector; edits autosave, no Save button), files in Files — where playbook.wcl opens in its own visual designer — and watch Logs. Machine pages give the live desktop (Console), an agent shell (Terminal), guest metrics and clipboard; the Templates page builds, checks and publishes templates with live build consoles; Playbook tabs run config-weave check/apply. The tour maps every tab.

Verification

The overview shows the lab's machines cycling to ready; a machine page's Console tab shows the live desktop, and its Terminal tab opens an agent shell.