With PostgreSQL the daily backup left the database out and only warned. It now
writes a pg_dump in its custom format as db.pgdump and fails when pg_dump is
missing or the dump fails. The Docker image ships postgresql-client; the restore
and move steps say how to put the dump back.
A running or paused VM with a VNC or SPICE console shows its screen
beside the summary (virDomainScreenshot, PNG), read again every 10 s
while the page is in view; clicking it opens the console. It is for
those who may open the console (the screen shows what the console
does) and is left out while there is none to show, also on a host whose
libvirt gives PPM. The VM list does not read screens: one a VM would
cost too much.
The Disks tab of a running VM gets "Free unused space": a job
(instance.fstrim) has the guest agent trim each mounted file system
(guest-fstrim, 30 minutes at most) and lists what each one trimmed. A
disk passes the trim to its image file only with the discard mode unmap:
the tab and the job say when no disk of the running VM has it, and where
to set it (the disk's device details, from the next start).
The VM page shows why a VM paused or stopped when nobody asked (a disk
error, a crash, a kernel panic: instances.states.REASONS), but nobody
learnt of it until they opened the page. While an alert channel is set,
the worker reads every host's VM states each minute (one call a host,
all hosts at once, 10 s at most) and queues one alert per fault; the VM
keeps the fault it was alerted for, so a fault is told once and again
only after the VM recovered.
A template installed from an ISO has no cloud-init, and the seed does
nothing there. The steps install it, clean the template and empty its
machine-id (a deleted one leaves a Debian 12 clone without a DHCP
address), then create VMs from its disk with the seed ticked. Run end
to end on AlmaLinux 8 (cloud-init 23.4) and Debian 12 (22.4) templates
without cloud-init.
Taken from a fresh panel on a test host with example VMs, users, tags,
backups and a schedule: the VM list with tags and owners, the VM page,
Computes, the host overview, the new VM form, the Logs page with
actions of three users, and the Backups page.
The pages under doc/ are split where one paragraph or list item held
several topics, so a reader finds a step by its heading:
- install.md: what a re-run keeps and replaces as a list; first login
and a lost password apart.
- compute-nodes.md: a heading per step and per connection type (SSH,
TCP, TLS), the firewall rule first, the gstfsd network warning before
its commands, the migration certificates as a list.
- configuration.md: commands in code blocks; local settings rules as a
list; one place that says how to run manage.py; the proxy layouts
apart; the health check its own heading. The security headers move to
architecture.md.
- ldap.md: one complete example for Active Directory and one for
OpenLDAP. Pasting the old page's blocks gave OpenLDAP values over the
Active Directory ones.
- backups.md: panel and VM backups as two sections; VM backups by
target, backup, restore, owners, schedules and verification.
- upgrading.md: a list of its paths, the supervisor move after the
update it precedes, and the old settings.py rules as sub-items. The
behavior changes move to behavior-changes.md.
- api.md: the token, job and error rules in one page; architecture.md
links to it.
- permissions.md: template and console-setting rules under their own
headings instead of inside the table.
- CONTRIBUTING.md: local, live KVM and Vagrant tests apart.
No command changed.
The README's features are one short line each. The installation page
lists the three ways to install with their systems, and each system's
manual steps are folded so a reader opens only theirs; the commands are
unchanged. The CI coverage moves to CONTRIBUTING.md, and moving gstfsd
off supervisor to the supervisor section of the upgrade guide.
The README had grown to 970 lines. It now keeps the introduction, the
features, a quick start, a table of the documentation pages, the
screenshots and the license. The sections moved without changes in
their text to doc/install.md, doc/compute-nodes.md, doc/configuration.md,
doc/ldap.md, doc/backups.md, doc/upgrading.md (with the behavior
changes), doc/api.md and CONTRIBUTING.md; links between them point at
the new pages. Code comments and installer messages that named a README
section name the page now.
An authorization sweep of everything added since 2026-11-09 (tags, Balance,
maintenance, Bulk Migrate, volume download, protection, disk I/O limits,
crash action, bulk power/snapshot/tag, backup targets, schedules, verify and
restores, unlock and OTP reset) as a stranger, staff, a view_instances
auditor, a flagless owner and an owner with every flag found no gap.
- the VM details of the API carry state_reason when a fault put the VM in
its state, as the VM page tells it: libvirt's state and reason codes of
one read and the reason in the request's language; null otherwise. A
script watching the API can tell a VM a full storage paused from one
paused by hand, in any language
- the bulk actions name a refused VM to whoever sees it (a view_instances
auditor too), and a bulk snapshot no longer tells one who does not see a
VM that it is a template (_visible_vms, one filter for the three)
- doc/permissions.md: creating a VM and the VM report, host devices, video,
RNG, TPM, the crash and hang action, disk I/O limits, disk moves and
protection are a superuser's, so are verifying a backup, restoring one
disk, backing up a template and the backup API; deleting a VM takes its
disk files when chosen; notes on bulk actions, the Jobs page, the address
search, API tokens and LDAP passwords
A review of every Markdown file against the code found steps that would
fail and statements that are no longer true:
- RHEL computes set up by hand enabled only virtqemud: the storage,
network and other host pages need their daemons' sockets too;
- moving to a new machine migrated without /etc/default/webvirtcloud
(a PostgreSQL panel would migrate the wrong database), and needed a
node_id an older backup may lack;
- a rollback left update.sh's marker of a stopped update, which the
next update would have gone on with;
- the manual installs' group and mode lines failed on hosts without one
of the groups or without sqlite; RHEL's CodeReady Builder repository;
- the NFS backup target was defined on the user's libvirt connection;
- the off-site restore picked a backup by name, not time;
- the features, the jobs list, the console token, the alert webhook
(ntfy does not take it), the API's submission_key, WS_* in the update,
the update's last failure, the doc/ API and app tables, permissions
of templates, protected VMs, backups and the .vv file.
An installer rerun kept WS_PORT in data/local_settings.py but pointed
nginx at that run's answer: it now takes the kept port.
Read backups from target, on a backup target's page, is a backup.import
job holding the target: through the first of its computes that reaches
the pool, it reads each manifest whose backup the panel does not list,
checks its files as a restore does (the disks at their size, the small
files by SHA-256), and adds the backup with its files, its time and, when
the panel has that VM, its VM. A manifest with a missing or changed file
is reported incomplete, not added. Nothing on the target changes. A panel
rebuilt after losing its database adds the target again, reads it, and
restores.
README: a VM backups section (what a backup holds, what is not backed
up, what a target must be, an NFS target's virsh commands). Permissions:
backups are superusers'.
A new app holds VM backups: a backup target (a storage pool on each
compute that sees it, its UUID kept to refuse a replaced pool), the
backups (kept with the VM's name and UUID when the VM row goes) and their
files. Claim keys for a target and a backup. Nothing uses them yet.
Installs with their own settings.py add "vmbackups" to INSTALLED_APPS.
nginx answers /static/ from staticfiles/ before a request reaches gunicorn,
so WhiteNoise never served a file in an installed panel. It only answered
under runserver with DEBUG off, from staticfiles/ as the last collectstatic
left it: a stale copy without the themes broke the page. The dev server
serves the sources itself with DEBUG on, or with --insecure, which the
README now says.
The datasource names the VM by the reverse DNS name of the request's
address and sends keys only when its first label is one VM's name. On
the console settings, the listen address and removing the password of
a console listening beyond localhost are a superuser's.
Only the Users page's new-user form ticks it; the signal for new users
grants change_password alone, and the grant to every user ran once, in
the migration that added the permission.
CI runs Python 3.10 to 3.14. The API's list of one compute's VMs calls
refresh_instance_database before reading, as the VM list page does; only
the list of all VMs reads the rows as they are.
phusion/baseimage brought sshd, syslog-ng, my_init and runit's per
service scripts, and an nginx log forwarder tailing a file. The image
is now ubuntu:26.04 with Ubuntu's supervisor: conf/docker holds the
start script (settings, secret key, ownership, migrations as www-data),
one supervisord.conf for the six processes, nginx's config with errors
to docker logs, the backup's cron line and the health check. A stop
signals every process at once, so the worker keeps its 60 s drain
within the 95 s grace. The same volumes and container name work as
before; README runs commands with exec -u www-data in place of
/sbin/setuser. The image goes from 805 MB to 642 MB.
The 223-line read-write lock guarded only the dict of connections, a
lookup of a few entries: readers never waited on a long writer, as the
connection is opened outside the lock. One reentrant lock does the same.
- Deleting VMs and moving disks are jobs too (Features, Behavior
changes, architecture), and the API's delete answers 202.
- Docker keeps the TLS client certificates in webvirtcloud-pki.
- The manual installation covers Ubuntu 26.04 and Debian 13, says lxml
is reused like libvirt-python, and adds the service user to the
libvirt and kvm groups, as the installer does, for a socket compute.
- Moving to a new machine starts in the clone's directory (Docker) and
copies secret_key only when the backup has it (installer); the
off-site steps run in the panel's checkout; an update's backup also
holds /etc/default/webvirtcloud and local-migrations.tar.
- A kept settings.py is rebuilt from the template instead of patched by
a list that had fallen behind (knox, axes, four middlewares).
- gstfsd on 127.0.0.1 serves a panel that adds its compute as localhost;
LOGIN_TRUSTED_PROXIES matters only for a proxy on another machine;
socket computes reach a localhost console too.
- New passwords pass Django's validators (Behavior changes).
- permissions: a VM an administrator paused stays paused for owners.
- architecture: nginx listens on 80, on 443 only with your TLS.
- Running tests: the libvirt layer's tests are in vrtManager/tests.
It described Django 4.2 on Python 3.11, a distribution list the
installer does not support and no job worker. Now: the stack, the
processes and their units, what each app and vrtManager module holds,
how jobs claim, recover and share a host, and the API's routes; all
read from the code.
Behavior changes held one note per past fix; it keeps what an update
changes for operators and users. Migration is a section of bullets.
Docker cannot keep options that exist only in settings.py (LDAP,
OTP_ENABLED, LOGIN_TRUSTED_PROXIES): the README shows how to mount
one. The OpenLDAP examples use OpenLDAP names, the variables table
has ADMIN_USERNAME and ADMIN_PASSWORD, Contents lists every section,
and features name backups and the languages.
Removed: screenshots of the 2020 interface, the Gitpod badge and its
TODO-only config, and doc/readme.md, which held one word.
The console pages connect to /novncd/ on the address, scheme and port the
page itself was loaded from; nginx proxies it to novncd, which listens on
the loopback only. There is nothing to configure: the console works on
HTTPS (wss), behind another proxy and on any published port.
Before, the page connected to WS_PUBLIC_HOST/PORT/PATH, port 6080 by
default: straight to novncd, past nginx and without TLS, so an HTTPS panel
and a Docker container published on another port had no console until the
public port was set by hand, and novncd listened on every interface.
Gone: WS_PUBLIC_PORT, WS_PUBLIC_HOST, WS_PUBLIC_PATH and WS_CERT, the
installer's two public console questions and its 6080 firewall rule, the
Docker image's WS_PUBLIC_PORT and its init script lines, the manual
install's firewall rule for 6080 and nginx's unused /websockify location.
WS_HOST defaults to 127.0.0.1. A VM with a QEMU websocket port is still
reached on that port of the panel's host name (left for a separate
decision).
The installer and the manual installation install four systemd units
(webvirt-cloud, webvirt-novncd, webvirt-socketiod, webvirt-worker) that
run as the web server's user with absolute paths and read
/etc/default/webvirtcloud. gunicorn, socketiod and the worker stop with
KillMode=mixed, so they wind down their own children. supervisor, its
installer code and the contributed systemd files go; the README gets
the update, rollback and a one-time move from supervisor, and the
installer refuses to run over a supervisor install. Docker keeps runit;
novncd's runit script is the one-line form of the others.
Power cycle force-stopped and started a template, which power on refuses.
A non-staff owner with is_delete could delete a template that the
template rule otherwise leaves to superusers and staff owners;
get_instance(perm_type="delete") now refuses it, and the page offers
Destroy by the same rule.
The documented rule held only for snapshots: an owner with is_change could
still resize a template, set its root password and SSH keys, change its
options and console settings. get_instance(perm_type="change") now
refuses a template to owners who are not staff, which covers every change
view and the API; the per-view snapshot checks it replaces are removed,
and the page offers those controls by the same rule. Viewing, the console,
power (a no-op on a template) and cloning are unchanged.
- The serial console cannot work until socketiod is rewritten (it does
not understand the signed console token), so the README no longer
describes how to enable it; only the hardening line for existing
installs is kept. The reverse-proxy example no longer sets
SOCKETIO_PUBLIC_PORT.
- Move the users, roles and permissions reference to doc/permissions.md
and link it from the README.
- Remove obsolete spice-html5 static assets and SPICE console templates
- Restrict default console types to VNC with migration 0012
- Filter out SPICE in VM creation form and backend capabilities
- Return friendly deprecation notice if legacy VM is opened with SPICE
- Clean up docs, architecture references, and libvirt-bootstrap scripts