Documentation menu
Docs / Operations

SimpleVirt Operations Guide

Day-2 procedures for running a SimpleVirt fleet: routine health checks, planned maintenance, upgrades, storage capacity, and where to look when something needs attention.

This guide assumes SimpleVirt is installed and clusters exist. For first-time setup see installation; for day-to-day use see the user guide; for problems see troubleshooting.


Daily health check

SimpleVirt-Command aggregates the state of the whole fleet. Start every day-2 session here.

  • Health — a single dashboard of Host CPU/memory/load, Datastore capacity, service up/down, VM state counts, and computed Alarms. The overall status is ok, warning, or critical. A Host is only reported healthy when its core services (simplevirtd, libvirtd, networking) are active.
  • Tasks — most long-running fleet operations (migration, evacuation, host update, provisioning, storage/cold migration, workload distribution) run as tracked Tasks with progress. (Some mutating operations — stretch enable/disable, controller backup/restore, certificate install — are synchronous and audit-logged rather than tracked as Tasks.) Watch long operations here.
  • Events — an append-only activity stream the console polls (a 30s server-side cached snapshot, GET /api/v1/events). Use it to see what happened and in what order.
  • Alarms — computed warnings/criticals (capacity thresholds, unreachable Hosts, degraded storage, network-health rollups).
flowchart LR
  A[SimpleVirt-Command] --> H[Health dashboard]
  A --> T[Tasks]
  A --> E[Events stream]
  H --> AL[Alarms]

A green Health status with no open Alarms and no stuck Tasks is the normal steady state.


Host maintenance

SimpleVirt separates three distinct workflows so a planned service window never behaves like an unplanned failure.

Workflow What it does When
Evacuation Live-migrates every running VM on SimpleVirt HCI or SAN storage off the Host onto surviving members; disks stay on shared storage, only memory moves. NFS VMs are named and left running (they move only powered off) Reboot/service a Host while its VMs keep running elsewhere
Maintenance mode Persisted flag that blocks VM create/power-on; on entry it migrates the running VMs off (the default) or shuts them down (your choice) Take a Host fully offline for hardware work
HA restart Automatic restart of a dead Host's VMs elsewhere Unplanned Host death only — never planned reboots

Preview before you act

Before entering maintenance, run the read-only precheck (Host → Maintenance → Preview). It plans — but never performs — the evacuation of each running VM and reports:

  • Per-VM fate: migrate (to a named survivor) or blocked (with the reason).
  • SimpleVirt HCI impact: storage health, OSDs up/in, monitor quorum — read from the background sample, so it is fast and never disturbs live storage.
  • A single verdict: ok, warn, or blocked.

The preview mutates nothing. Use it to confirm the window is safe before committing.

Evacuate a Host (keep VMs running)

Host → Actions → Evacuate host…. Every running VM on SimpleVirt HCI or a SAN datastore is live-migrated onto surviving cluster members. A running VM on an NFS datastore carries SimpleVirt's storage lease: it is live-migrated with that lease handed over when NFS live migration (Tech Preview) is on for the cluster, and otherwise evacuation names it, with the host that could take it once it is powered off, and leaves it running, unless the request asks to relocate such VMs powered off (cold_relocate) (known limitation 3). Each move is its own tracked Task; the response lists what started and what could not be placed. A VM with no valid target is reported and left running — evacuation never powers a VM off to make progress.

Live migration crosses the dedicated migration network when the destination has a migration adapter on one. If it has none, the move is refused unless you explicitly allow it to cross the management network (fail-closed by default). Both ends of every move authenticate each other by certificate, and guest data is encrypted in flight by default (qemu+tls / VIR_MIGRATE_TLS). The management-network crossing is still opt-in because a move's traffic belongs on the dedicated migration network, and because with migration.encryption: false guest memory would cross the management LAN unencrypted — see Migration network.

Cancel, pause or schedule host work

A running evacuation, Enter maintenance, planned reboot or shut down, or update applied after an evacuation shows Cancel in Recent tasks until the host is asked to act. Cancelling stops the moves still running (those VMs keep running on the host), leaves the VMs that already moved where they went, and does not put the host into maintenance, reboot it, power it off or update it. A live migration, a storage move, a clone, a deploy and a library import from a URL can be cancelled the same way until their point of no return; each says what it left. A task ends Cancelled only when the cancel is what stopped it: a failure after a cancel (a move whose outcome is unknown, say) stays a failure and is notified as one. The cluster's Settings → Updates tab schedules an Enter maintenance (moving the VMs, never shutting one down), an evacuation (moving the VMs that can move, leaving the others running) or a rolling upgrade for a later time, and sets how long a planned reboot waits for a host to come back (HA's protection of the rebooting host lasts as long). Details and limits: known limitation 95.

Enter / exit maintenance mode

  • Enter — Host → Enter Maintenance. By default (Migrate and enter) the running VMs are live-migrated off first, and the Host enters maintenance once it is empty; a VM that cannot move (an NFS VM among them) stops the act and is named. When some VMs can move and others cannot, the dialog shows a checkbox, "Also shut down the VM(s) that cannot move: …" (followed by their names): with it ticked, Migrate live-migrates what can move and shuts down only the VMs that cannot. Shut down and enter shuts them down instead (a clean guest shutdown where possible). Either way the Host stops accepting new VMs and power-ons.
  • Exit — Host → Exit Maintenance. The flag is persisted, so a Host in maintenance stays in maintenance across a simplevirtd restart until you explicitly exit.
flowchart LR
  P[Preview precheck] --> EV[Evacuate VMs]
  EV --> M[Enter maintenance]
  M --> W[Service / reboot Host]
  W --> X[Exit maintenance]

VM migration

  • Live migration — moves a running VM's memory and device state to another Host with near-zero downtime; disks stay on shared storage (SimpleVirt HCI or a SAN datastore; an NFS VM moves live only with NFS live migration (Tech Preview) on for the cluster, and cold otherwise, known limitation 3). It uses libvirt's migration transport on the dedicated migration network. The control channel is libvirtd's TLS listener on TCP 16514 (qemu+tls), mutually authenticated by the per-Host migration leaf certificate and tls_allowed_dn_list that the controller auto-issues; by default (migration encryption on) guest RAM and domain XML also travel the data ports TCP 49152–49215 encrypted (VIR_MIGRATE_TLS). migration.encryption: false sends guest RAM unencrypted and changes nothing else. Hosts serve no plaintext libvirt listener (TCP 16509 is masked and firewalled; a Host installed earlier keeps it, for the fleet's own hosts only, until the restart that brings up its 16514 — see Known limitations §4), and each Host's migration firewall accepts 16514 and the data ports only from fleet peer addresses (Migration network).
  • Migration certificates and allow-lists never restart a busy host's VM engine. A renewed migration certificate is installed at libvirt's default certificate paths (the only ones its live reload reads) and loaded into the running VM engine (libvirtd) in place; if the reload fails it waits for the VM engine's next start and the Host reports pending maintenance. A change to the list of hosts allowed to migrate to a Host (a Host joined or left) waits for that Host's VM engine to start again — at its next reboot, or once no VM runs on it, such as in maintenance — and the Host reports it as pending maintenance until then; the peer firewall drops a removed Host at once. The VM engine is restarted on a running Host only to bring the migration listener up for the first time, one Host at a time, and never while a migration, a VM start or a lease-protected VM is in progress there, or while a storage pool a running VM uses is unhealthy.
  • Storage migration — moves a running VM's disks between Datastores (block-copy + pivot) with the VM online.
  • Cold / offline migration — moves a stopped VM, copying disks off local storage when needed.

Migration runs a precheck (target reachability, network/port-group availability, storage) before it starts, and each migration is a tracked Task. To move many VMs at once, use Host Evacuation rather than migrating VMs individually.


Cluster maintenance

Before any rolling window (an upgrade, firmware or BIOS work, any other service), confirm the cluster's Health is green and HA readiness passes while all members are up. Then service the Cluster one member at a time, each through Host maintenance, and confirm the member rejoins before you move to the next. Keep enough spare capacity that the surviving members can hold the evacuated workload: admission control reserves failover headroom, and a member that cannot be evacuated without breaching it is reported blocked in the preview. Never take more than one member offline at a time unless the preview confirms the remaining members can carry everything.

  • Updating a cluster: follow the Upgrade guide (in the appliance's documentation), which has the prechecks, the order across SimpleVirt-Command and the hosts, and the way back. Every cluster uses the rolling cluster upgrade, which walks the members for you: on SimpleVirt HCI (in the appliance's documentation) and on NFS, SAN or local storage (in the appliance's documentation).
  • Hardware work (a disk, a host's system disk, a whole host): follow the Runbooks (in the appliance's documentation), which add the storage checks a plain maintenance window does not make.

Backups (controller state)

SimpleVirt-Command backs up its own state — the fleet inventory, users, library metadata, tasks, and HA state. (VM data lives on Datastores and is not part of this backup.)

  • Back up — Administration → Backup and restore → Download encrypted backup, with a passphrase of at least 12 characters. The whole backup is encrypted with it; on a bundled-database controller the database encryption key rides inside, wrapped under the same passphrase. The passphrase is not stored anywhere. Every backup is audit-logged. The old unencrypted download is gone; see Backup responsibility.
  • Scheduled backups — Administration → Backup and restore → Scheduled backups: an interval, a retention (count, and optionally days), a schedule passphrase and one or more off-box targets (SFTP, NFS, SMB or S3-compatible storage). Test checks a target; Back up now runs the schedule at once. Each run is read back from every target and checked the way a restore would check it; a run that leaves a target without a verified copy raises the stale-backup alarm at once.
  • Restore — upload a backup with its passphrase. The controller swaps in the restored state and restarts; systemd brings it back up on the restored data. The state it replaced is kept in a .pre-restore-<time> snapshot in the data directory, with the encryption key that opens it when the backup brought a different one. An unencrypted backup from an older version restores with a warning. Restore is also audit-logged.
  • Restore when there is no backup — pair the surviving hosts with a fresh controller, then Re-adopt clusters on the same page brings each cluster back from the definition its hosts keep, signed by the lost controller. Compare the signing fingerprint with the one you recorded from that page.
  • Restoring after the fleet had a standby controller — a controller backup never carries the controller pair's record (it belongs to one appliance), so a restored controller starts as a single controller with no controller epoch. Hosts that saw a pair's epoch refuse every change from it. The controller notices (the alarm controller.ha.epoch_behind, and Administration → Controller high availability names the hosts) and never stops itself for it. The page, the alarm and the confirmation name the controller the hosts say holds that epoch. When it is a standby this controller removed, adopting is refused while that standby answers at its address (it took over while this controller was cut off from it, and runs with the newer database: use it, and make this controller its standby), and otherwise needs a second confirmation that names it. Once you are sure no other SimpleVirt-Command manages these hosts, choose Adopt the fleet's controller epoch… there: the controller takes an epoch above the highest any host holds and tells every host, which then accept it again (and refuse any controller at a lower epoch). It reads every host's epoch a minute after it starts and every 5 minutes, so the page shows this before any change is refused, and Add standby reads them again before it records anything.
  • Migration CA rotation — the same page rotates the live-migration certificate authority in two steps (Rotate CA…, then Retire old CA…) without a moment where two hosts refuse each other's migrations.

The controller takes a verified backup of itself before every controller update (below). Keep a schedule running for everything else.


Controller high availability

Administration → Controller high availability. Two things live here: a standby controller that takes over if this one, its VM or its host is lost, and continuous archiving of the controller database for a point-in-time restore. Neither is on by default; a controller with no standby works exactly as before.

Protecting the controller's own VM

When SimpleVirt-Command runs as a VM on a host it manages, it finds that VM itself and gives it the controller restart priority, the tier above high: after a host failure its VM is restarted before every other VM, by the cluster services too while SimpleVirt-Command itself is down. It also sets the VM to start with its host where the host decides that (a VM on storage SimpleVirt arbitrates is brought back by SimpleVirt instead). A restart priority you set on that VM yourself is never changed; Give it the controller restart priority on the page puts the tier back after you changed it (the API accepts the tier for the controller's own VM only). The page shows the VM, its host, its priority, how it starts, and whether HA actually protects it: the priority only orders the VMs HA restarts, so a VM with HA off for its cluster, or on storage no other host can open, is reported as not protected, with the reasons.

Adding a standby

  1. Install a second SimpleVirt-Command appliance (the same release), on a different host from the first, ideally in another failure domain. Give it a static address.
  2. Every managed host must run this release: Add standby names any host that does not enforce the controller epoch (or has not reported in) and adds nothing until each one does.
  3. On the active controller: Add standby, with the standby's management IP, the arbiter cluster (a cluster whose cluster services are set up on this release on every member; see §50 of the known limitations) and whether the standby may take over automatically. With an arbiter, Add standby first takes the controller lease there; if the cluster services cannot be reached or refuse (a member still on the previous release), it says why and changes nothing. When the lease was last held by a controller that no longer exists (this controller was restored or rebuilt), it asks you to confirm before taking it over; it never takes a lease another controller is still renewing. Copy the join command it shows.
  4. On the standby's console, as root, run the join command. It pins the active controller's certificate, receives the pair's credentials, replaces that appliance's own controller database with a streamed copy of the active one's (its old database is kept beside it), and starts as the standby.

Until the standby has joined, this controller goes on exactly as a single controller (no other controller has its database, so none can take over). Once it has, the database accepts the standby's stream over TLS from the standby's address only (in its database rules, and in its own firewall once that enforces: as shipped the firewall observes and drops nothing, so the database rules are the gate that always holds). The database listens on every address of the appliance, so an address that is not up yet when it starts (early in a boot) never keeps it, or SimpleVirt-Command, from starting; the database rules refuse everyone but the standby. The standby shows a status page that names the active controller; it manages nothing.

Which controller is active

Exactly one controller manages the fleet at a time:

  • With an arbiter cluster, the cluster services keep a controller lease in their consensus. The active controller renews it every 5 seconds; a grant holds 30 seconds; the active controller stops changing anything 20 seconds after the last renewal it could send, unless its standby is still streaming from it (then the standby cannot be taking over). The standby takes the lease only after the active controller's stream has been silent for 45 seconds and the lease has run out.
  • Every host enforces it (every host must run this release; Add standby checks). Each lease (or promotion) has an epoch, stamped on every request a controller of a pair sends. A host keeps the highest epoch it has seen and refuses any change from a lower one, so a controller that lost the lease can change nothing even if it is still running. A new active controller tells every host its epoch first; the page shows how many hosts have it, and the alarm controller.ha.epoch_unacknowledged names a host that has not taken it for 5 minutes (until it does, nothing on that host stops a superseded controller). A controller a host refuses this way stops for good and shows itself as superseded.
  • Without an arbiter, nothing takes over by itself: promote the standby by hand.

Promoting, switching over, rejoining

  • Planned: Switch over to the standby… on the active controller. It stops changing anything, waits until the standby has every change, hands over, and rebuilds itself as the new standby. When the hand-over does not happen (the standby does not catch up within 30 seconds, or does not answer), the controller goes on as the active one by itself. With an arbiter it takes the lease back only if the standby did not take it. Without one it first asks the standby: if the standby took over after all, the hand-over completes; if the standby cannot be asked, this controller stays stopped and the page says how to check (two active controllers would otherwise be possible).
  • Unplanned, by hand: on the standby's console, simplevirt-command controller-ha promote --confirm-active-is-off once the active controller is off or cut off from every host (--force takes the lease from an active controller that is broken but still renewing). With an arbiter, the promotion is also refused without --force when the lease names a controller that is not this standby's active one: the pair was most likely removed while this standby was away.
  • The old active controller comes back superseded: it changes nothing. Make it the new standby with simplevirt-command controller-ha rejoin --yes on its console (its database is replaced by a copy of the new active one's; changes it had not streamed before it was lost are not carried over).
  • Break-glass: simplevirt-command controller-ha leave --confirm-standby-is-gone turns an active controller whose standby is gone for good back into a single controller, even when the cluster services cannot confirm its lease. It runs offline and cannot tell whether the standby took over meanwhile, so after the restart the controller holds: it changes nothing and tells no host its new epoch until more than half of the hosts have answered the epoch read and none names that standby above the pair's epoch, and it moves the arbiter's lease, which leave leaves under the old controller id, to its new id unless that standby holds it. When a host or the lease shows the standby took over, the controller keeps holding and raises controller.ha.not_active: the standby is the active controller, with the newer database; use it, and make this appliance its standby (reinstall it and add it as that controller's standby). Only if that standby is powered off or destroyed for good, Adopt the fleet on the page, naming it. Leave also makes a controller that stopped itself as superseded while no standby had ever joined it a single controller again. A pair record that cannot be read leaves a single controller with no epoch: hosts that hold one refuse it until you adopt the fleet's epoch (Backups above).
  • Without an arbiter, a controller of a pair that restarts first asks its standby whether it took over; if it did, this controller shows itself as superseded instead of acting.
  • simplevirt-command controller-ha status prints this controller's role and pair on its console.

Removing the standby

Remove standby… tells the standby to stand down (it never takes over afterwards), closes the database to the network again and makes this a single controller. The controller also takes a new controller id (the page lists the former ones), moves the lease to a name under it, raises its controller epoch by 1000 and tells every host at once, so a standby that could not be told never takes this controller's later leases for its pair's, and anything it could reach on its own (a promotion by hand) stays below this controller on every host that heard the new epoch. That standby is told it was removed as soon as it reaches this controller again, and retires. If the standby cannot be reached, confirm it is powered off or destroyed; the removal is then refused while any host or the arbiter's lease reports that the standby took over (it is the active controller, and this one should rejoin it as its standby), and refused while no more than half of the hosts answer the epoch read (this controller may be the one cut off). Confirm that too to remove it anyway: the controller then holds, changing nothing and telling no host its new epoch, until more than half of the hosts answer and none names that standby. Later, before it tells a host it has not reached yet, it reads that host first, and holds instead when the host names the removed standby above the pair's epoch. Adding a standby again later, with the same arbiter, takes the lease back under the new id. Cancel on a standby that has not joined yet needs neither the standby nor the arbiter and keeps the controller id. simplevirt-command controller-ha leave (Break-glass above) removes the standby from the console, without telling it or asking the hosts first: the controller holds after its restart until the hosts answered.

Alarms

controller.ha.standby_down (the standby has not streamed for 2 minutes), controller.ha.replication_lag (more than 60 seconds or 256 MiB behind, or more than 2 GiB of WAL kept for it), controller.ha.not_active (this controller cannot confirm its lease, or, after removing a standby that could not be told, is still holding for the hosts to answer or found that standby took over, so it changes nothing), controller.ha.epoch_unacknowledged (a host has not taken the active controller's epoch for 5 minutes), controller.ha.epoch_behind (hosts hold a higher epoch than this single controller and refuse it; see Backups above) and controller.wal.archive_failing (archiving failing for 10 minutes, or a gap in the archive).

Continuous archiving and point-in-time restore

Turn on Archive the controller database continuously. It needs a backup schedule with at least one enabled target (Backups, above): every finished WAL file is encrypted with the schedule passphrase and uploaded to every enabled target as simplevirt-wal-<tag>-<file>.svwal, and a base backup (simplevirt-base-<tag>-<time>-<segment>.tar.svwal) is taken every 24 hours by default and read back from every target. Each file is compressed before it is encrypted. The database closes a WAL file at least every 5 minutes while anything changes; such a file is mostly empty and compresses to a few kilobytes, so a quiet controller sends little, and a busy one sends about what it writes. Plan target space for the base backups kept (each about the compressed size of the controller database) plus the WAL between the oldest kept base and now. A base backup is staged, compressed and encrypted, on the controller's own data disk before upload; it is skipped (and reported) when that disk does not have the database's size plus 512 MiB free. If the database has not loaded the archive settings yet (an appliance updated without a reboot), the appliance's database helper sets them up and restarts the controller database once, a few seconds in which SimpleVirt-Command restarts too (no host or VM is touched); it is asked at most every 6 hours. Retention keeps the newest base backups (2 by default, and those within the schedule's day limit) and the WAL after the oldest one kept. The spool on the appliance holds at most 64 WAL files (1 GiB); when the targets cannot keep up, the oldest are dropped rather than let the database disk fill, which leaves a gap that the next base backup closes.

To restore the controller database to a moment:

  1. Copy the archive files (simplevirt-base-* and simplevirt-wal-* of this controller's tag) from any target into a directory on the appliance.
  2. simplevirt-command pitr plan --from <dir> --time 2026-11-14T09:30:00Z shows the base backup and how far the WAL reaches.
  3. As root: simplevirt-command pitr restore --from <dir> --passphrase-file <file> --time <time> --yes. It decrypts everything first, keeps the current database beside the restored one (.pre-pitr-<time>), replays the archive to that moment, records the post-restore hold and starts SimpleVirt-Command on it. Without --time it replays to the end of the archive. A controller of a pair must remove its standby first.
  4. The restored controller observes before it acts, exactly as after a controller backup restore: the rewound database holds power intents, protection manifests, HA episodes and placements from that moment, so HA, the migration roster and the distributed switches act on nothing until you have checked the hosts and VMs and chosen Resume in Administration → Backup and restore. If the hold could not be recorded, the restore leaves SimpleVirt-Command stopped; simplevirt-command pitr hold --time <time> records it, then start the service.

The database files a restore brings back are the controller's database only; the rest of its state (the files a controller backup carries) comes from a controller backup.


Certificate maintenance

Administration → Certificates manages the HTTPS certificate a browser sees when reaching SimpleVirt-Command. The default is a self-signed pair (browsers flag it). To install a trusted certificate:

  • Upload a certificate your CA already signed, together with its key, or
  • Generate signing request… on the appliance, have your CA sign it, and install the result against a key that never leaves the appliance.

Every install is validated before it can replace the running certificate, so a bad upload can never take the console offline. Reading the certificate requires the admin.users privilege; installing, replacing or resetting it requires every privilege, as the Administrator role has.

If you pinned explicit certificate/key files in the controller's configuration, that is treated as deliberate: the management endpoints report that the certificate is externally managed rather than overriding your choice. Manage it in the config file in that case.

The other certificates (live migration, cluster services), which renew themselves and which you renew, and how: Renew certificates (in the appliance's documentation).


Lifecycle and updates

Before you update, read the Upgrade guide (in the appliance's documentation): which versions can be upgraded from, what may run side by side, the prechecks and the order. This section describes the mechanism.

SimpleVirt appliances are updated by uploading the signed SimpleVirt installer ISO through the Lifecycle view — the same .iso that installs an appliance is the one that upgrades it. There is no separate reinstall step, and no second artifact: an upload that is not an installer ISO is refused, including an older .auf update bundle.

An ISO is built for exactly one appliance flavor — Command or Hypervisor — and carries a new appliance root filesystem, kernel, and initramfs. Its manifest is signed; the signature and a per-payload checksum are verified twice (by the unprivileged daemon on upload, and again by the privileged apply helper before anything is written), so a tampered or truncated upload can never reach a reboot. The format is decided by the file's contents, not its name, so renaming a file does not get it past the check. A Command ISO applied to a Hypervisor (or vice-versa) is rejected.

Signing keys. Each signature names the key that made it. An appliance trusts a small set of SimpleVirt keys, normally the current one and the one that will replace it; simplevirt-update-verify -keys on an appliance lists them. An image is refused when its key has been withdrawn, when it was signed after its key's last valid date, or when it is past its own expiry date (three years after it was built, unless that release says otherwise). An expiry refusal names the date and the appliance's clock, so check the clock first: an appliance whose clock is far ahead refuses images that are still valid. If SimpleVirt withdraws a key before a release can replace it, it publishes a signed revocation list; copy it to /etc/simplevirt/update-revocations.json on each appliance (readable by everyone, mode 0644) and updates signed by that key are refused from then on. A file there that does not verify blocks every update until it is replaced or removed. Images from 1.0.0 carry only the older single-key signature and are still accepted.

The update flow

flowchart LR
  U[Upload signed installer ISO] --> V[Verify signature + checksums]
  V --> S[Stage onto target disk]
  S --> A[Apply: one-shot boot into in-place upgrade]
  A --> X[New version extracted beside the installed one, switched in]
  X --> R[Reboot; VMs, storage, config preserved]
  R --> C{Healthy within 20 min?}
  C -->|yes| K[Confirmed; previous version kept for Revert]
  C -->|no, or 2 failed boots| F[Falls back to the previous version]
  1. Upload the .iso in Lifecycle (for a cluster's hosts, also on the cluster's Settings → Updates, which then upgrades them one at a time). The controller verifies it and marks it staged.
  2. Apply. Staging writes the new image to the target's own disk and arms a one-shot boot into the unattended in-place upgrade. The upgrade extracts the new version cleanly beside the installed one, which nothing has touched yet, then switches to it: the appliance's data and settings (VMs, storage, accounts, keys, certificates, network, configuration) move into the new version, and the installed version is kept whole on the same disk as the previous version. Files the old image shipped and the new one dropped no longer pile up. If any upgrade step fails, or the power goes, the appliance switches back and boots the version it ran before. The Host reboots into the new version.
  3. The controller's own apply. For SimpleVirt-Command itself, the apply first refuses while anything is in flight: a running task (an evacuation, a maintenance entry, a migration, a planned reboot), a rolling cluster upgrade, a host update or an HA restart. The refusal names each one; wait for them, or type APPLY DURING OPERATIONS to apply anyway. It then takes an encrypted backup of the controller with the passphrase you enter (or the backup schedule's passphrase when one is set), keeps the database dump beside it, checks that the backup restores, and records path, size and SHA-256 of both on the Lifecycle page. A backup that fails stops the update. Once the backup is verified the apply checks again for operations in flight: one that started while the backup ran stops the update too (the backup is kept, and the Lifecycle page names it), unless it is one you already applied over by typing the phrase. Typing APPLY WITHOUT BACKUP skips the backup; that, and applying during operations, are recorded in the audit log.

Confirmation and automatic fallback

A new version has to show it works before it is final. After the update, the appliance watches its own services (simplevirtd and libvirtd on a Host, the controller service on SimpleVirt-Command): once they have run for five minutes without a single restart, the version is confirmed. Until then the boot loader counts the boots down. If the new version fails to boot twice, or its services are not up and steady within 20 minutes of a boot, the appliance restarts into the previous version on its own. A service that systemd still reports as starting does not count against the 20 minutes, up to two hours; SimpleVirt-Command's service reads as active while its first start migrates the database, so a long migration is never taken for a failure. The Lifecycle page says Confirming this version came up healthy meanwhile, and names a fallback afterwards.

The fallback restart is held to the same rules as any planned restart. Before it checks anything, the Host marks itself as about to restart, as an update apply does: from then on it starts no VM and SimpleVirt-Command places none on it (no HA restart, no load balancing move, no migration onto it), and every way out that does not restart removes the mark again. A Host restarts for the fallback only when no VM runs on it (when libvirt cannot answer, it looks at the running qemu processes; when it cannot tell at all, it does not restart), when the storage check for taking it offline passes (the same check a restart from the UI or the console needs, asked of the storage cluster directly), and when the previous version can still be switched to. It then arms the planned-outage protection first, so its disks rejoin without a rebuild (on a Host with SimpleVirt HCI storage, a protection that cannot be armed holds the fallback back too), and looks at its VMs once more right before the restart. When any of that does not hold, the Host keeps the new version and the automatic fallback is turned off for that version: no later restart (a crash, a power cut, a fence) switches back on its own. Lifecycle names the reason; revert by hand once it is safe. The watcher keeps checking on that boot, and confirms the version should its services settle after all. A new version that hangs before it starts counts as a failed boot only once the machine restarts, so power-cycle it (or its BMC does).

A rolling cluster upgrade waits for each Host to confirm its new version before it takes the next Host down: until then a Host may still restart on its own into the previous version. A Host whose fallback was held back stops the rolling upgrade.

Revert to the previous version

Administration → Lifecycle and updates → Revert to … (on a Host's row, and on the controller's band), the host console's Revert to Previous Version, or POST /api/v1/hosts/{id}/update/revert (Command) and POST /api/v1/update/revert (a Host's own API) switch back to the version the last update replaced. Only the operating system changes; everything made since the update stays. The version you leave stays installed, so the same action switches forward again.

  • A Host must be in maintenance mode with no VM active on it: a revert never stops, pauses or moves a VM, and there is no override. It passes the same storage check as an update (force overrides that check alone), and SimpleVirt-Command shields it from HA failover while it restarts, as for an update. It keeps to the version policy below: a Host is not reverted to a release more than one line behind SimpleVirt-Command (or, after a controller revert, to one newer than it). The Host checks this itself too, for a revert from its own web UI, its API or its console, against the release SimpleVirt-Command last told it (Command tells each Host its release when it starts and every 10 minutes after). A Host that is not paired, or whose Command is of a release before this one, does not know that release, and its own revert is not checked against the policy: revert it from SimpleVirt-Command. A Host that is a member of controller-independent HA is not reverted to a version known to keep that HA state in an older format, because its HA service could not apply what the newer version recorded and would refuse to lead; when the previous version predates that record, the Revert dialog warns instead (known limitation 55).
  • SimpleVirt-Command refuses while operations are in flight, like an apply (type APPLY DURING OPERATIONS to revert anyway). It also refuses while any Host already runs a release newer than the version it would go back to, and names those Hosts: a Host must never be newer than its Command, and the controller could stage no update for them until it is updated forward again. Revert those Hosts first, or type REVERT BELOW HOSTS to revert anyway. Its database goes back to the copy taken at the update, because an older controller cannot read a newer database: changes made in SimpleVirt-Command since the update are not on the previous version. They are kept with the newer version and come back if you switch forward. Applying a new update while on the reverted version deletes them: the update replaces the kept newer version, its database copy with it. The apply dialog warns when that is the case; switch forward instead to keep them.
  • From the boot menu. The GRUB entry SimpleVirt: switch to the other installed version does the same switch at boot, when neither the web UI nor simplevirtd is available. No VM runs while a host boots.

An appliance keeps one previous version. One installed, or last updated, by a release before this one has none until its next update.

Revert is the only way back. Uploading an older installer image is refused on SimpleVirt-Command and on a host (code: "update_downgrade" from a host's own API), as is any image below the appliance's anti-rollback floor (update_below_floor): the highest floor of any build the appliance has run, recorded in its data directory (rollback-floor), so it holds after a revert too. A revert itself is never held by the floor: it boots a version the appliance already ran.

Space for the kept version

The kept version takes the space of one more operating system on the root filesystem, the one that also holds the local datastore (/var/lib/libvirt/images). Lifecycle shows how much it uses and how much is free beside it. An update is refused, before it changes anything, unless the filesystem keeps a tenth of its size free afterwards (at least 4 GiB, at most 50 GiB), so thin VM disks there still have room to grow. A Host checks this before it restarts into the upgrade, with an estimate of the new version's size (the running version's image, and at least the size of the uploaded ISO), so an update that cannot fit is refused at once: Lifecycle shows it as not applicable, with the reason, and a rolling cluster upgrade stops before it takes that Host down. The upgrade checks again with the exact size once it runs; a Host that only just passes the estimate can still be refused then, and comes back on the version it ran. Delete kept version… (on a Host's row and on the controller's band, or POST /api/v1/hosts/{id}/update/previous/discard and POST /api/v1/lifecycle/command/previous/discard) deletes it to free that space; the appliance can then no longer switch back, until its next update keeps the version it replaces again. It is refused while the running version is still confirming itself, because the kept version is what it falls back to. See known limitation 55.

The Lifecycle table shows the whole fleet in one place: each Host's running version, what it has staged, whether it can apply, its previous version, and the outcome of the last apply (so a Host that verified an image but had its apply refused is distinguishable from one never touched). SimpleVirt-Command updates itself the same way.

Sequencing: update SimpleVirt-Command first (it backs itself up before it applies), then update Hosts. When the release changes the Ceph major, update the Hosts of an HCI cluster with the rolling cluster upgrade, not one by one (below); when it changes the PostgreSQL major and a standby controller is paired, remove the standby before the controller's update (below). Evacuate a Host before applying its update so its SimpleVirt HCI and SAN VMs keep running elsewhere during the reboot. A running VM on an NFS datastore is live-migrated only with NFS live migration (Tech Preview) on for the cluster (known limitation 3): otherwise, with one on the Host, applying the update refuses and names it. Shut it down or move it powered off first, apply with cold_relocate: true (SimpleVirt shuts it down, moves it and starts it on another Host, reporting the downtime), or enter maintenance first with "Also shut down the VM(s) that cannot move: …" ticked (it moves the other VMs off and shuts down only the ones it names), and then apply. The dialog's advanced override, "Reboot with those virtual machines still running", still moves every VM that can move off first and then reboots, shutting down only the VMs it named (destroying any that ignore the shutdown request).

Ceph major upgrade during a rolling upgrade

Every image of a release is built on one platform profile, which fixes its Ceph and PostgreSQL majors (component matrix (in the appliance's documentation)). When the hypervisor images of a release carry a newer Ceph major than the cluster runs, the rolling cluster upgrade also upgrades Ceph, in Ceph's order as far as updating one host at a time allows. A Ceph major changes only this way: updating one Host on its own from Lifecycle (with or without its evacuation) is refused on a Ceph cluster, with the code ceph_major_rolling_only, when the image staged on it is this release's and runs another Ceph major than the cluster, when the cluster already runs two Ceph majors (an upgrade stopped part way), or when the cluster's Ceph versions cannot be read. An update that keeps the cluster's Ceph major goes ahead as before. SimpleVirt-Command knows the Ceph major of its own release's images only: an image of another release staged on the Host, or one whose version SimpleVirt-Command could not read from the Host just then, is refused with ceph_major_unverified until you confirm in the apply dialog that it keeps the cluster's Ceph major (audited as host.update.apply.ceph-unverified). The same confirmation is offered when the cluster cannot be read now, for this release's image, when SimpleVirt-Command read the cluster all on that image's Ceph major within the last hour and no rolling cluster upgrade is running or has started since. An image whose version cannot be read is never applied while the cluster runs two Ceph majors or cannot be read. A placement group counts as clean only as active+clean, alone or with scrubbing, deep scrubbing or snapshot trimming; +inconsistent, +laggy, +wait and any other flag hold the run before the next host.

  1. Before the first host it checks the jump is one Ceph supports (at most two majors, from a minimum storage-daemon release no more than two majors behind) and that every file system has a standby metadata server, and refuses with the reason otherwise, touching nothing. It holds each file system to one active metadata-server rank with no standby-replay daemon, recording the original settings in the cluster; if the file systems do not settle so, it puts the settings back and stops with no host touched. When no host runs the new release yet (the hosts' previous release cannot change the file systems), this happens before the second host instead, and a file system with more than one active rank is refused before the first host: set it to one rank first (ceph fs set <name> max_mds 1 on a host), run the upgrade, and set it back once the upgrade has finished. Hosts that run a monitor go first (from the cluster's monitor map, where a monitor is named after its host), then hosts that run a manager, then the rest; a host whose metadata server holds a rank goes after the others in its group. When the run starts from hosts of the previous release, which cannot say where each manager runs, the remaining hosts are ordered again from what each one runs as soon as the first host is back on the new release.
  2. Before each host every monitor must be in quorum and every placement group active+clean (also while it scrubs, deep-scrubs or trims snapshots), on top of the usual resilience gate. A file-system rank on the host is handed to a standby on another host, the newest one, and the run waits until it is active there. The host's own noout, set when it applies the update, keeps its storage daemons from being marked out while it restarts.
  3. After each host its monitor must be back in quorum, and its monitor, manager, storage daemons and metadata server, checked in that order, must all report the new major. A host that came back on the new version but with a daemon on the old Ceph stops the run there.
  4. After the last host, once every Ceph daemon in the cluster runs the new major (the controller's own monitor, when it has one, moves with SimpleVirt-Command; a two-host cluster's storage witness is updated on its own, see below), it raises the minimum storage-daemon release to the new one (the host refuses this unless every storage daemon reports it) and gives the file systems their original rank count and standby-replay setting back.

A two-host cluster's storage witness is a standalone host, so the run does not update it, and its monitor must reach the new major before the run can finish. Update the witness on its own (Hosts, the witness, Update), before the run or once the run stops at its last step; the run's status and that stop name it. Its update is refused while the run is going (it would take a monitor away while members reboot), while a data host or disk is down, while a data host's reboot, shut down, maintenance or update is admitted and still running, or the other monitors would not be a majority without it, when its image would move its monitor to an older Ceph major, and when the image runs more than two majors past the cluster's oldest daemon; an image whose Ceph major is not known here asks for the same confirmation as on a member (known limitation 119). Then run the rolling upgrade again to finish.

The rolling upgrade's status (GET /api/v1/clusters/{id}/hci/rolling-upgrade) carries a ceph object while it does this: from_major, to_major, to_release, phase (hosts, finishing, done, stopped, or stood-down when the first host came back on the cluster's own Ceph, so the images carry no newer one), mds_single_rank and require_osd_release. A run that stops part way leaves the cluster on two Ceph majors, which Ceph supports during an upgrade, with the file systems still on one rank; run the rolling upgrade again to continue (hosts already done are skipped, and a run with no host left finishes the Ceph steps). The control-plane guardian does not add or set up Ceph daemons while the Ceph steps run.

While hosts on two QEMU versions run side by side, a VM started on an updated host has that host's newest machine type, and a move to a host still on the older QEMU is refused with both versions named (live and cold); restarting the VM does not change its machine type, so the move waits until that host is updated. An HA restart is never refused for it: it prefers a surviving host whose QEMU has the machine type, and on a host with an older QEMU the VM is started with its machine family's plain type (q35), which that host expands to its own newest. See known limitation 71.

PostgreSQL major upgrade of SimpleVirt-Command and SimpleVirt-Containers

When an appliance update carries a newer PostgreSQL major, the first start of the new version moves the database before anything opens it: a dump of every database and of the roles is taken into a major-upgrade-<old>-to-<new> directory beside the database (and kept), the data is moved, every table's row count is compared, and only then is the new database switched in. The move runs the old major's server from the previous version the appliance keeps for switching back and restores the dump into the new major, which only reads the old data directory; pg_upgrade --link, which leaves the old data directory unusable, is used only when there is no previous version that could run the old server but the image itself carries the old major's programs. The database initializer has up to two hours for the move, and the update's confirmation counts that time as the new version still starting.

The old major's data directory stays as it was, marked UPGRADED-TO-<new>, and the previous version uses it if you switch back. Whatever the previous version records there is carried forward: the next start of the newer version finds the old database changed since the move, puts the earlier copy aside (<database>.stale-<UTC time>; the newest three are kept, PG_STALE_KEEP, and the journal names any older one removed, which happens only once the new move has succeeded unless the move needs its space to start) and moves the database again. On SimpleVirt-Command a switch back also puts the WAL archive's spool back as it was at the update, so WAL of the newer database that was not shipped yet is never shipped by the previous version. If the move cannot be done (no space, no way to read the old major, a difference in the rows), the appliance does not start on an empty database: the database initializer stops with the reason in its journal (journalctl -u simplevirt-postgres-init on SimpleVirt-Command, journalctl -u simplevirt-containers-firstboot on SimpleVirt-Containers) and the update switches back to the previous version (on SimpleVirt-Command at once). A backup taken on an older PostgreSQL major restores onto a newer one; one from a newer major is refused.

A controller pair. A SimpleVirt-Command with a standby controller does not move its database while the standby is paired: the standby could take over in the middle of the move, and a moved database cannot stream to a standby of the old major. The new version's initializer refuses and the update switches back by itself. For an update that moves the PostgreSQL major: remove the standby, update the active controller, then add the standby again (it copies the moved database afresh). A standby never moves its own copy.

Continuous archiving after the move. The moved database is a new PostgreSQL cluster, so its WAL archive is a new generation: its objects carry -pg<major>-<cluster> after the controller tag (simplevirt-base-<tag>-pg17-<cluster>-…, simplevirt-wal-<tag>-pg17-<cluster>-…, the cluster part from the database's system identifier, so a second move after a switch back is a generation of its own), a base backup of it is taken at once, and retention and point-in-time restores look at one generation only. WAL the old database spooled and had not shipped yet is kept aside in the spool (.before-postgresql-<major>), never shipped among the new one's. simplevirt-command pitr picks the archive of the PostgreSQL major the appliance runs (of several generations of that major, the one whose newest base is no later than --time) and refuses another major's: a moment before the move is in the earlier generation, which restores only onto a version that runs that major. The earlier generation stays on the targets until you delete it.

SimpleVirt-Containers: backups and updates

Backups. On the SimpleVirt-Containers appliance console (unlocked with the console password), Back up now writes an encrypted backup to /var/lib/simplevirt-containers/backups. It holds the database (a pg_dump), appliance.env with the SECRET_KEY every stored kubeconfig and the directory bind password are encrypted with (a database restored without it cannot read them), the TLS certificate and key (linked products pin its fingerprint), and a manifest naming the version and the database revision. Backup schedule sets a daily backup at an hour you choose, how many to keep, the passphrase (at least 12 characters, saved on the appliance for root only) and, optionally, an SFTP server to copy each backup to; its host key is pinned (the form shows the key the server presents when none is entered yet). The same is available over SSH as sudo simplevirt-containers-backup create|list|verify|restore|schedule show. Copy backups off the appliance: one kept on its own disk protects against a broken database, not a lost disk.

Restore. Restore from backup takes a backup's name (one kept on the appliance, or on the schedule's SFTP server), or a full path to a file you copied onto it, its passphrase and the typed word RESTORE. It checks the whole backup first, refuses one taken on a newer version or another PostgreSQL major version, keeps a safety copy of the current database, and puts everything back if the restore fails. To replace a lost appliance, install the Containers ISO fresh, set the same SFTP server in Backup schedule (or copy the file onto it), and restore; sign in with the old appliance's web accounts afterwards. The web console is down for a minute; the clusters it manages are not touched.

Secret key rotation. Rotate the secret key (typed word ROTATE) makes a new SECRET_KEY, moves the old one to the front of SECRET_KEY_PREVIOUS in appliance.env, restarts the API on the new key and re-encrypts every stored credential (kubeconfigs, the directory bind password, identity provider, registry and webhook secrets, authenticator secrets) under it, then shows the console's own report with key ids, never keys. Before anything is written it checks that the installed backend supports rotation (simplevirt-containers-admin credential-keys runs and names the current key) and refuses otherwise, with the key unchanged; the new appliance.env gets its owner before it replaces the old one, so a failed write also leaves the key unchanged. Nothing becomes unreadable on the way: the old key stays listed until Remove previous secret keys (typed word REMOVE) takes it out, which it does only when the console reports that no stored credential needs it; if something is still under an old key, it re-encrypts that under the current key first and looks again. Re-encrypt stored credentials (typed word REENCRYPT) re-encrypts everything under the current key without making a new one, which finishes a rotation whose re-encryption stopped part way. A stored item that no configured key opens (for example one a lost key encrypted) is listed in the report as unreadable with every configured key; the actions say that re-running will not change it, the item has to be entered again where it is used, and it does not keep a previous key from being removed. First boot keeps SECRET_KEY_PREVIOUS across reboots and updates, a backup carries it with the key, and a restore brings the backup's previous keys with its key. Take a backup after a rotation: earlier backups hold the old key and still restore.

API workers. The SimpleVirt-Containers API runs 2 worker processes by default. On a small appliance, add API_WORKERS=1 (any whole number from 1 to 32) to /var/lib/simplevirt-containers/appliance.env over SSH and run sudo systemctl restart simplevirt-containers-api. First boot keeps the setting when it rewrites that file on every boot and update. Quotes and surrounding spaces (API_WORKERS="1", a trailing space or a Windows line ending) are accepted and written back as the bare number. It drops a value that is not a whole number from 1 to 32 with a warning in the boot log, and the default then applies. The memory two workers use has not been measured against the appliance's sizing.

The scheduled backup is checked hourly: a day's backup that fails (PostgreSQL restarting at that hour, say) is tried again at a later check that day, at most about once an hour, until one succeeds. Backups, restores and the database migration never overlap: the scheduled one waits for the next hourly check while another runs, and Back up now, a restore and the pre-update backup wait up to ten minutes for it, then say another one is running.

Database migrations. Every start runs the database migrations behind a dump: when a migration is pending the database is dumped to /var/lib/simplevirt-containers/backups/safety first, and a migration that fails is rolled back from that dump. The console's banner says what happened: A database update failed and was undone only when that dump was loaded back, and The appliance switches back to its previous version only while an update is on trial (the new version falls back on its own). Outside an update the web console stays down and the banner sends you to Service logs and Restore from backup: the dump could not be taken (a full disk, say), the database was written by a newer version, or loading the dump back failed (the dump is kept in the safety directory).

Updates. The SimpleVirt-Containers ISO carries a signed update manifest like the other two, so it updates an installed appliance in place, keeping its clusters, users, tokens, certificate and settings. Two routes:

  • From SimpleVirt-Command, with the appliance linked (K8s page): Lifecycle shows a SimpleVirt-Containers band with its version (and a note when it runs an older release than Command), the staged update, the outcome of the last one and the version it keeps. Upload an installer ISO… verifies the image on Command as a Containers image and against the appliance's version floor, then sends it; the appliance verifies it again before it keeps it. Apply … and restart… and Revert to … need full control.
  • Offline, for an air-gapped site: copy the ISO onto the appliance (for example with scp to the admin's home directory) and use the console's Apply an update image with its full path and the typed word UPDATE. The image replaces any update staged from SimpleVirt-Command, whose Lifecycle band then shows the version you applied. An image on another filesystem (a USB stick, say) is copied into /var/lib/simplevirt-containers-update only when the root filesystem the database shares keeps at least 512 MiB free beyond it; the image staged there before stays until the copy is complete, so its space does not count toward that. If /run/simplevirt is missing (first boot did not run), the console recreates it for the API's account before it hands over the request. The update directory and the spool belong to the API's account, so the console (which runs as root) refuses either one when it has been replaced by a symlink, and never writes or hands over a file through one; an image named in place (/var/lib/simplevirt-containers-update/staged.iso) must be a plain file with no second name. An image on the same filesystem is moved rather than copied only when it is a plain file with one name.

Either way the appliance's own updater verifies the image a third time, takes a database dump (and an encrypted backup when a passphrase is saved) right before the restart, and refuses the update if that fails. The new version confirms itself once its first start (the migrations), its API and its web console have run for five minutes without a restart, the API answering its health check and the web console serving its page; one that does not, or whose database migration failed, switches back to the previous version with its data directory as it was at the update, at once when the migration failed. Switch back to the previous version on the console, or Revert in Lifecycle, does the same by hand. The appliance's apt timers stay off: it is updated only by signed images. An appliance installed from an earlier image gets all of this with its first update, done the earlier way: boot the new ISO on it and choose the in-place upgrade. See known limitation 56.

Version skew. SimpleVirt-Command on release line N (major.minor) manages Hosts on line N and line N-1, so a fleet can run mixed versions for as long as a rolling update takes. A Host is never newer than its Command. That is why the controller goes first: it refuses to keep or stage a hypervisor image of a later release than its own, and Health Center flags a Host newer than its Command as critical and one more than a line behind as a warning. Within one release, any builds mix. A Host counts as updated only when it reports exactly the build it was given: a Host that rebooted but came back on its previous build fails the rolling upgrade and is not counted as done. Each Host's agent API version and capabilities show in the Lifecycle feed; see the API reference (in the appliance's documentation).

CPU microcode. Upgrading a host installed from an earlier release does not switch on the image's CPU microcode: the host keeps the microcode its firmware applied, so its CPU features, its place in HA failover, placement and live migration are unchanged. Switching microcode on (sudo simplevirtd microcode enable on each host, then a reboot) is a change of CPU. Reboot one host first: if Settings → CPU compatibility still lists it as Compatible, the others follow one at a time with no VM interrupted. If it is Incompatible, a VM started before the change cannot live-move onto a switched host, so rebooting the hosts one by one ends with the last host's VMs having nowhere to go; every VM then has to be shut down and started once, either after re-applying the profile (named-model profiles only) or in one window. The steps are in CPU microcode and device firmware. The host's Hardware tab and Command's CPU compatibility page show which microcode each host runs.


SimpleVirt HCI: health and capacity

SimpleVirt HCI is pooled, resilient cluster storage presented as a Datastore reachable from every member. The HCI console (Datastore → HCI) reports protection and capacity in plain terms; you do not manage the storage engine directly.

Health

  • Protection is proven from the live failure-domain topology, not inferred from configuration. Each Datastore reports its number of copies, minimum copies, whether copies are separated across Hosts, and how many Host failures it can currently tolerate. State is healthy, reduced, checking, or unknown. "Checking" is shown when protection cannot yet be proven either way — the host layout has not been read, or placement groups are still settling (re-peering) — and is escalated to reduced only if it never resolves; both checking and unknown are reported honestly rather than overclaiming protection that cannot be proven.
  • Watch for reduced protection after a Host or disk loss — it means the pool is rebuilding redundancy and can tolerate fewer further failures until it finishes.

Capacity

Capacity is layered, not a single division:

  • Raw — total physical.
  • Usable — theoretical after replication.
  • Available — the honest "how much can I actually still write," accounting for balance across Hosts.

Plan against Available, not raw. Add capacity (or investigate imbalance) as Available approaches your headroom threshold; capacity Alarms surface on the Health dashboard.


SAN datastores (iSCSI and Fibre Channel)

A SAN datastore is an iSCSI target, or the LUNs a Fibre Channel HBA sees, added to each host that should run its VMs. It holds VM disks, and its design is one whole LUN per VM disk.

How it works

  • A disk is a whole LUN. SimpleVirt never creates, resizes, snapshots or deletes a LUN. The VM's disk is the LUN itself, as a raw block device with cache=none. Create the LUNs on the storage array, map them to every host that should run the VMs, then rescan.
  • A LUN is named by its WWID. A disk opens /dev/disk/by-id/scsi-<wwid>. The WWID comes from the LUN, so the name is the same on every host. A /dev/sdX or by-path name carries the bus, portal or LUN number one host happened to get, and is never used. When multipath-tools has built a map from the LUN's paths, its udev rules point this same link at the map.
  • SimpleVirt-Command is the allocator. When you create a VM, or add a disk, on a SAN datastore, the controller picks the smallest LUN that is big enough and that no VM uses. It records a claim for it before it asks the host. A claimed LUN is never offered again. It also asks every other host that sees the LUN which of its VMs use it, so a LUN a VM uses is never handed out, even without a claim (for example a VM defined by hand). If a host that sees the LUN, or any host of the target cluster, cannot be read, the create is refused. In Postgres the WWID is the claim's primary key, so two controllers cannot claim the same LUN.
  • Only a blank LUN takes a new disk. The host reads the first 2 MiB and the last 1 MiB of every free LUN through libvirtd. A LUN with a partition table, a filesystem, a logical volume, a storage disk or any other non-zero data there is not offered, and neither is one the host could not read or, on an older release, did not check. Erase a LUN whose data is no longer needed (see Erasing a LUN below), or map a new one.
  • The host checks again before it defines anything: the LUN is in that datastore, its device link exists, it is big enough, no VM defined on that host uses it, and it reads blank.
  • A claim follows the outcome. It is bound to the VM when the host confirms the disk. It is dropped when the host refused the request before it defined anything. It is kept as pending when the answer never came, because the disk may exist. Deleting a VM with Delete disks, or removing a LUN disk with its volume, once the host confirms it, turns the claim to scrubbing (see Scrubbing a deleted disk's LUN below). Deleting a VM without its disks, or detaching a LUN disk without its volume, only releases the claim: the data stays on the LUN, and the blank check keeps the LUN from taking a new disk until it is erased. Either way the claim is kept as it is while another host still lists the VM or some host's inventory is unknown.
  • One kind of disk per VM. A VM's writable disks are all LUNs or none. The host refuses to add a LUN to a VM with another kind of disk, and another kind of disk to a VM on LUNs, because no single fence covers both: the Ceph blocklist fences only RBD images, an NFS lease only its own disk, and the owner-off proof is asked for only for a VM whose every disk is a LUN. A VM defined by hand that mixes them is never enrolled in HA or restarted by it, and a recovery start of one is refused on the host.
  • The allocator fails closed on hosts it cannot read. A host of the target cluster that cannot be read refuses the allocation. So does a host outside it, unless this controller read it before and none of its SAN datastores then listed a candidate LUN.
  • Power-on of a VM with a LUN disk is refused while another host runs a copy of it, and while any other host cannot be read and is not proven powered off, because nothing on a LUN would fence the other copy. A takeover confirmation does not lift this.
  • Live migration keeps the disk in place: the destination opens the same LUN. The move is refused when the destination does not see every LUN of the VM, or when another VM there uses one. A copy move (storage migration, a cold move with copy, clone, template, snapshot) is refused for a LUN disk. Use the array to copy the LUN.
  • HA restart uses the owner-off fence tier. A LUN has no arbiter of its own: no exclusive lock, no lease, no blocklist, and a host that only lost its management network keeps writing. So HA restarts a VM whose every disk is a LUN only once the failed host is proven powered off: its BMC reports Off on read-back, or you confirm it on the cluster's High availability tab. These are the same proofs, under the same rules, as for an NFS VM (Known limitations §15). After the proof HA waits 5 seconds, so writes already on their way reach the array. A survivor must see every LUN of the VM. The cluster services, which restart VMs without SimpleVirt-Command once armed, take a SAN VM once every host runs this release and the VM's host has a Ready BMC, and restart it on BMC proof alone: the host that restarts it powers off, through its BMC, every host that may still write the LUNs (the failed host, and any host an earlier attempt of the same outage was sent to), waits 5 seconds and starts it (Known limitations §96). Any other SAN VM is restarted by SimpleVirt-Command whether the cluster is armed or not: while the cluster services hold HA authority it handles the failover of those VMs, and of nothing else, and leaves every VM the cluster services hold a record for to them. Such a VM is not restarted while SimpleVirt-Command is down. The host's adopt gate does not ask for a cluster authorization for a VM whose every disk is a LUN; its single writer rests on the owner-off proof and on the host's own check that no VM defined there uses its LUNs.
  • After a failover the returned host still has the VM defined, stopped. It cannot be started while the survivor runs the VM (see Power-on above). Delete that copy on the returned host, definition only, once the VM runs on the survivor; while that copy exists, deleting the VM on the survivor keeps its LUN claims.
  • A LUN never becomes SimpleVirt HCI storage. A blank LUN looks like an empty local disk, but every host it is mapped to writes the same blocks. The SimpleVirt HCI disk picker never offers a LUN, a multipath path, or a disk another host also reports, and the hosts refuse to build storage on one, including when SimpleVirt replaces a failed disk on its own. See Which disks it uses.
  • No libvirt autostart. A VM with a LUN disk never carries the libvirt autostart flag, and the flag is cleared on one that has it. If HA had restarted the VM elsewhere, a copy started by the old host at boot would be a second writer. Start such a VM from SimpleVirt-Command after a host reboot.

Adding one

  • iSCSI: choose New datastore → iSCSI target, give the portal and target IQN (and CHAP if the target needs it), and pick the hosts. Each host logs in under its own initiator name, made on its first boot. Map the LUNs to every one of those initiator names on the target.
  • iSCSI path redundancy: list the target's other portals in Additional portals (multipath) (API: "portals": ["10.0.1.20", "10.0.2.20:3260"]). SimpleVirt then keeps one iSCSI session per portal itself, through open-iscsi (libvirt's iSCSI pool logs into one portal only, and finding any session to the target it logs in nowhere else): each host asks every portal that answers whether it offers the target (sendtargets discovery) and logs in there, and the libvirt pool only reads the LUNs through those sessions. dm-multipath joins each LUN's paths into one map, which the LUN's WWID link names. A path that fails is dropped by the kernel and the VMs keep running on the others; with every path down, I/O is held for about a minute, then fails, which pauses the VMs until a path is back (/etc/multipath.conf, shipped by SimpleVirt, no_path_retry 12, for an array multipath-tools has no built-in entry for; an array it knows keeps its own vendor settings). Each host checks every minute how many paths each LUN has and how many run, and raises san.path.degraded (fewer working paths than portals) or san.path.lost (none) after two readings in a row; the datastore list carries the last reading as san_paths, and each portal's session state as iscsi.portals.
  • Any portal brings it up. The datastore is added, and comes up after a host restart, through any one portal that answers: the first one may be down. A portal that is down is retried every minute and logged into as soon as it answers; until then the LUNs read degraded. A portal that answers but refuses the login (wrong CHAP, target not offered to this host) is retried every five minutes and named in the datastore's iSCSI paths card; a CHAP refusal also raises san.portal.auth. A session that stays failed for three minutes is logged out (only while each of its LUNs has another working path) and logged in afresh when its portal answers, so the LUN list is never read through a dead path. The datastore's libvirt pool names the portal of the session its LUNs are read through (SimpleVirt sets it when it starts the pool). If that session goes down while the pool, or a hidden companion pool an earlier release left running, names another portal, it is logged out on the next pass rather than after three minutes: a restart of the host's virtualization service would otherwise log the host out of the portal that pool names, a working path. While that cannot be done (a VM holds the dead path open), san.path.restart_risk is raised: avoid restarting the host or updating it until the portal answers again. The immediate logout is tried once per dead session; then the usual three-minute retry applies.
  • Changing the portals or CHAP of an existing datastore: open the datastore and use Edit paths and CHAP… on its iSCSI paths card (API: PUT /api/v1/hosts/{id}/datastores/{name}/iscsi, body {"portals": [...], "chap_user", "chap_secret", "clear_chap", "mutual_user", "mutual_secret", "clear_mutual"}, every field optional, a blank secret keeping the stored one). The card applies it on every host that mounts the datastore. Each host converges at once: it logs into new portals, and logs out of a removed portal only once every LUN it carries has another working path. A removed portal that is still a LUN's only working path, or the path a VM started before the LUN had a second path still opens directly, stays, shown as Being removed with the reason, and is logged out by a later pass once that is safe. The datastore is never unmounted and no VM is paused. A change the host cannot apply (its storage helper busy or unavailable, a secret it does not have, no session through the new settings on a datastore libvirt logs in, counting only a session that logged in through them or whose CHAP the change left as it was) changes nothing on that host and says why; try it again there. On a datastore libvirt logs in, the host's helper tries the change first and, when no session runs through it, puts back the open-iscsi records and its CHAP store as they were (Known limitations §32 has the one case where it cannot). Declaring the datastore again with the same target only adds: new portals and a new CHAP name or secret are applied, but a portal left out stays, and blank CHAP or mutual CHAP fields keep CHAP and mutual CHAP as they are (secrets are never shown again). Removing a portal or turning CHAP off is done with Edit paths and CHAP….
  • CHAP and mutual CHAP: with CHAP the target checks each host's CHAP name and secret. With mutual CHAP (Mutual CHAP username and secret, API mutual_user, mutual_secret) each host also checks the target, which must answer with that name and secret (set on the array as the target's own credentials, often called the target or reverse CHAP secret); it must differ from the CHAP secret. A host never logs into a mutual-CHAP datastore without that check. The secrets are write-only: the API and the UI never show them again, and they are not logged. Each host keeps them root-only: in a store under /etc/iscsi/simplevirt-auth/ (mode 0600) and in open-iscsi's own node records. New CHAP settings are used by every login from then on; a session that is already running keeps the credentials it logged in with until it next logs in. So a change made while every path runs a session has not been tried by any login: on a datastore SimpleVirt keeps, the change is kept, the host's iSCSI paths entry says it has not been tried, and san.portal.chap_unverified is raised until a login uses it (check the array's settings before restarting or updating that host). On a single-portal datastore libvirt logs in, such a change is refused and nothing is changed, so libvirt's working CHAP is never replaced by settings nothing has tried: add another portal in the same change (its login tries them), or make it while the host has no session to the target.
  • Upgrading from a release that added portals as extra pools: those datastores are taken over on the first pass after the update, with nothing stopped: their portals become the datastore's settings, and the hidden <datastore>+path<N> pools stop autostarting and are removed once a host restart leaves them inactive. A single-portal datastore without mutual CHAP stays exactly as it was (libvirt logs it in) until you give it a second portal or mutual CHAP.
  • Fibre Channel: choose New datastore → Fibre Channel on each host, with that host's HBA (or a WWNN/WWPN pair for a virtual HBA), under the same datastore name on every host.
  • After mapping new LUNs, list them with GET /api/v1/hosts/{id}/datastores/{name}/luns?rescan=1. A LUN whose device link does not exist on a host is shown as not present and is never used.

Claims

GET /api/v1/san/claims lists every claim: the LUN, the VM, its state and a note. A pending claim whose create never answered blocks its LUN until you release it with DELETE /api/v1/san/claims/{wwid} (datastore.manage). The release is refused while any host reports a VM using the LUN, and while any registered host cannot be read.

Erasing a LUN

A LUN that holds data (a deleted VM's disk, an old volume) is never given to a new disk. When its data is no longer needed, erase it with POST /api/v1/san/luns/{wwid}/erase (datastore.manage), body {"host_id": "<a host that sees it>", "datastore": "<name>", "confirm": "<wwid>"}. SimpleVirt-Command refuses while the LUN has a claim, while any host reports a VM using it, while any host has it open (a logical volume such as a storage disk, or a mount), and while any registered host cannot be read or runs an older release. The named host checks again and then writes zeros over the first 2 MiB and the last 1 MiB, which removes every partition table and signature there. The rest of the LUN is not overwritten: to destroy the old data itself, erase the LUN on the storage array. Each erase is audited (san.lun.erase).

Scrubbing a deleted disk's LUN

When the VM disk on a LUN is deleted (the VM deleted with Delete disks checked, or the disk removed with its volume), SimpleVirt-Command zeroes the WHOLE LUN before it may take another disk. The claim turns scrubbing; the allocator never offers a scrubbing LUN, and the erase above refuses it. One LUN at a time, SimpleVirt-Command proves on every registered host that no VM uses it and nothing holds it open, then asks a host that sees it to zero the next slice (POST /api/v1/agent/datastores/{name}/luns/{wwid}/scrub, about 20 seconds each, at no more than 128 MiB/s on average). The host checks its own VMs and holders again on every slice, reads each 8 MiB chunk and writes zeros only over a chunk that holds data, so a thin LUN's unwritten space is not allocated; the chunks with the first 2 MiB and the last 1 MiB (the windows the blank check reads) are always written. On a multipath LUN the host drops its cached copy of the LUN first, on every slice and before the final read-back, so no read is answered from data cached before another host wrote the LUN; when it cannot, the slice writes nothing and is tried again. The claim records where the scrub is (scrub_offset, scrub_total) and its note says why it waits, if it waits; a controller restart resumes from there. When the whole LUN is covered and the blank check reads it blank, the claim is removed and the LUN is free. The start and the finish are audited (san.lun.scrub.start, san.lun.scrub); the host audits the slice that finishes the LUN and every slice that fails (datastore.lun.scrub). A host on an older release cannot scrub: the LUN stays claimed until a host that sees it is updated. Releasing a scrubbing claim by hand stops the scrub and leaves the rest of the old data on the LUN; the release is refused (409) while a slice is writing, so try again a minute later. A VM deleted without its disks, or a disk detached without its volume, is never scrubbed: its data stays on the LUN for you to copy off.

Shared-LUN datastores (Tech Preview)

A shared-LUN datastore is made from blank LUNs of an iSCSI or Fibre Channel datastore. The LUNs become one LVM volume group shared by the member hosts and locked with lvmlockd and sanlock (lock type sanlock, the locks on the LUNs themselves), named svsh_<datastore>. Every VM disk on it is a volume of that group, a raw block device at /dev/svsh_<datastore>/<volume> with cache=none. It is a Tech Preview (known limitations §81).

  • Making one. POST /api/v1/san/shared-datastores (the Make a shared-LUN datastore… dialog) takes {name, host_id, base, wwids, hosts}. SimpleVirt-Command refuses a LUN that has a claim or that a VM on any host uses, gives every member host a sanlock lock id, claims each LUN (claim disk shared-lun-datastore, never released by hand), and asks the first host to read each LUN (it must be blank, as for a whole-LUN disk) and make the volume group. The other hosts then join it. GET /api/v1/san/shared-datastores lists each datastore with every member host's report; POST …/{name}/hosts {"host_id"} adds a host and DELETE …/{name}/hosts/{host} takes one out (refused while a VM there has a disk on it; for a member host since deleted from SimpleVirt-Command it only drops it from the datastore's record), both also on the datastore's Shared-LUN lock card (Add host…, Remove from LUN…); DELETE …/{name} {"confirm": "<name>"} removes it.
  • Leftover volumes. The list also carries each datastore's leftover disk volumes: those no member host names in a VM, holds for an operation or has active, over 15 minutes old, listed only once every host was read (leftover_note says why not, otherwise). The members are the recorded ones and every host that reports the datastore itself, recorded or not. The card lists them; DELETE …/{name}/volumes/{volume} {"confirm": "<volume>"} (Delete…) reads every host again and deletes one only if it is still left over. Nothing is deleted on its own.
  • On each host. The settings (the LUNs and the host's lock id) are kept under /var/lib/simplevirt/san-shared/. Every reconcile pass starts sanlock and lvmlockd when they are down, starts the volume group's lock, and raises san.shared.lockspace while it cannot. sanlock runs with use_watchdog = 0 and sanlock's own wdmd is masked: the host watchdog stays with the NFS lease fence. Every LVM command on the volume group is limited to its LUNs (--devices) and carries lvmlockd and the lock id in --config, so the host's other LVM (HCI disks) is unchanged. The host's root storage helper runs them (simplevirtd san-lvm) in two queues of their own: one for short commands (activations, snapshots, status reads) and one for disk zeroing and copying in 512 MiB pieces and for lock starts, so neither waits behind the other, nor behind an iSCSI login. A new datastore is made only once every other shared-LUN datastore's lock runs on the host making it, and a host that finds the lock manager's global lock in two of them turns off the duplicate.
  • Locks. A VM's volumes are active exclusively on the host running it, taken when it starts (an HA restart waits up to 90 seconds for a failed host's lease). A live migration shares them: the source turns its lock shared, the destination takes a shared one, the move runs, the source lets go and the destination takes the lock exclusively; a move that fails gives it back to the source. A volume nothing on a host uses is deactivated there a few seconds after a VM stops or is undefined on that host, and otherwise on the second reconcile pass that finds it idle.
  • Disks, snapshots, copies. A new disk (and a disk's grown space) is zeroed before a VM sees it, apart from the request: the volume carries the LVM tag sv_zero=<from>-<end> until every byte of that range is zero, and while it does the VM does not start, a running VM is not shown the new disk, and the disk is not snapshotted, copied or moved live. Every change of the tag replaces whatever sv_zero tags the volume carries, and its removal is confirmed by a read; a volume a running VM on the host has open is never zeroed, and a zeroing starts only from the mark read again once the host holds the volume's exclusive lock. A disk grows only while its VM is shut down. A create, add-disk or grow that the zeroing outlasts answers with a warning saying so; any member host goes on with a zeroing that stopped. A snapshot is a copy-on-write snapshot of each disk, taken together; revert merges it back (VM shut down), delete removes it. A clone or a template deploy copies each volume into a new one of the same datastore, with the source's volumes locked shared on the copying host so no host can start the source meanwhile. Deleting a VM with its disks, or removing a disk with its volume, through SimpleVirt-Command first reads every host: it is refused while another host's VM (running or not) names the volume, has it active, or a host cannot be read. LVM itself refuses while another host has the volume active.

Stretched Cluster operations

A Stretched Cluster spans two sites plus a Witness for tiebreaking. It has two storage backends:

  • SimpleVirt HCI — SimpleVirt owns a synchronous cross-site copy of the data (Ceph stretch mode + a tiebreaker monitor at the Witness) and requires a Witness. This backend does survive the loss of an entire storage site, because a complete copy already lives in the surviving site.
  • NFS Shared — an external shared Datastore reachable from both sites, which your storage layer has already replicated between them. Here SimpleVirt owns compute HA and fencing only; it does not make the external array itself survive a storage-site loss. Use it only when your storage is already stretched by other means.

Tech Preview (support status (in the appliance's documentation)): two-datacenter hardware validation is pending. Every readiness check is fail-closed: a cluster that is not a genuine two-site topology with a Witness can never be activated. Treat a first activation on real two-site hardware as a carefully monitored change. See Stretched cluster (in the appliance's documentation).

Readiness (always start here)

Stretched Cluster → Readiness. The engine answers one question honestly: is this cluster a valid, safe stretched cluster right now, and if not, exactly which requirements are unmet.

  • It blocks, it does not warn-through: the cluster is Ready only when every required item is provably met. A required item that cannot be evaluated is unknown, and unknown never counts as ready (fail-closed).
  • Requirements (reachability, MTU, two-site topology, Witness) block. Recommendations (latency, bandwidth) are advisory and never block.
  • A single-site cluster correctly comes out Not Ready, with the exact missing topology named.

Configure and enable

  1. Configure intent (PUT). Records the desired stretched topology — Site A / Site B / Witness — as intent only. It does not activate storage stretch mode or change site networking.
  2. Preview the activation plan. Non-mutating; never implies enablement.
  3. Enable. Refused unless the cluster is Ready. On the SimpleVirt HCI backend, enable activates stretch mode (site-separated placement across both sites with a tiebreaker) idempotently and rolls back on any partial failure; activation is audit-logged.
  4. Disable withdraws stretch arbitration and clears the enabled flag (it does not, by itself, relax redundancy settings).

Site maintenance

Draining a whole site is a controlled, reversible site "loss." Stretched Cluster → Site Maintenance → Precheck proves the surviving site can safely carry everything before you drain: it reports the number of VMs that must move, the surviving site, the memory to relocate versus the surviving site's free memory, and any blockers (worst-first). The precheck is fail-closed — any blocker refuses the drain. It mutates nothing; confirm before proceeding.

Degraded and recovery

The site-protection rollup reports one of: protected, degraded, recovering, or unknown.

  • Degraded — a site or link is impaired; the surviving site continues to run workloads, arbitrated by the Witness. Do not start a planned site drain while degraded.
  • Recovering — the impaired site is back and redundancy is rebuilding across sites. Let it reach protected before the next planned maintenance.
  • Unknown — SimpleVirt cannot currently prove the posture; investigate reachability to the sites and the Witness before making changes.

Logs and events

Where to look when you need detail beyond the dashboards.

In-product

  • Events — the append-only, merged fleet activity stream (every reachable host's audit tail plus the controller's), served as a 30s-cached snapshot the console polls (GET /api/v1/events).

  • Tasks — per-operation progress and outcome.

  • Alarms — persisted health alarms. An alarm fires when one of the health thresholds first breaches, stays until the condition actually goes away, and can be acknowledged by name so the rest of the team can see somebody owns it. GET /api/v1/alarms is what is open now; GET /api/v1/alarms/history is what has been open — including alarms that have since cleared, which is how you answer "was anything wrong overnight" the next morning. Acknowledging an alarm never clears it: only the condition clearing does that. It does take the alarm off the console's attention surfaces (the Health badge, the status of a host, cluster or the datacenter, Home's issues and the object Alarms cards, which say only how many acknowledged alarms are still firing); the Health Center keeps listing it until it clears, and a condition that comes back is raised again unacknowledged. An acknowledged alarm whose severity rises (warning to critical) is escalated: it loses its acknowledgement and shows everywhere again.

    A configured webhook is notified on every fire, escalation, acknowledge and clear (see known-limitations §7 — it is off unless you configure it).

Support bundle

Administration → Backup and restore → Download support bundle (administrators only) asks what to include — the controller only, every host, or the hosts you pick — a time window (1 hour to 7 days) and a size limit per host, then downloads one .tar.gz.

  • The controller's part (top level): build versions for the controller and every host, the controller's configuration, the fleet and cluster inventory, recent tasks, HA state, the alarm list and history, and the tails of the controller's audit and service logs.
  • Each host's part (hosts/<name>/, collected from the hosts in parallel): the simplevirtd log and the host's audit trail inside the window (the active audit segment and the rotated segments that overlap it), a journal window for simplevirtd, the cluster services, libvirt and Ceph, the kernel log (dmesg.log), the QEMU logs of VMs active in the window, every VM's domain definition, Ceph status, health detail, crash list, OSD tree, df and monitor map, the cluster services' status, ip addresses, routes and links, the firewall rules the appliance loaded, and versions. The host's manifest.json lists every item and whether it was collected, truncated, partial (the command stopped early, from a timeout or an error, and the note says why: what it printed is kept, but it is not the whole window), absent, failed or left out at the size limit.
  • A host that cannot be read gets ERROR.txt with the reason instead of its files, and fleet-manifest.json lists every host's outcome; the rest of the bundle still downloads.

The API is the same request: GET /api/v1/support-bundle?hosts=all&since=6h&max_mb_per_host=24 (hosts also takes host ids or names, comma-separated; since a duration or an RFC 3339 time, at most 14 days; max_mb_per_host at most 128). Without hosts it is the controller's part only. Sign in as an administrator and send that session's cookie — a GET carries no CSRF token, see API reference (in the appliance's documentation).

Secrets are redacted. Host bearer tokens, the directory bind password, Kubernetes join tokens and kubeconfigs, the database password, private keys, session cookies, Authorization headers, Ceph keys and VNC passwords are replaced with [REDACTED]; the controller scrubs every host file again with its own secret catalog. Only fixed collectors run — a request chooses the hosts, the window and the size, never a file or a command. Read a bundle before sending it outside your organization: a secret in a shape the scrubber does not know could still be in a log line (known limitations §11).

Collect it while the fault is still live: it is a point-in-time snapshot, and a host's journal is in memory, so a host that has rebooted has only its simplevirtd log file from before.

Where to send it. To SimpleVirt support at support@simple-virt.com, or the channel your support agreement names. How support uses, keeps and deletes it is in Privacy and support data (in the appliance's documentation). Keep your own copy: it is the evidence, and it is the part that cannot be reconstructed later.

Log forwarding

Administration → Notifications → Log forwarding and audit sends the logs of the controller and every host to your syslog receiver over TLS (RFC 5424 messages, RFC 5425 framing):

  1. Enter the receiver as host:port (6514 is the usual syslog-over-TLS port), paste the certificate authority that signed its certificate (empty: the system's trusted authorities), and, if the certificate names the receiver differently, the name to check.
  2. Choose the logs: the management daemon, the cluster services, libvirt, the QEMU logs, the kernel, Ceph and the audit trail (with its signed checkpoints). All are on by default. At least one must stay ticked; to stop sending, untick Forward logs instead (the settings are kept). In the API, a sources list must name at least one source, and leaving the field out means every source.
  3. Send test sends one message from the controller; tick Send the test from every host too to have each host send one too — a host on another network may not reach the receiver the controller reaches.
  4. Save and apply, in the bar at the end of the Notifications page (it saves every card on the page that has changes). Command applies it to itself and pushes it to every host within a minute; each machine keeps its copy.

The Machines list under the card shows, for each machine, whether forwarding is working (lines sent, the last send, a failing receiver and since when, what is waiting in the queue, lines dropped at the queue's limit) and whether its audit trail is writable. Log forwarding failing (warning) is raised after 10 minutes of failure; The audit trail cannot be written (critical) at once. The same card sets how long every machine keeps its audit trail (365 days by default) and has Verify audit trail, which checks the controller's hash chain and signed checkpoints; on an appliance, simplevirt-command audit-verify or simplevirtd audit-verify does the same.

API: GET/PUT /api/v1/logs/forwarding, POST /api/v1/logs/forwarding/test[?hosts=all], GET /api/v1/audit/verify (all admin.users). What it does not cover is in known limitations §75.

On the appliances (systemd)

Use systemctl status <unit> and journalctl -u <unit> on the appliance.

SimpleVirt-Command:

Unit Role
simplevirt-command.service The controller
simplevirt-postgres.service, simplevirt-postgres-init.service Bundled state store
simplevirt-command-console.service On-appliance console
simplevirt-netcheck.service Management-network self-check

SimpleVirt-Hypervisor (Host):

Unit Role
simplevirtd.service The host agent (must be active for a healthy Host)
simplevirt-cephd.service, simplevirt-ceph-boot.service SimpleVirt HCI storage engine. At boot, simplevirt-ceph-boot starts only the local storage daemons that are not running; a daemon that is already running is left alone, so re-running it (systemctl restart simplevirt-ceph-boot) on a live Host does not pause VM disks
simplevirt-wdmd.service HA watchdog / fencing
simplevirt-migration-host.service, simplevirt-migration-peers.service, simplevirt-migration-tls.service Live-migration endpoint pinning and the migration peer firewall
simplevirt-updater.service Applies a staged installer ISO
simplevirt-console.service On-host TUI
simplevirt-usermgr.service Local user management
simplevirt-netcheck.service Management-network self-check

The Host TUI (simplevirt-console) and the Command TUI (simplevirt-command-console) also give on-appliance status and recovery entry points when the web console is unreachable.


The host console

Each host's local screen (tty1) runs the SimpleVirt console, for break-glass access when the web UI cannot help.

The console is locked. Anyone who reaches the screen, at the rack or over the server's remote KVM, reaches the console, so every action that changes the host asks for an admin login first. Test Management Network, Network Diagnostics and the pairing status open without a login, because they change nothing.

  • Configure Management Network and Restart Management Network need the admin username and password only, even when the host has a second factor. You are usually at the console because the network is down, and a host without a network has no time source: its clock may have drifted too far for a one-time code.
  • Everything else that changes the host needs the password and the host's second factor when it has one: Set Hostname & Domain, Create Admin User, disconnecting from SimpleVirt-Command, Toggle SSH, Enter Shell (and F2), Revert to Previous Version, Factory Reset, Restart and Shut Down. If you unlocked with the password for a network change, these ask for the code alone. The code prompt shows the host's clock; if it is wrong, use one of the host's recovery codes.
  • Once you sign in, the console stays unlocked for that admin until Lock Console, five minutes without a key press, or the end of a root shell. The status rows show who unlocked it, and when the unlock covers only network repair. A screen left open locks too: the next key press closes it. A network change waiting for you to keep it is the exception, so its automatic revert always runs.
  • Five wrong passwords or codes in a row hold the login for 60 seconds. Wrong recovery codes count too, also while the host cannot open its sealed second-factor secret.
  • The root shell logs itself out after five minutes at its prompt. Programs you start from it do not inherit that limit.
  • Create Admin User sets a password of at least 12 characters that does not contain the username. Without a login it works only on a host that has never had an admin account, which is the state a factory reset leaves. The first admin you create then unlocks the console, and from then on Create Admin User needs a login like everything else. The host records that it has had an admin in /etc/simplevirt/admin-provisioned, which only root can write and only Factory Reset removes, so an emptied account store does not reopen this path. For an existing admin it sets a new password and keeps the account otherwise. If the account is saved but a later step fails (for example the SimpleVirt service does not restart), the result says which; the account stands.
  • Every change and every sign-in, failed or not, is recorded with the admin's name: in the host's audit trail and in the root-only log /var/log/simplevirt-recovery.log on the host, which a factory reset leaves in place.
  • There is no other text login on the screen: tty2 to tty6 are switched off, because a login prompt there took an OS password alone, without the console lock or the second factor. A host whose console does not start is recovered in single-user mode (see Emergency recovery (in the appliance's documentation)).
  • The home screen shows the Certificate fingerprint SimpleVirt-Command's Add hosts asks you to compare, and whether SSH is on and accepts passwords (with a warning when it does).
  • Over SSH (off until you turn it on), simplevirt opens the same console without the lock: you already signed in, and sudo asks for your password. Its actions are recorded under your account name. See Hardening (in the appliance's documentation) and known limitation 36.
  • Locked out, with no admin password? See Emergency recovery: a hypervisor host (in the appliance's documentation).

Every screen is laid out the same way. Tab, Shift+Tab, Up and Down move between the fields of a form, and a setting with two values (the team mode, sharing with VM networks) is a switch that Left and Right change. A refused change says why in one red line under the form.

Its actions that can hurt running VMs check first:

  • Set Hostname & Domain refuses on a host paired with SimpleVirt-Command, enrolled in a cluster, or part of the distributed storage: the rename would replace the certificate Command pinned and leave the cluster and storage under the old name. The screen says the order that works: take the host out, rename it, add it back (known limitation 113).
  • Configure Management Network is two steps: pick the port (the list shows each port's link state and address), then how it gets its address. Addressing is a switch between Automatic (DHCP) and Static; Left and Right change it, and the address and gateway are asked for only with Static. Esc on the second step goes back to the port list. It lists only ports that are free: a port already used by a VM network, a team, or recorded as a switch uplink is not offered. It refuses, before changing anything, to remove the old management VLAN interface while VM networks ride it, and to change the management address while VMs run on an NFS datastore this host reaches from that address (see known limitation 24). When the change goes ahead with an NFS datastore still mounted, the console keeps the old address, remounts the datastore from the new address while no VM uses it, and removes the old address once no NFS connection uses it (a restart of the host also removes it). It says which datastore holds the address and why. When libvirt cannot be asked which VMs are running, it says so and applies only when you press Enter a second time. A change that may cut you off is still held for two minutes and reverts on its own unless you keep it.
  • Restart Appliance and Shut Down Appliance ask the host's SimpleVirt service what is running first. When VMs run or the host holds distributed storage, you type the host's name to confirm, and the action goes through the same storage-safety checks as the web UI: a restart arms the planned-outage protection, and a storage host is shut down only from maintenance mode. If the checks refuse, the reason is shown, and typing FORCE overrides it. If the SimpleVirt service cannot be reached, the console warns that storage safety was not checked and that VMs will be force-stopped, and acts only after you type FORCE. To keep VMs running, put the host in maintenance from SimpleVirt-Command first; it moves them.
  • Factory Reset refuses while a VM on the host is running or paused, or while an NFS datastore is active on it: remove the host from its cluster first. It also refuses on a host that holds SimpleVirt HCI storage disks or a monitor (decommission it from storage first, under SimpleVirt HCI, Hosts and disks), because its restart would otherwise skip the storage safety checks, and while the host is still a member of its cluster's HA service, or when that service cannot confirm it has left. It erases the web users, every admin's shell (SSH) account, any lab hot-deploy accounts and root's SSH authorized keys, the host's TLS certificate and SSH host keys (new ones are made), two-factor setup, license, audit log, the SimpleVirt-Command pairing, and the host's whole cluster-service identity (its state, keys and enrolment), turns SSH off, then restarts the host (see Hardening (in the appliance's documentation)). It runs at the host's own console as root (the console menu on its screen or remote KVM, or simplevirt in that console's Enter Shell), not over SSH and not from an admin's own login through sudo, since it removes that account. It keeps datastores and their VM disks, ISO and OVA files, and the network settings, and it deletes nothing while storage is mounted under a path it would remove.

At every boot, before the SimpleVirt service starts, the host also brings its network service files up to date: the network service never takes a VM network device for the management port and never pulls a port out of a VM network or a team. When it changed a file, it reloads the network service right then, before the SimpleVirt service builds any VM network device, so the new files apply from that boot on. Run again while VMs are up, it only writes the files, and they take effect at the next boot; it never restarts the network service. The per-port protection is the catch-all's KeepMaster setting: SimpleVirt does not write a separate network file for each port it puts into a VM network or a team, because the SimpleVirt service runs unprivileged and cannot write the network service's configuration.

Changing a host's management address

A host's identity is not its address: SimpleVirt-Command knows each host by its pinned certificate, its access token and an instance id the host keeps for its whole life. When a host's management address changes (the console's Configure Management Network, a DHCP lease, a hand edit), SimpleVirt follows it on its own:

  • The host tells SimpleVirt-Command its new address. SimpleVirt-Command connects back to it there and proves it is the same host (certificate, token and instance id) before its record moves. A changed certificate, a second machine answering for the host, or an address another host holds is never followed on its own: it raises the alarm host.address.conflict or host.address.approval_required, and the host's page offers Follow to the new address or Not this host.
  • The cluster services re-address the member in place, so the host stays in quorum. SimpleVirt re-checks this on every sample until both sides agree, and host.address.unreconciled says when they do not yet. A SimpleVirt HCI monitor on the host is re-addressed the same way (host.storage.ceph_readdress while that runs).
  • The audit log records each step (host.address.detected, host.address.verified, host.address.followed, host.address.cluster_readdressed), and the host's page shows its address history.

NFS datastores are the exception: the NFS client keeps its connections on the old address, so the console refuses the change while VMs run on an NFS datastore reached from that address (see The host console and known limitation 24). A DHCP lease change gets none of that protection: give hosts static addresses or DHCP reservations. To change an address on purpose, follow Change a host's management address (in the appliance's documentation).

Quick reference

Task Where
Check fleet status Health, Tasks, Events, Alarms
Reboot a Host, keep VMs up Preview → Evacuate → Enter maintenance → service → Exit (HCI and SAN VMs, and NFS VMs with NFS live migration on; otherwise shut NFS VMs down, move them powered off or use cold_relocate first, known limitation 3)
Take a Host fully offline Enter Maintenance (evacuate first to keep HCI and SAN VMs running)
Update an appliance Lifecycle → upload the signed installer .iso → apply (Command first, then Hosts)
Back up the controller Administration → Backup and restore → Download encrypted backup, or Scheduled backups
Collect diagnostics for support Administration → Backup and restore → Download support bundle, or GET /api/v1/support-bundle?hosts=all (administrator)
Install a trusted cert Administration → Certificates → upload or generate CSR
Check storage headroom Datastore → HCI → capacity (plan against Available)
Prepare a site drain Stretched Cluster → Site Maintenance → Precheck

See also: installation · user guide · troubleshooting · known limitations · backup responsibility

This page is part of the SimpleVirt 1.1.0 documentation set. The same guides ship inside the appliance images at /usr/share/doc/simplevirt.