Skip to content

v5.0.0 - VM Backups, Jobs, Live Migration and One-Command Updates

Latest

Choose a tag to compare

@catborise catborise released this 23 Nov 13:03
a47df0f

WebVirtCloud 5.0 is the first release since v1.2 (2021). It brings five years of work on Python 3.10–3.14 and Django 5.2 LTS: VM backups, long operations as jobs, live clone and external snapshots, migration with or without shared storage, host maintenance and balancing, tags, an audit log, a rebuilt console, API tokens, two-factor login and a reworked interface in English, Turkish and Simplified Chinese. Installations update with one command from now on.

Upgrading changes how the panel runs and keeps its settings: read Upgrading before you update.

Upgrading

  • Read first: Updating and Behavior changes. Back up the panel first; with PostgreSQL, back up that database yourself.
  • Installer and manual installations update with one command (update.sh): it stops the panel, backs it up, pulls, installs, migrates and starts it again. webvirtcloud/settings.py is now part of the code; your own values go into data/local_settings.py. On the first update, update.sh stops before changing anything and lists how your old settings.py differs from its template.
  • supervisor is replaced by systemd units (webvirt-cloud, webvirt-novncd, webvirt-socketiod, webvirt-worker, webvirt-backup.timer); computes run webvirt-gstfsd, which now needs a key. See Moving from supervisor to systemd.
  • Docker: docker compose up -d --build. The image is Ubuntu 26.04 LTS (Python 3.14, libvirt 12); keep your environment in docker-compose.override.yml (at least ALLOWED_HOSTS).
  • The consoles go through nginx on the panel's own address (/novncd/, /socket.io/): port 6080 can be closed. Requests for a host not in ALLOWED_HOSTS get 400.
  • An admin account that still has the password admin must change it at its next login. New passwords must pass Django's password validators.
  • Tested: upgrades of the last upstream installer on Debian 12, Ubuntu 24.04 and AlmaLinux 10, of the old Docker setup, and with PostgreSQL 16 kept all users, permissions, computes, VMs and logs.

Installation

  • An installer for Ubuntu 22.04/24.04/26.04, Debian 12/13, RHEL/Rocky/AlmaLinux/Oracle Linux 10, openEuler 24.03 LTS, openSUSE Leap 15.x/16.0/Tumbleweed and SLES 15, tested in CI on each family; Docker; manual steps per distribution (Installation).
  • A random first admin password; a bootstrap script for KVM hosts.

VMs

  • Long operations (create, clone, migrate, delete, snapshots, disk moves, backups, ISO upload, downloads) run as jobs the page follows; most can be cancelled, and recovery finishes them after a crash.
  • Clone a running VM; external snapshots with memory or frozen file systems; move disks between pools; migrate with or without shared storage, encrypted over TLS, with a bandwidth cap.
  • UEFI Secure Boot and TPM 2.0 for Windows 11; PCI and USB devices given to VMs; disk I/O limits; the reason a VM stopped or paused on a fault, and what a crash or hang does.
  • A one-form VM create with presets; a reviewed XML editor; cloud-init metadata and NoCloud seed disks; SSH keys and root passwords through the guest agent or gstfsd.
  • A new VNC console and an xterm.js serial console, behind nginx.

Backups

  • VM backups into a storage pool, by hand or on a daily schedule with incremental chains and weekly and monthly retention; verified, restored as a new VM, over the VM or one disk as a new volume.
  • Daily backups of the panel itself, with an optional off-site copy (restic over SFTP).

Hosts

  • Host maintenance, Bulk Migrate and Balance; the Computes page shows capacity and what wants a look.
  • Network DHCP leases, network filters, secrets, interfaces, storage pools and volumes (download, from a URL) reviewed throughout.

Users and security

  • Tags, protected VMs, quotas, an auditor permission, search by IP or MAC and an Excel VM report.
  • An audit log of who changed what, two-factor login, login lockout, API tokens and an OpenAPI 3.0 schema.
  • A strict Content Security Policy, signed console tokens, input validation and many fixes from security, API, quota, migration and crash-recovery audits.

Operations

  • Alerts by mail and webhook; /healthz for a monitor; request IDs in the logs; the panel's processes as systemd units.

Detailed notes of each step: the fork's releases v2.0.0 to v5.0.0.

Full Changelog: bb920b0...v5.0.0