Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vm-reactor:start [13.11.2026 17:50] – VM Reactor 0.49 and complete 21-chapter handbook ariavm-reactor:start [14.11.2026 19:26] (current) – VM Reactor 0.50: new screenshots from the verified 0.50 build aria
Line 12: Line 12:
  
 <WRAP centeralign> <WRAP centeralign>
-**VM Reactor 0.49 – Technical Preview** · Debian 13 (trixie) and Debian 14 (forky) · amd64 and arm64 · free software (GPL-3+) · package ''vm-reactor'' in the Stratum repository (component //contrib//) +**VM Reactor 0.50** · Debian 13 (trixie) and Debian 14 (forky) · amd64 and arm64 · free software (GPL-3+) · package ''vm-reactor'' in the Stratum repository (component //contrib//)
-</WRAP> +
- +
-<WRAP center round important 80%> +
-**Technical preview.** VM Reactor is new and still changing: features, settings and the web interface may change from one version to the next. Try it, test it and tell us what you think – but keep backups of your guests and do not rely on it alone for production systems yet.+
 </WRAP> </WRAP>
  
 <WRAP center round info 80%> <WRAP center round info 80%>
 **A contrib package of the Stratum repository.** VM Reactor is published in the component //contrib// of the Stratum repository, next to the Stratum modules in //main//. It builds on Stratum – it needs ''stratum-core'' and works together with the Stratum modules – but it enjoys a certain independence from them: its own versions and release cycle, its own web interface, its own handbook and this page of its own. **A contrib package of the Stratum repository.** VM Reactor is published in the component //contrib// of the Stratum repository, next to the Stratum modules in //main//. It builds on Stratum – it needs ''stratum-core'' and works together with the Stratum modules – but it enjoys a certain independence from them: its own versions and release cycle, its own web interface, its own handbook and this page of its own.
 +</WRAP>
 +
 +<WRAP center round tip 80%>
 +**New in VM Reactor 0.50:** shared NFS with exclusive guest leases and no-copy migrations, host maintenance and evacuation, richer paired-host status on **Migrations**, and full backup integrity verification with optional weekly schedules.
 </WRAP> </WRAP>
  
Line 50: Line 50:
 <col> <col>
 <card header="Storage" subtitle="Directory · LVM thin pool · NFS share" shadow="small"> <card header="Storage" subtitle="Directory · LVM thin pool · NFS share" shadow="small">
-Guests, ISO images, LXC templates and backups in the storage you choose: a directory (on btrfs with subvolumes and snapshots), an LVM thin pool on one or more disks or on an md RAID array – RAID 0, 1, 5, 6 or 10, thin volumes, instant snapshots – or an NFS share. Disks are added, removed and replaced while the guests keep running; the whole block layer is done by ''stratum-storage''.+Guests, ISO images, LXC templates and backups in the storage you choose: a directory (on btrfs with subvolumes and snapshots), an LVM thin pool on one or more disks or on an md RAID array – RAID 0, 1, 5, 6 or 10, thin volumes, instant snapshots – or an NFS share. An NFS share can be marked as shared between paired VM Reactor hosts, so verified migrations reuse the same guest disks instead of copying them. Disks are added, removed and replaced while the guests keep running; the block layer is done by ''stratum-storage'', while VM Reactor manages NFS directly.
 </card> </card>
 </col> </col>
Line 60: Line 60:
 <col> <col>
 <card header="Protection" subtitle="firewall · backups · watchdog" shadow="small"> <card header="Protection" subtitle="firewall · backups · watchdog" shadow="small">
-A firewall for every guest (nftables, anti-spoofing), backups as one file each – manual or scheduled, here or on another host, with retention rules and protected backups, restore under a new ID – and a watchdog that restarts what has failed.+A firewall for every guest (nftables, anti-spoofing), backups as one file each – manual or scheduled, here or on another host, with retention rules, protected backups and SHA-256/archive verification – and a watchdog that restarts what has failed.
 </card> </card>
 </col> </col>
Line 85: Line 85:
 <grid cols="1fr 1fr"> <grid cols="1fr 1fr">
 <col> <col>
-<card header="Migrations" subtitle="paired hosts · offline · live" shadow="small"> +<card header="Migrations" subtitle="paired hosts · shared NFS · maintenance" shadow="small"> 
-Hosts are paired once with a one-time code – over the LAN, WireGuard or any route. A guest moves to another host **offline** (every type: shut down, copied, started there) or **live** (a running machine keeps running while its memory and disks are copied). Checks first, removed here only when it runs there.+Hosts are paired once with a one-time code – over the LAN, WireGuard or any route. Their cards show version, architecture, guest counts, maintenance state and shared-storage compatibility. Guests move offline or live; on verified shared NFS the existing disks are reused instead of copied. Maintenance mode blocks new starts and migration targets and can evacuate guests to a paired host.
 </card> </card>
 </col> </col>
 <col> <col>
-<card header="Backups on another host" subtitle="schedules · retention · fetch back" shadow="small"> +<card header="Verified backups" subtitle="SHA-256 · archive · qcow2" shadow="small"> 
-A storage of a paired host is a backup target like any other – in **Back up now** and in schedules, with the retention rules applied there. The Backups page lists the backups of this host on every paired host; one click fetches a backup back to restore it here.+Backups keep a SHA-256 baseline and can be verified manually or on a low-load weekly schedule. VM Reactor reads the complete archive, validates its manifest and declared disks, rejects unsafe archive entries and checks qcow2 images. Damaged backups raise a notification and are never removed automatically.
 </card> </card>
 </col> </col>
Line 134: Line 134:
 </col> </col>
 </grid> </grid>
 +
 +<WRAP centeralign>
 +{{vm-reactor:storage-shared-nfs.png?960&nolink|Shared NFS storage}}
 +
 +//Storage – an NFS share: **Shared between VM Reactor hosts** marks the export, verifies it on the paired host and enables migration without copying guest disks.//
 +</WRAP>
  
 <grid cols="1fr 1fr"> <grid cols="1fr 1fr">
Line 185: Line 191:
 </card> </card>
  
-APT brings everything VM Reactor needs from Debian – libvirt and QEMU, LXC, nftables, dnsmasq, noVNC – together with the Stratum modules it depends on: ''stratum-storage'' for the block layer, ''stratum-memory'' for the memory setup, ''stratum-firewall'', ''stratum-security'', ''stratum-watchdog'', ''stratum-software'' and ''stratum-wireguard''. The installation asks one question – **Install Docker from Docker's repository?** (yes by default): VM Reactor then sets up Docker's key and repository and installs Docker as soon as APT has finished, as a task you can follow under **Tasks**. At the end, the installation prints the address of the web interface and where the first password is:+APT brings everything VM Reactor needs from Debian – libvirt and QEMU, LXC, nftables, dnsmasq, noVNC – together with the Stratum modules it depends on: ''stratum-storage'' for the block layer, ''stratum-memory'' for the memory setup, ''stratum-firewall'', ''stratum-security'', ''stratum-watchdog'' and ''stratum-software''. The recommended, optional package ''stratum-wireguard'' adds WireGuard mesh integration. The installation asks one question – **Install Docker from Docker's repository?** (yes by default): VM Reactor then sets up Docker's key and repository and installs Docker as soon as APT has finished, as a task you can follow under **Tasks**. At the end, the installation prints the address of the web interface and where the first password is:
  
 <card header="Output" shadow="small"> <card header="Output" shadow="small">
Line 270: Line 276:
   * **Directory** – any mounted directory: a second disk, an existing btrfs file system or an NFS share the host mounts itself. VM Reactor recognises the file system: on btrfs the guests get subvolumes and snapshots, on an NFS share the storage is offline while the share is not there.   * **Directory** – any mounted directory: a second disk, an existing btrfs file system or an NFS share the host mounts itself. VM Reactor recognises the file system: on btrfs the guests get subvolumes and snapshots, on an NFS share the storage is offline while the share is not there.
   * **LVM thin pool** – a new thin pool on one or more empty disks (or an existing one such as ''pve/data''): with **RAID 0, 1, 5, 6 or 10** an md array is built first and the pool sits on it, without RAID the disks are linear and one failed disk loses the pool. Thin volumes for disks of machines and file systems of containers, instant snapshots; disks are added, removed and replaced later, also a failed one. A thin pool cannot shrink – to take a disk out, the other disks need room for its data. The volume group, the pool, the volumes, the file systems, the mounts, the snapshots and the arrays are made by ''stratum-storage'', which prints a plan first and verifies the result.   * **LVM thin pool** – a new thin pool on one or more empty disks (or an existing one such as ''pve/data''): with **RAID 0, 1, 5, 6 or 10** an md array is built first and the pool sits on it, without RAID the disks are linear and one failed disk loses the pool. Thin volumes for disks of machines and file systems of containers, instant snapshots; disks are added, removed and replaced later, also a failed one. A thin pool cannot shrink – to take a disk out, the other disks need room for its data. The volume group, the pool, the volumes, the file systems, the mounts, the snapshots and the arrays are made by ''stratum-storage'', which prints a plan first and verifies the result.
-  * **NFS share** – an export (''server:/path''), mounted by VM Reactor through ''/etc/fstab''; the server must answer on port 2049.+  * **NFS share** – an export (''server:/path''), mounted by VM Reactor through ''/etc/fstab''; the server must answer on port 2049. **Shared between VM Reactor hosts** writes an identity marker to the export, verifies that paired hosts see the same storage and enables no-copy migration. A per-guest lease prevents two hosts from starting the same shared disks.
  
 <card header="Terminal — root@host" shadow="large"> <card header="Terminal — root@host" shadow="large">
Line 299: Line 305:
 </card> </card>
  
-A backup is one file in the backup storage; it can be exported, copied to another host and imported there. **Backups → Schedules** runs backups by itself – on the days and at the time you choose, for all guests or a list. **Retention rules** decide which backups stay: the last N, one per day, week, month or year for N periods, and a maximum age. A backup stays when any rule keeps it; the newest backup of a guest is never removed, and **protected** backups (lock) are never removed at all. The rules can be previewed before they are saved, manual and imported backups have rules of their own (off by default), and every removal is written to the audit log. A **storage of a paired host** (''peer:<host>:<storage>'') can be chosen in **Back up now** and in schedules: the backup is made here, copied there and the retention rules of the schedule run there; the Backups page shows the backups of this host on each paired host (**Fetch here** copies one back to restore it) and the backups other hosts keep here. **Clean up now** applies the configured rules – or rules of its own for this one clean-up – to all, the scheduled or the manual and imported backups, with a live preview that names for every backup the rule that keeps it; the top of the page shows the state, the last backup, the next scheduled run and the total size.+A backup is one file in the backup storage; it can be exported, copied to another host and imported there. New backups store a SHA-256 sidecar and verification baseline; existing backups receive their baseline on the first verification. **Verify now** reads the complete archive, validates safe members, manifest, configuration and declared disks, and runs ''qemu-img check'' for qcow2 images. Weekly verification can be scheduled for a chosen day and time with a read-rate limit; failed verification notifies the administrator but never deletes the backup. **Backups → Schedules** runs backups by itself – on the days and at the time you choose, for all guests or a list. **Retention rules** decide which backups stay: the last N, one per day, week, month or year for N periods, and a maximum age. A backup stays when any rule keeps it; the newest backup of a guest is never removed, and **protected** backups (lock) are never removed at all. The rules can be previewed before they are saved, manual and imported backups have rules of their own (off by default), and every removal is written to the audit log. A **storage of a paired host** (''peer:<host>:<storage>'') can be chosen in **Back up now** and in schedules: the backup is made here, copied there and the retention rules of the schedule run there; the Backups page shows the backups of this host on each paired host (**Fetch here** copies one back to restore it) and the backups other hosts keep here. **Clean up now** applies the configured rules – or rules of its own for this one clean-up – to all, the scheduled or the manual and imported backups, with a live preview that names for every backup the rule that keeps it; the top of the page shows the state, the last backup, the next scheduled run and the total size.
  
 ==== Migrations ==== ==== Migrations ====
  
-**Migrations** (main menu, Operations) moves guests between VM Reactor hosts.+**Migrations** (main menu, Operations) moves guests between VM Reactor hosts and presents their current state: online status, version, architecture, memory, guest counts, maintenance state, storage availability and shared-NFS compatibility.
  
   - **Pair the hosts once.** On the first host: **Pairing code** – a code valid for 15 minutes, with the address and the certificate of the host. On the second host: **Pair a host**, enter the address and the code. The hosts then trust each other: the web interface of the other host with its certificate pinned and a shared secret (''/etc/vm-reactor/peers.json''), and SSH as root with a key of VM Reactor, accepted only from the address of the other host – libvirt needs it for live migrations. **Unpair** removes all of it on both hosts.   - **Pair the hosts once.** On the first host: **Pairing code** – a code valid for 15 minutes, with the address and the certificate of the host. On the second host: **Pair a host**, enter the address and the code. The hosts then trust each other: the web interface of the other host with its certificate pinned and a shared secret (''/etc/vm-reactor/peers.json''), and SSH as root with a key of VM Reactor, accepted only from the address of the other host – libvirt needs it for live migrations. **Unpair** removes all of it on both hosts.
-  - **Migrate.** Choose the guest, the host and the storage there, then **Check**: storage and free space, the ID, the network, versions, processor and SSH. A guest keeps its ID when it is free there; its MAC address, published ports and firewall go along, a guest in the NAT network gets an address of the NAT network there. The guest is removed here only when it runs there; its backups stay here.+  - **Migrate.** Choose the guest, the host and the storage there, then **Check**: storage and free space, the ID, the network, versions, processor, SSH and shared-storage identity. A guest keeps its ID when it is free there; on shared NFS the same ID is required. Its MAC address, published ports and firewall go along, and a guest in the NAT network gets an address of the NAT network there. The guest is removed here only when it runs there; its backups stay here. 
 +  - **Maintenance.** Maintenance mode refuses ordinary guest starts, skips autostart and watchdog restarts, and excludes the host as a migration target. **Evacuate guests** moves the guests sequentially to a selected paired host.
  
 ^ Mode ^ Guests ^ How ^ ^ Mode ^ Guests ^ How ^
-| **Offline** | machines, containers, applications | shut down, backed up, copied (checksum), restored and started there | +| **Offline** | machines, containers, applications | ordinary storage: shut down, back up, copy (checksum), restore and start there; verified shared NFS: transfer configuration and firewall state only, keep the existing disks | 
-| **Live** | running machines (KVM) | ''virsh migrate --live --copy-storage-all'': memory and disks are copied while the machine runs, the pause at the end is short; the target storage is a directory or NFS storage. Needs the same or a newer QEMU there (between major versions some device states may not load – the machine then keeps running here), the same processor model when KVM uses the host processor, and the ports ''49152''–''49215'' (opened for the other host only while the migration runs). |+| **Live** | running machines (KVM) | ordinary storage uses ''virsh migrate --live --copy-storage-all''; verified shared NFS omits disk copying and transfers runtime state and memory only. Needs the same or a newer QEMU there, a compatible processor model and ports ''49152''–''49215''. Exclusive guest leases are handed over before the target can run. |
  
 <code bash> <code bash>
Line 340: Line 347:
 ==== Start, shutdown, watchdog ==== ==== Start, shutdown, watchdog ====
  
-  * **Start with the host**: guests with autostart start in their **start order** with delays (''vm-reactor-guests.service''); at host shutdown they are shut down in reverse order, each with a timeout (''SHUTDOWN_TIMEOUT''). +  * **Start with the host**: guests with autostart start in their **start order** with delays (''vm-reactor-guests.service''); at host shutdown they are shut down in reverse order, each with a timeout (''SHUTDOWN_TIMEOUT''). In maintenance mode autostart is skipped. 
-  * **Watchdog**: every ''WATCHDOG_INTERVAL'' seconds it checks the components (libvirt, LXC, Docker, the NAT network, the firewall rules, the storages) and the guests. A guest that should run but stopped or crashed is started again when its option //restart// is on – at most three times an hour; a machine whose guest agent stops answering is reset. With ''stratum-watchdog'', VM Reactor itself is watched too.+  * **Watchdog**: every ''WATCHDOG_INTERVAL'' seconds it checks the components (libvirt, LXC, Docker, the NAT network, the firewall rules, the storages) and the guests. A guest that should run but stopped or crashed is started again when its option //restart// is on – at most three times an hour; a machine whose guest agent stops answering is reset. Maintenance mode suppresses these guest restarts. With ''stratum-watchdog'', VM Reactor itself is watched too.
   * **Memory** (main menu): compression (zram with zstd or lz4 and the recommended kernel values for a hypervisor), deduplication (ksm with ''ksmtuned''; ksm belongs to the physical host – inside a virtual machine ''ksmtuned'' does not start), ballooning (virtio-balloon: free page reporting and an automatic balloon that never takes a machine below its minimum memory – half its memory by default, //Hardware//), and swapping as the last reserve. The settings and system actions are provided by ''stratum-memory'' with the computer type //VM Reactor host//; ''vm-reactor memory-defaults --force'' applies the recommended values again.   * **Memory** (main menu): compression (zram with zstd or lz4 and the recommended kernel values for a hypervisor), deduplication (ksm with ''ksmtuned''; ksm belongs to the physical host – inside a virtual machine ''ksmtuned'' does not start), ballooning (virtio-balloon: free page reporting and an automatic balloon that never takes a machine below its minimum memory – half its memory by default, //Hardware//), and swapping as the last reserve. The settings and system actions are provided by ''stratum-memory'' with the computer type //VM Reactor host//; ''vm-reactor memory-defaults --force'' applies the recommended values again.
  
Line 354: Line 361:
 | stratum-watchdog | watches VM Reactor itself | automatic | | stratum-watchdog | watches VM Reactor itself | automatic |
 | stratum-software | package lists and unattended upgrades of the host | – | | stratum-software | package lists and unattended upgrades of the host | – |
-| stratum-support, stratum-license | remote support and the licence – from the command line and the Control Desk; they are deliberately not part of the web interface | – | 
 | stratum-ansible | dynamic inventory of the machines and containers | ''vm-reactor inventory'' | | stratum-ansible | dynamic inventory of the machines and containers | ''vm-reactor inventory'' |
  
Line 394: Line 400:
  
 <WRAP center round info 80%> <WRAP center round info 80%>
-**The complete handbook for VM Reactor 0.49.** Twenty-one chapters cover installation, everyday work with every guest type, host resources, administration and the complete command and file reference. VM Reactor remains a technical preview, so use the handbook that matches the installed program version.+**The complete handbook for VM Reactor 0.49.** Twenty-one chapters cover installation, everyday work with every guest type, host resources, administration and the complete command and file reference. The handbook describes VM Reactor 0.49; use it together with the release notes for changes introduced in VM Reactor 0.50.
 </WRAP> </WRAP>
  
Line 423: Line 429:
 {{vm-reactor:vm-reactor-handbook-preview.png?960&nolink|VM Reactor Handbook – cover, contents and a chapter}} {{vm-reactor:vm-reactor-handbook-preview.png?960&nolink|VM Reactor Handbook – cover, contents and a chapter}}
 </WRAP> </WRAP>
-