| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| vm-reactor:start [01.11.2026 10:03] – VM Reactor 0.08: Memory in the main menu, memory on by default, storage types, screenshots; VM Reactor Handbook (draft) aria | vm-reactor:start [14.11.2026 19:26] (current) – VM Reactor 0.50: new screenshots from the verified 0.50 build aria |
|---|
| |
| <WRAP centeralign> | <WRAP centeralign> |
| **VM Reactor 0.08 – 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> |
| |
| <WRAP center round important 80%> | <WRAP center round info 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. | **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> |
| |
| <WRAP center round info 80%> | <WRAP center round tip 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-init'' 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. | **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> |
| |
| VM Reactor turns a Debian computer into a host for guests. It manages **virtual machines** (KVM with libvirt), **system containers** (LXC) and **applications** (Docker compose projects) in one web interface with its own port – HTTPS, ''8443'' by default. Every guest has a number: the host is **ID 0**, the guests are **1, 2, 3 …**, whatever their type. Each guest has exactly one configuration file (''/etc/vm-reactor/guests/<id>.conf'') and one directory in a storage – nothing is hidden in a database, and everything the web interface does can also be done on the command line with ''vm-reactor''. | VM Reactor turns a Debian computer into a host for guests. It manages **virtual machines** (KVM with libvirt), **system containers** (LXC) and **applications** (Docker compose projects) in one web interface with its own port – HTTPS, ''8443'' by default. Every guest has a number: the host is **ID 0**, the guests are **1, 2, 3 …**, whatever their type. Each guest has exactly one configuration file (''/etc/vm-reactor/guests/<id>.conf'') and one directory in a storage – nothing is hidden in a database, and everything the web interface does can also be done on the command line with ''vm-reactor''. |
| |
| VM Reactor uses the tools Debian already has: libvirt and QEMU, LXC, Docker from Docker's own repository (installed and managed by VM Reactor itself), nftables and dnsmasq. It works together with the Stratum modules – firewall, security, WireGuard mesh, Ansible, support, telemetry – when they are installed. | VM Reactor uses the tools Debian already has: libvirt and QEMU, LXC, Docker from Docker's own repository (installed together with VM Reactor and managed by it), nftables and dnsmasq. Its services are backed by Stratum modules – the block layer (''stratum-storage''), the guest firewall (''stratum-firewall''), sign-in protection (''stratum-security''), memory tuning (''stratum-memory'') and the watchdog (''stratum-watchdog''). They are dependencies of the package, so APT brings them along. WireGuard support comes from the recommended, optional package ''stratum-wireguard''. |
| |
| <grid cols="1fr 1fr 1fr"> | <grid cols="1fr 1fr 1fr"> |
| <col> | <col> |
| <card header="Applications" subtitle="Docker · compose" shadow="small"> | <card header="Applications" subtitle="Docker · compose" shadow="small"> |
| Docker installed and managed by VM Reactor, from Docker's own repository; applications as compose projects – a compose file, a pasted ''docker run'' command, an image wizard or a template (nginx, Nginx Proxy Manager, Uptime Kuma, Vaultwarden, Portainer, MariaDB, Nextcloud …). Automatic updates with rollback, CPU and memory limits, registries, images, volumes, networks and events in one place. | Docker from Docker's own repository, installed together with VM Reactor and managed by it; applications as compose projects – a compose file, a pasted ''docker run'' command, an image wizard or a template (nginx, Nginx Proxy Manager, Uptime Kuma, Vaultwarden, Portainer, MariaDB, Nextcloud …). Automatic updates with rollback, CPU and memory limits, registries, images, volumes, networks and events in one place. |
| </card> | </card> |
| </col> | </col> |
| <grid cols="1fr 1fr 1fr"> | <grid cols="1fr 1fr 1fr"> |
| <col> | <col> |
| <card header="Storage" subtitle="Directory · NFS share · LVM thin pool" 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, an NFS share or an LVM thin pool – thin volumes with instant snapshots. | 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> |
| <col> | <col> |
| <card header="Network" subtitle="NAT · LAN · bridges" shadow="small"> | <card header="Network" subtitle="NAT · LAN · bridges" shadow="small"> |
| A NAT network with DHCP, DNS, fixed addresses and **published ports**; guests directly in your local network (macvtap / macvlan); internal bridges and bridges on network cards – with confirmation and automatic rollback. | A NAT network with DHCP, DNS, fixed addresses and **published ports** – for machines, containers and applications alike; guests directly in your local network (macvtap / macvlan); internal bridges and bridges on network cards – with confirmation and automatic rollback. |
| </card> | </card> |
| </col> | </col> |
| <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, 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> |
| </col> | </col> |
| <col> | <col> |
| <card header="Memory" subtitle="on by default · zram · KSM · balloon" shadow="small"> | <card header="Memory" subtitle="on by default · compression · deduplication · ballooning · swapping" shadow="small"> |
| A page of its own and switched on by default: compressed swap with ''stratum-zram'' (zstd), memory deduplication (KSM) and the virtio balloon with free page reporting and an automatic balloon – tuned for a hypervisor. The Overview shows in real time how much RAM they save. | A page of its own: compression (zram, zstd), deduplication (ksm), ballooning (virtio-balloon with free page reporting and an automatic balloon), and swapping as the last reserve – tuned for a hypervisor and managed by ''stratum-memory''. The Overview shows in real time how much RAM the first three techniques save. |
| </card> | </card> |
| </col> | </col> |
| <col> | <col> |
| <card header="Stratum integrations" subtitle="one layer, one host" shadow="small"> | <card header="Clear at a glance" subtitle="search · notifications · Stratum" shadow="small"> |
| fail2ban guards the sign-in, the WireGuard mesh reaches the guests of every host, Ansible finds them in its inventory, a support session and report include VM Reactor – each one switched on in the settings. | **Ctrl+K** finds any guest by name, ID or address, any page and setting; the **bell** gathers what needs attention – watchdog checks, failed backups, guests whose storage is offline. Sign-in protection has its own tab in the settings, WireGuard is on the Network page. |
| | </card> |
| | </col> |
| | </grid> |
| | |
| | <grid cols="1fr 1fr"> |
| | <col> |
| | <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. 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> |
| | </col> |
| | <col> |
| | <card header="Verified backups" subtitle="SHA-256 · archive · qcow2" shadow="small"> |
| | 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> |
| <col> | <col> |
| {{vm-reactor:network.png?700&nolink|Network}} | {{vm-reactor:network.png?700&nolink|Network}} |
| <WRAP centeralign>//Network – the NAT network, bridges and the interfaces of the host.//</WRAP> | <WRAP centeralign>//Network – traffic of the host, the NAT network, WireGuard and the bridges.//</WRAP> |
| </col> | </col> |
| </grid> | </grid> |
| |
| <WRAP centeralign> | <WRAP centeralign> |
| **More guests in the same memory – an advanced feature of VM Reactor.** **Memory** – a page of the main menu – brings three techniques together: memory compression keeps idle guest memory compressed in RAM (zram, typically 3:1 and more), memory deduplication keeps identical memory pages of the virtual machines only once (KSM), and the virtio balloon returns memory the machines do not use to the host. VM Reactor switches them on at the installation with values recommended for a virtualization host, and the panel **Memory management** on the **Overview** shows in real time how much RAM they save. | **More guests in the same memory – an advanced feature of VM Reactor.** **Memory** – a page of the main menu – presents the layers in this order: **compression** keeps idle memory compressed in RAM (zram, typically 3:1 and more), **deduplication** keeps identical memory pages of virtual machines only once (ksm), **ballooning** returns memory the machines do not use to the host (virtio-balloon), and **swapping** is the final reserve. VM Reactor applies values recommended for a virtualization host through ''stratum-memory'' (type //VM Reactor host//), and the panel **Memory management** on the **Overview** shows in real time how much RAM the first three techniques save. |
| </WRAP> | </WRAP> |
| |
| <col> | <col> |
| {{vm-reactor:memory.png?700&nolink|Memory}} | {{vm-reactor:memory.png?700&nolink|Memory}} |
| <WRAP centeralign>//Memory – compressed swap in RAM (zram with zstd or lz4) and deduplication (KSM), tuned for virtual machines and containers.//</WRAP> | <WRAP centeralign>//Memory – memory management at the top, then compression, deduplication, ballooning and swapping, with status, live numbers and history.//</WRAP> |
| </col> | </col> |
| <col> | <col> |
| {{vm-reactor:memory-balloon.png?700&nolink|Balloon}} | {{vm-reactor:memory-balloon.png?700&nolink|Ballooning}} |
| <WRAP centeralign>//Balloon – free page reporting and an automatic balloon that never shrinks a machine below its minimum memory.//</WRAP> | <WRAP centeralign>//Ballooning – free page reporting and an automatic balloon that never shrinks a machine below its minimum memory.//</WRAP> |
| </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"> |
| <col> | <col> |
| {{vm-reactor:backups.png?700&nolink|Backups}} | {{vm-reactor:backups.png?700&nolink|Backups}} |
| <WRAP centeralign>//Backups – one file per backup, schedules with retention rules, protected backups.//</WRAP> | <WRAP centeralign>//Backups – the state at a glance, schedules with retention rules, protected backups.//</WRAP> |
| </col> | </col> |
| <col> | <col> |
| {{vm-reactor:settings-stratum.png?700&nolink|Integrations}} | {{vm-reactor:settings-security.png?700&nolink|Settings – Security}} |
| <WRAP centeralign>//Settings – the integrations with the Stratum modules.//</WRAP> | <WRAP centeralign>//Settings – Security: the sign-in protected by stratum-security.//</WRAP> |
| </col> | </col> |
| </grid> | </grid> |
| | |
| | <WRAP centeralign> |
| | {{vm-reactor:migrations.png?960&nolink|Migrations}} |
| | |
| | //Migrations – paired hosts, the checks before a migration, offline or live.// |
| | </WRAP> |
| |
| ===== Installation ===== | ===== Installation ===== |
| | System | **Debian 13 (trixie)** or **Debian 14 (forky)**, ''amd64'' or ''arm64'' – a physical computer or a virtual machine with nested virtualization | | | System | **Debian 13 (trixie)** or **Debian 14 (forky)**, ''amd64'' or ''arm64'' – a physical computer or a virtual machine with nested virtualization | |
| | Virtualization | **VT-x / AMD-V** switched on in the firmware for KVM machines; without it, machines run emulated and slowly (containers and applications do not need it) | | | Virtualization | **VT-x / AMD-V** switched on in the firmware for KVM machines; without it, machines run emulated and slowly (containers and applications do not need it) | |
| | Stratum | ''stratum-init'' 0.40 or newer and the Stratum repository with the components ''main'' **and** ''contrib'' – see [[stratum:start#quick_setup|Stratum – quick setup]] | | | Stratum | ''stratum-core'' 0.49 or newer (the Stratum core, written in Go) and the Stratum repository with the components ''main'' **and** ''contrib'' – see [[stratum:start#quick_setup|Stratum – quick setup]] | |
| | Memory and disk | Enough for the host and all guests; memory compression, deduplication and the balloon help when it gets tight | | | Memory and disk | Enough for the host and all guests; memory compression, deduplication and the balloon help when it gets tight | |
| | Browser | Any current browser; the web interface uses HTTPS on port ''8443'' | | | Browser | Any current browser; the web interface uses HTTPS on port ''8443'' | |
| </card> | </card> |
| |
| Sources written by older versions of ''stratum-archive-keyring'' have only ''main''; installing the current ''stratum-archive-keyring'' (or ''stratum-init'') adds ''contrib'' and ''non-free'' by itself. | Sources written by older versions of ''stratum-archive-keyring'' have only ''main''; installing the current ''stratum-archive-keyring'' (or ''stratum-core'') adds ''contrib'' and ''non-free'' by itself. |
| |
| ==== 2. Install the package ==== | ==== 2. Install the package ==== |
| </card> | </card> |
| |
| APT brings everything VM Reactor needs from Debian – libvirt and QEMU, LXC, nftables, dnsmasq, noVNC – together with ''stratum-zram'' and ''ksmtuned'' for the memory setup, and recommends ''stratum-firewall''. 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"> |
| - Sign in as **admin** with the password from ''/etc/vm-reactor/initial-admin-password''. | - Sign in as **admin** with the password from ''/etc/vm-reactor/initial-admin-password''. |
| - In **Users → My account** set your own password and switch on **two-factor sign-in** (an authenticator app); then delete the file: ''rm /etc/vm-reactor/initial-admin-password''. | - In **Users → My account** set your own password and switch on **two-factor sign-in** (an authenticator app); then delete the file: ''rm /etc/vm-reactor/initial-admin-password''. |
| - Look at the **Overview**: the warnings at the top tell you what is still missing (for example hardware virtualization or noVNC), and the status lights of the **Host** card show the state of KVM, LXC and Docker, of the memory techniques and of the protection. | - Look at the **Overview**: the warnings at the top tell you what is still missing (for example hardware virtualization or noVNC), the status lights of the **Host** card show the state of KVM, LXC and Docker, of the memory techniques and of the protection, and the **bell** in the top bar lists what needs attention. |
| |
| <WRAP round tip> | <WRAP round tip> |
| **Docker applications** need Docker from Docker's repository: open **Docker** in the web interface and choose **Install Docker** – or run ''vm-reactor docker setup''. Compose projects that already run on the host become applications with **Docker → Import a compose project** (''vm-reactor docker import <folder>''). | **Docker** is installed together with VM Reactor. If you answered no, or the setup stopped – for example because Debian's ''docker.io'' is installed, which VM Reactor never removes by itself; the bell says why – open **Docker** in the web interface and choose **Install Docker**, or run ''vm-reactor docker setup''. Compose projects that already run on the host become applications with **Docker → Import a compose project** (''vm-reactor docker import <folder>''). |
| </WRAP> | </WRAP> |
| |
| * **Allowed networks** (Users, ''ALLOW_FROM''): only these networks reach the web interface; VM Reactor refuses a change that would lock you out. | * **Allowed networks** (Users, ''ALLOW_FROM''): only these networks reach the web interface; VM Reactor refuses a change that would lock you out. |
| * **Sign-in limits**: after ''LOGIN_ATTEMPTS'' failed sign-ins an address is blocked for 10 minutes; **session timeout** in minutes (''SESSION_TIMEOUT''). | * **Sign-in limits**: after ''LOGIN_ATTEMPTS'' failed sign-ins an address is blocked for 10 minutes; **session timeout** in minutes (''SESSION_TIMEOUT''). |
| * **stratum-security**: the protected service ''vm-reactor'' – fail2ban bans addresses with too many failed sign-ins. | * **stratum-security** (Settings → Security): the protected service ''vm-reactor'' – fail2ban bans addresses with too many failed sign-ins. |
| * **stratum-firewall**: VM Reactor writes its own rules (port ''8443'', DHCP and DNS of the NAT network, forwarding of the guests) to ''/etc/stratum/firewall.d/vm-reactor.rules''. | * **stratum-firewall**: VM Reactor writes its own rules (port ''8443'', DHCP and DNS of the NAT network, forwarding of the guests) to ''/etc/stratum/firewall.d/vm-reactor.rules''. |
| * **Own certificate**: replace ''/etc/vm-reactor/tls/vm-reactor.crt'' and ''vm-reactor.key'' and run ''systemctl restart vm-reactor''. Behind a reverse proxy on the same host, ''LOCAL_HTTP_PORT'' offers plain HTTP on ''127.0.0.1'' only. | * **Own certificate**: replace ''/etc/vm-reactor/tls/vm-reactor.crt'' and ''vm-reactor.key'' and run ''systemctl restart vm-reactor''. Behind a reverse proxy on the same host, ''LOCAL_HTTP_PORT'' offers plain HTTP on ''127.0.0.1'' only. |
| | **NAT** (bridge ''vmnat0'', ''10.10.10.0/24'' by default) | a private address from the host's DHCP, names ''<name>.vm-reactor.lan''; reachable from outside through **published ports**. Fixed addresses below the DHCP range. | | | **NAT** (bridge ''vmnat0'', ''10.10.10.0/24'' by default) | a private address from the host's DHCP, names ''<name>.vm-reactor.lan''; reachable from outside through **published ports**. Fixed addresses below the DHCP range. | |
| | **Local network** | its own address in your LAN (machines: macvtap, containers: macvlan) – the host itself cannot reach these guests | | | **Local network** | its own address in your LAN (machines: macvtap, containers: macvlan) – the host itself cannot reach these guests | |
| | **Bridge** | a bridge on a network card (''vmbrN'') – guests are like computers next to the host; the change of ''/etc/network/interfaces'' must be confirmed, otherwise it is rolled back after 2 minutes | | | **Bridge** | a bridge on a network card (''vmbrN'') – guests are like computers next to the host; the change of ''/etc/network/interfaces'' must be confirmed within 60 seconds, otherwise it is rolled back | |
| | **Internal bridge** | a bridge without a network card – guests talk only to each other | | | **Internal bridge** | a bridge without a network card – guests talk only to each other | |
| | | **Applications** | the front service of a Docker application joins the NAT network (Docker network ''vmnat'' on ''vmnat0'', addresses ''.64''–''.95'' by default, ''NAT_DOCKER''): a fixed address, ''<name>.vm-reactor.lan'', published ports and the firewall of the guest; its other services (e.g. a database) stay in the application's own network. New applications join by themselves, existing ones under **Network** of the application. | |
| |
| Every guest also has its own **firewall** (nftables on the bridge): policies, rules and protection against address spoofing. With ''stratum-wireguard'' the NAT network can be **announced in the mesh** – the other members then reach the guests directly; when several hosts share a mesh, give each one its own NAT network (the guests keep the host part of their address). | Every guest also has its own **firewall** (nftables on the bridge): policies, rules and protection against address spoofing. With ''stratum-wireguard'' the NAT network can be **announced in the mesh** – the other members then reach the guests directly; when several hosts share a mesh, give each one its own NAT network (the guests keep the host part of their address). |
| | |
| | **Protection against lock-out.** A change of the NAT network, of a bridge on a network card or of the access to the web interface (port, address, allowed networks under **Settings – General**) must be kept within **60 seconds**: a banner with the countdown and **Keep the change** appears on every page. Confirm it from the browser over the new configuration; when the host can no longer be reached, the previous configuration comes back by itself (a systemd timer, ''vm-reactor settings-rollback''). |
| |
| ==== Storage ==== | ==== Storage ==== |
| </card> | </card> |
| |
| Types: ''dir'' (Directory), ''nfs'' (NFS share) and ''lvmthin'' (LVM thin pool: thin volumes and snapshots). Add them in **Storage**; the web interface checks the tools and can format a new disk. | **Add storage** offers three types; the dialog checks your entries at once and shows what is wrong: |
| | |
| | * **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. |
| | * **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"> |
| | <code bash> |
| | vm-reactor storage list # all storages: type, state, size, free space |
| | vm-reactor storage add thin lvmthin --new /dev/sdf --yes # an LVM thin pool |
| | vm-reactor storage add fast lvmthin --new /dev/sdb /dev/sdc --raid raid1 --yes # a thin pool on md RAID 1 |
| | vm-reactor storage disk add thin /dev/sdd --yes # one more disk, the pool grows |
| | vm-reactor storage disk replace thin /dev/sdf /dev/sdg # replace a disk (a failed one included) |
| | vm-reactor storage scrub thin # check the array, optionally repair |
| | vm-reactor storage disk list thin # disks, errors, the last check |
| | vm-reactor storage add share nfs 10.0.0.5:/srv/vm # an NFS export |
| | </code> |
| | </card> |
| |
| ==== Backups and restore ==== | ==== Backups and restore ==== |
| vm-reactor backup prune --guest 2 --keep-last 3 --keep-weekly 4 # own rules for guest 2 | vm-reactor backup prune --guest 2 --keep-last 3 --keep-weekly 4 # own rules for guest 2 |
| vm-reactor backup protect local:<file> # never removed (--off: protection off) | vm-reactor backup protect local:<file> # never removed (--off: protection off) |
| | vm-reactor backup 2 --storage peer:host2:local # to the storage local of the paired host host2 |
| </code> | </code> |
| </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 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** (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. |
| | - **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 ^ |
| | | **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) | 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> |
| | vm-reactor peers # the paired hosts, online or not |
| | vm-reactor migrate 7 host2 --check # only the checks |
| | vm-reactor migrate 7 host2 --storage local # offline |
| | vm-reactor migrate 7 host2 --live # a running machine, live |
| | vm-reactor peers unpair host2 # end the pairing (on both hosts) |
| | </code> |
| |
| ==== Docker ==== | ==== Docker ==== |
| VM Reactor takes care of Docker completely – there is nothing else to install: | VM Reactor takes care of Docker completely – there is nothing else to install: |
| |
| * **Installation and upgrades**: Docker CE with compose and buildx from Docker's own repository (its key is checked against the published fingerprint); the engine is upgraded with the system. On a Debian release Docker does not support yet, the packages of the release before are used – **Switch** appears as soon as Docker has its own. | * **Installation and upgrades**: Docker CE with compose and buildx from Docker's own repository (its key is checked against the published fingerprint) – at the installation of VM Reactor or later with **Install Docker**; the engine is upgraded with the system. On a Debian release Docker does not support yet, the packages of the release before are used – **Switch** appears as soon as Docker has its own. |
| * **Settings** (Docker → Settings): log rotation, address pool of new networks, live restore, IPv6, no-new-privileges, data location – checked by ''dockerd'' before Docker restarts. | * **Settings** (Docker → Settings): log rotation, address pool of new networks, live restore, IPv6, no-new-privileges, data location – checked by ''dockerd'' before Docker restarts. |
| * **Automatic updates** of the applications every night or every Monday at 04:30, with a mode per application: //auto// (update and restart), //notify// (download, you apply) or //off//. The images before an update are kept – **Roll back** returns to them. | * **Automatic updates** of the applications every night or every Monday at 04:30, with a mode per application: //auto// (update and restart), //notify// (download, you apply) or //off//. The images before an update are kept – **Roll back** returns to them. |
| ==== 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 (stratum-zram with a type for VM hosts, 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) and the virtio balloon (free page reporting, and an automatic balloon that never takes a machine below its minimum memory – half its memory by default, //Hardware//). All of it is switched on at the installation; ''vm-reactor memory-defaults --force'' applies it 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. |
| |
| ==== Stratum integrations ==== | ==== Stratum modules ==== |
| |
| ^ Module ^ With VM Reactor ^ | ^ Module ^ With VM Reactor ^ Where ^ |
| | stratum-firewall | rules of the web interface, the NAT network and published ports | | | stratum-storage | the whole block layer – volume group, thin pool, volumes, file systems, mounts, snapshots, md RAID arrays; the Storage page reads its ''inventory --json'' | Storage | |
| | stratum-security | fail2ban protects the sign-in (jail ''vm-reactor'') | | | stratum-firewall | rules of the web interface, the NAT network, published ports and the firewall of every guest | automatic | |
| | stratum-wireguard | the NAT network is announced in the mesh; the members reach the guests | | | stratum-security | fail2ban protects the sign-in (jail ''vm-reactor'') | Settings → Security | |
| | stratum-ansible | dynamic inventory of the machines and containers (''vm-reactor inventory'') | | | stratum-wireguard //(optional)// | the NAT network is announced in WireGuard; the members reach the guests | Network | |
| | stratum-support | support sessions; ''vm-reactor report'' is part of the diagnostic report | | | stratum-memory | compression (zram), deduplication (ksm) and the automatic ballooning of the machines | Memory | |
| | stratum-database | guests may use the MariaDB server of the host | | | stratum-watchdog | watches VM Reactor itself | automatic | |
| | stratum-telemetry | numbers about the guests in the extended report (no names, no addresses) | | | stratum-software | package lists and unattended upgrades of the host | – | |
| | stratum-zram | memory compression for VM hosts (zstd or lz4) | | | stratum-ansible | dynamic inventory of the machines and containers | ''vm-reactor inventory'' | |
| |
| ==== Command line ==== | ==== Command line ==== |
| vm-reactor url # address of the web interface | vm-reactor url # address of the web interface |
| vm-reactor docker help # Docker and the applications | vm-reactor docker help # Docker and the applications |
| | vm-reactor migrate 7 host2 # move guest 7 to the paired host host2 (--live, --check) |
| vm-reactor backup prune --dry-run # backups the retention rules would remove | vm-reactor backup prune --dry-run # backups the retention rules would remove |
| vm-reactor help # every command and switch | vm-reactor help # every command and switch |
| | ''/etc/vm-reactor/storage.conf'', ''network.conf'', ''users.conf'' | storages, networks, users | | | ''/etc/vm-reactor/storage.conf'', ''network.conf'', ''users.conf'' | storages, networks, users | |
| | ''/etc/vm-reactor/tls/'' | certificate of the web interface | | | ''/etc/vm-reactor/tls/'' | certificate of the web interface | |
| | | ''/etc/vm-reactor/peers.json'' | paired hosts (address, certificate, secret) | |
| | ''/var/lib/vm-reactor/'' | guests, ISO images, templates, backups (storage ''local'') | | | ''/var/lib/vm-reactor/'' | guests, ISO images, templates, backups (storage ''local'') | |
| | ''/var/log/vm-reactor/'' | ''audit.log'' and the logs of the tasks | | | ''/var/log/vm-reactor/'' | ''audit.log'' and the logs of the tasks | |
| |
| VM Reactor is updated with APT like every other package (''apt-get upgrade''). Restarting the web interface does not touch the guests – they keep running. | VM Reactor is updated with APT like every other package (''apt-get upgrade''). Restarting the web interface does not touch the guests – they keep running. |
| | |
| | **Optional packages** (**Settings – Packages**, one click each): ''vm-reactor-virtio-win'' – the VirtIO drivers for Windows machines (the virtio-win ISO image 0.1.302 of the Fedora project, BSD licence): it appears in the storage ''local'' among the ISO images as ''virtio-win-0.1.302.iso'' – attach it to a Windows machine as a second CD drive and load the drivers during the Windows setup (''viostor'' or ''vioscsi'') or install them all afterwards with ''virtio-win-guest-tools.exe''; ''vm-reactor-handbook'' – the VM Reactor Handbook as PDF. |
| | |
| | VM Reactor is written in **Go** – the server, the API and the command line are one Go program; the web interface uses Vue.js. |
| |
| ===== VM Reactor Handbook ===== | ===== VM Reactor Handbook ===== |
| |
| <WRAP center round important 80%> | <WRAP center round info 80%> |
| **The VM Reactor Handbook is being written.** This first draft contains the cover, the complete contents and the first chapters; the chapters shown in grey in the contents are in preparation and follow in the next drafts, together with VM Reactor itself. | **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> |
| |
| **The guide to running machines, containers and applications side by side on Debian** – for the people who use them and for the administrators who run the host. Every chapter is marked with the readers it is meant for. | **The guide to running machines, containers and applications side by side on Debian** – for the people who use them and for the administrators who run the host. Every chapter is marked with the readers it is meant for. |
| |
| * **Getting started** – what VM Reactor is, installation and a tour of the web interface //(in this draft)// | * **Getting started** – what VM Reactor is, installation and a tour of the web interface |
| * **Guests** – machines, containers and applications; consoles, snapshots and clones; starting, stopping and the watchdog //(in preparation)// | * **Guests** – machines, containers and applications; consoles, snapshots and clones; starting, stopping and the watchdog |
| * **Resources of the host** – storage, memory, networks, backups and restore //(in preparation)// | * **Resources of the host** – storage, memory, networks, backups and restore |
| * **Administration** – users and roles, securing the web interface, the Stratum integrations and updates //(in preparation)// | * **Administration** – users and roles, securing the web interface, the Stratum integrations and updates |
| * **Reference** – every command and switch, files, troubleshooting and a glossary //(in preparation)// | * **Reference** – every command and switch, files, troubleshooting and a glossary |
| |
| <card header="Download" shadow="small"> | <card header="Download" shadow="small"> |
| **[[https://www.skraba.net/stratum-apt/handbook/vm-reactor-handbook.pdf|VM Reactor Handbook (PDF, A4, 28 pages, 0.7 MB)]]** \\ | **[[https://www.skraba.net/stratum-apt/handbook/vm-reactor-handbook.pdf|VM Reactor Handbook (PDF, A4, 120 pages, 1.4 MB)]]** \\ |
| Draft · November 2026 · VM Reactor 0.08 · Stratum Project \\ | Draft · November 2026 · VM Reactor 0.49 · Stratum Project \\ |
| On a VM Reactor host: ''apt install vm-reactor-handbook'' – the book is then at ''/usr/share/vm-reactor/handbook/vm-reactor-handbook.pdf''. | On a VM Reactor host: ''apt install vm-reactor-handbook'' (or **Settings – Packages**) – the book is then at ''/usr/share/vm-reactor/handbook/vm-reactor-handbook.pdf'', with a link in ''/root/vm-reactor-handbook.pdf''. |
| </card> | </card> |
| </col> | </col> |
| {{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> |
| |