panel
Launch a local operator panel for the assess → plan → verify loop. It binds to loopback only and never applies. The panel never takes a seat: write plan and verify go on only for a VM that already holds one (see Write plan and verify spend no seat). They record the same usage events as the CLI, and verify does not meter.
vrtmv panel # http://127.0.0.1:8766/#token=…
vrtmv panel --port 9000
vrtmv panel --trust-host fleet.vrtmv.com --out /var/lib/vrtmv/fleet
| Flag | Purpose |
|---|---|
--port <n> | Port to bind on 127.0.0.1 (default 8766). |
--trust-host <host> | Accept one extra Host header besides localhost. Set only when the panel runs behind a trusted, authenticating reverse proxy — the panel still binds 127.0.0.1, so the proxy stays the only reachable front and the auth boundary. That host gets the read views only: a job request through it is refused, with or without the token (see below). Omitted keeps the strict loopback-only guard. |
--out <dir> | Default fleet directory the read views use when a request carries no ?out=, so a hosted single-fleet dashboard shows its fleet without an out= in every URL. Omitted keeps the per-request behaviour. |
As of v1.2.1 the panel serves the redesigned Fleet Management Console: one shared theme across its views, with a light / dark / auto toggle that remembers your choice. The views and their data are unchanged — only the presentation. Both new flags default off and are for running the console behind a trusted proxy; vrtmv panel --port N is unchanged.
This is additive to ui, which remains the one-shot migrate client.
The panel is the browser form of the console loop:
assess a source, write a plan, verify a rebuild. After write-plan it shows the
same apply instructions the console prints (ansible-playbook role path,
vrtmv data for carry). Apply stays on run; the panel never runs it.
The server listens only on the loopback interface and rejects a non-local Host header, a cross-origin POST, a non-JSON Content-Type, and OPTIONS. It is intended for interactive use on the analysis host, not as a shared service.
The job token
Assess, preflight, write plan and verify are jobs, and a job can read a source
over SSH from the panel's host. Each run of vrtmv panel makes a random token
and prints it in its start line, as the end of the URL:
vrtmv panel → http://127.0.0.1:8766/#token=3f9c… (Ctrl-C to stop)
Open that URL. The page keeps the token for its tab, takes it out of the address
bar, and sends it with every job request. The panel never serves the token in a
page, so a tab opened at the bare http://127.0.0.1:8766 shows the views but
cannot start a job: it says to open the printed URL. The token is new on each
start; after a restart, open the new URL.
A client that is not a browser sends the token as a header:
curl -H 'X-Vrtmv-Panel-Token: 3f9c…' -H 'Content-Type: application/json' \
-d '{"kind":"assess","mode":"root","path":"/mnt/src"}' http://127.0.0.1:8766/api/jobs
A job request (starting a job, or reading one) without the right token gets
403, with or without an Origin header. Jobs are also loopback-only: a request
whose Host is the --trust-host name is refused, token or not, so a console
behind a proxy shows the read views and never scans, connects over SSH or
writes a plan. Anyone who can read the panel's output can start jobs on
loopback; keep its terminal or service log private.
Write plan and verify spend no seat
Before write plan or verify, the panel asks the Vrtmv authorization service
about the VM, as vrtmv migrate does (vrtmv verify does not ask). Unlike the
CLI, it goes on only when the answer
says proceed, that the VM already holds a seat (or that the migration takes
none, for a free target), and that the account has no billing hold: past due,
unpaid, suspended or canceled. Anything else stops the job, with the reason.
Write plan reads the source and builds the plan first, because the VM's
fingerprint comes from it, and stops before it writes a file. Verify stops
before it reads the rebuilt host. The reasons are:
- a VM that holds no seat. Seat it with
license, or runmigrateorverifyon the CLI; - a billing hold on the account;
- no answer from the service, an answer this build does not know, or an API that does not say whether the VM holds a seat. The CLI goes on in those cases; the panel does not;
- a source with no stable fingerprint, or, for verify, an attestation that names none, because the panel cannot ask about it.
Verify asks about the VM the attestation names, before it reads the rebuilt
host, and records its usage after the verdict, as vrtmv verify does. The
panel runs one write plan or verify at a time: a second one started while the
first runs is refused with 409, and assess and preflight are not held back.
Assess, preflight or migrate a fleet host
The Hosts and Pipeline views give each host row or card an assess, a
preflight and a migrate button. They run as jobs, under the same token and loopback rule,
on the source the readiness run read for that host. vrtmv readiness --out <dir>
writes fleet-sources.json beside fleet-readiness.json: each host's manifest
name, its SSH destination or the absolute path of its root or image, the sudo
the run used, and its target. A button sends only the host name and the
directory; the panel takes the source and target from that file, and refuses a
request that sends its own. A host the file does not name, or names twice, has
its buttons disabled, and so does a tab without the token.
curl -H 'X-Vrtmv-Panel-Token: 3f9c…' -H 'Content-Type: application/json' \
-d '{"kind":"preflight","host":"web-01","fleet_out":"/var/lib/vrtmv/fleet"}' \
http://127.0.0.1:8766/api/jobs
Migrate writes the plan to <fleet directory>/<host>/, the role and
vrtmv-attestation.json, where the Pipeline view reads it, so the card moves
to migrate. The page asks before it starts, and the job spends no seat, as
above. A request on a host takes no out of its own, and a host whose name is
not a plain directory name cannot be migrated this way. Verify is not offered
on a host: it reads the rebuilt host, and the readiness run recorded the
source, so verify from the panel's own page with the rebuilt host.
fleet-sources.json names SSH logins and paths, so keep it with the fleet
directory and do not hand it on with the readiness report.
New to vrtmv? Sign up free for 10 migrations, or get a free assessment: run it on one hard host and we review the parity report with you.