Documentation menu
Docs / Known limitations

Known limitations

This page states what SimpleVirt 1.0 does not do. It exists so you can plan a deployment around the boundaries rather than discover them during an incident.

Each item names the limitation, why it is there, and what to do instead. Where SimpleVirt refuses an operation rather than performing it badly, that refusal is deliberate: a product that reports protection it cannot deliver is worse than one that says no.


1. SimpleVirt does not back up virtual machine data

SimpleVirt keeps no backup of VM data in this release. There is no built-in backup job, no backup schedule and no backup catalogue: you must supply your own backup product for the data inside your guests. What SimpleVirt does provide is the backup API (in the appliance's documentation) such a product uses: it hands out a VM's disks at one point in time (quiesced through the guest agent when there is one, never paused), says which blocks changed since the last backup, and writes disks back into a stopped VM for a restore. Its boundaries are in §66.

Snapshots are not a substitute for a backup. A snapshot is a short-term undo for a change you are about to make — a patch, an upgrade, a configuration edit — and nothing more. Specifically:

  • They are crash-consistent unless the guest is quiesced first. On SimpleVirt HCI (Ceph/RBD) a snapshot of a running VM is application-consistent when a freeze-capable guest agent — SimpleVirt Guest Tools, or a stock qemu-guest-agent — freezes the guest's filesystems first (freeze, then snapshot, then a guaranteed thaw), and falls back to crash-consistent when no agent answers. A running HCI VM with more than one disk and no agent is paused for the moment its disks' snapshots take (normally well under a second, never more than about 10 seconds) so every disk is captured at the same instant; if that pause cannot be taken, the snapshot is still taken and reported as crash-consistent-per-disk: each disk as after a power cut, but not all at one moment. If the host service stops in the middle of that pause, it resumes the VM when it starts again only if the VM is still the same running instance, was paused less than 10 minutes ago, and this host still holds its HCI disks (no other host has them open and this host's storage access was not cut off by HA). Otherwise the VM stays paused and a critical alert says why; check where the VM runs, then resume it or stop that copy; the alert clears once the VM is no longer paused. A VM you pause or resume yourself is never resumed by a snapshot, and a snapshot whose pause you lifted while its disks were being taken is reported as crash-consistent-per-disk. On a file (qcow2: NFS, local-directory or CephFS) datastore a running VM's disk-only snapshot is taken live, without pausing the VM (its disk I/O waits while the snapshot is recorded, see §16), in all of its disks at the same instant; it is application-consistent when the same agents freeze the guest first and crash-consistent otherwise, capturing the guest's filesystem and any database inside it exactly as if you had pulled the power cable, so they recover the way they would from a power cut. §6 states what each needs, and the VM's Guest Tools view reports the agent's state honestly.
  • They live on the same datastore as the VM. A snapshot is stored inside the VM's own disk image. It does not protect you against the loss of that datastore, that storage array, or that site.
  • They are supported on both NFS and SimpleVirt HCI (Ceph/RBD) storage. An NFS snapshot is an internal qcow2 snapshot; a SimpleVirt HCI snapshot is a native RBD snapshot taken across all of the VM's images. Neither is refused — but neither is held outside the VM's own storage, so the consistency limit above and the durability limit below apply to both tiers (see §6).
  • They move with the VM on a live migration, a cold migration and an HA recovery. An NFS (qcow2) snapshot's data is inside the VM's disk images and its record is kept per host. A live migration over shared storage between hosts of this release carries the records: the source sets them aside (the host's virtualization layer refuses to live-migrate a VM that has any), moves the VM, and SimpleVirt-Command re-creates them on the destination; if the move fails they are put back on the source at once. If either host runs an older release, a live move of a VM with file snapshots is refused up front with that reason (also for maintenance-mode evacuation, a drain and balancing): update the host, migrate the VM cold, or delete the snapshots. A live move that also copies the disks (Compute + storage, VM running) is refused for a VM with file snapshots on any release: it copies only what the guest sees, not the snapshots stored inside the disks; migrate it cold instead, which copies the images whole. A cold migration carries the records to the destination with the disks (copied byte for byte, snapshots included, when the disks are copied), re-creates them there and confirms them before the VM is removed from its old host; if they cannot be carried the VM is not moved. An HA restart by SimpleVirt-Command stages the controller's copy of the records (read in the background about every minute while the VM's host is up) on the survivor, waiting at most a few seconds for it, and the survivor then re-attaches any snapshot it finds inside the disks with no record — a snapshot taken after the last copy, a copy the survivor did not take in time, or a restart made by the cluster services while SimpleVirt-Command was down; a re-attached record keeps the snapshot's disks and time but not its description or place in the snapshot tree. A SimpleVirt HCI snapshot is a native RBD snapshot on the shared image itself and survives a compute-only migration and an HA restart. An offline storage move keeps a qcow2 disk's snapshots when it lands on another qcow2 file datastore; a live storage move, and a move into or out of SimpleVirt HCI, is refused while the disk has snapshots (§16). The Migrate wizard says on its final screen which of these applies.

What to do. Run a backup product that uses SimpleVirt's backup API, works inside the guest (an in-guest agent) or against your storage tier, keep its copies off the datastore holding the VM, and test a restore. See Backup responsibility for how the pieces SimpleVirt does provide fit into a recovery plan.


2. High availability needs storage a failover can fence

HA arms on three storage tiers: SimpleVirt HCI (Ceph/RBD), NFS 4.1 or later, and an NFS 3 or 4.0 export the SimpleVirt heartbeat lease can fence (a coherent single-server export, with each host's watchdog armed). It refuses any other NFS below 4.1, and refuses just as firmly when a datastore's tier cannot be determined at all.

The reason is that a failover has to finish, not merely start, and must never start a second copy of a VM. On SimpleVirt HCI the failed host is cut off from the disks at the storage cluster before the VM starts elsewhere. On NFS, of any version, SimpleVirt fences with its own heartbeat lease: the appliance mounts every NFS export with local_lock=all, so locks stay on each host and the NFS 4.1 server's own lock lease does not arbitrate the disk (and a dead host's stale lock cannot wedge the survivor). Each host renews a lease file for its VMs under an armed watchdog, and the survivor takes the disk only after the lease has gone quiet and the failed host is proven powered off (see section 15), which happens on its own only through a Ready BMC; without one, each restart waits for your confirmation. An export that cannot carry that lease has nothing to arbitrate a single writer, and arming HA on it would report a cluster as protected while no VM could safely be restarted.

What to do. Use SimpleVirt HCI, enable NFS 4.1 or later on the export, or use a single-server export the heartbeat lease can fence. SimpleVirt does not pin a protocol version when it mounts an NFS datastore — the mount negotiates the highest version both ends support. The HA readiness checklist on the cluster's Settings → High availability names the datastore, its tier and the remedy.

A cluster that had HA armed on NFSv3 before upgrading is not disarmed — withdrawing protection without warning would be its own outage. It will show the failed readiness check, it cannot be re-armed until its storage changes, and it can always be disabled.


3. A lease-protected VM moves live only with NFS live migration (Tech Preview)

On an NFS datastore that does not provide the kernel's own lock leases, SimpleVirt protects single-writer safety with its own heartbeat lease written to the datastore. This applies to the VM's storage, not to your HA settings: a host arms the lease whenever it starts a VM whose disks are on such a datastore, whether or not anyone has enabled HA on the cluster.

By default such a VM is refused a live migration. Moving it live without handing its lease over would leave the destination's copy running with no lease of its own. Live migration of NFS VMs is a Tech Preview, off on every cluster (existing ones included) until an administrator turns it on for that cluster: PUT /api/v1/clusters/{id}/nfs-live-migration with {"enabled": true} (cluster manage permission; GET reads it, and names the members whose release cannot do it). In the console it is the cluster's Networks tab, Live migration of NFS VMs, marked Tech Preview; turning it on asks for confirmation.

With it on, a live move over the shared datastore hands the lease over. The cluster service records the move first, so no recovery of the VM is planned while the source's lease goes quiet on purpose. The destination claims the VM's next ownership generation and waits; the source keeps renewing until its copy is gone; then the destination takes the lease in its own name and renews it, on its own if SimpleVirt-Command is unreachable by then. Ownership in the cluster record then follows the VM. Its limits:

  • Verified by tests only. The handoff is exercised against simulated storage, simulated libvirt and fake hosts, including a source or destination lost mid-move and SimpleVirt-Command lost mid-move. It has not yet been run against a real NFS server under load. Until it has, keep it off on clusters whose VMs you cannot afford to restart.
  • Both hosts must run this release, and so must the cluster service on every member (it records the move with a schema-6 entry). A refusal names the host to update.
  • Only over the shared datastore. A live move that copies the disks to another datastore is still refused.
  • When the lease cannot be handed over, the moved copy is stopped. If the source kept renewing the lease for 90 seconds after the copy started running, or another host took the lease, or a newer recovery of the VM holds a higher claim, the destination stops its copy rather than run it without its lease. The Migrate task fails with the reason, a storage-lease alarm names the VM, and you start the VM again.
  • A destination that cannot read the lease at all is reset. If the destination loses its path to the datastore while the moved copy runs, it cannot tell who writes the VM's disk, so it does what any lease owner does: it stops feeding its watchdog, and the watchdog resets the whole destination host, with every VM on it. HA then restarts those VMs as after any host failure. While the copy is still arriving (paused) nothing writes, and the host keeps running.
  • A Command lost between preparing a move and starting it holds the destination's claim. The destination keeps its claim on the VM's next ownership generation, and waits for the copy, until its record lapses: the move's time limit plus 10 minutes (about 45 minutes by default; the source may queue a move behind others, so the wait cannot be shorter). In that time another live move of the VM to that host is refused, and if the source host fails, the VM's recovery cannot win that generation, so its failover waits for the record to lapse. Any prepare that fails, or whose answer is lost, is undone on both hosts at once; the cluster service's own hold lasts three minutes and is renewed only while SimpleVirt-Command follows the move.
  • NFS 4.1 is fenced the same way. Every export is still mounted local_lock=all. A per-datastore NFS 4.1 mount that leaves locking to the server is not in this release.
  • A failed move's claim is released in the background. When a move fails, the destination releases its claim on the VM's next ownership generation off its watchdog path, so a slow or hung datastore never holds back the watchdog. On a datastore that stays hung, the claim stays on it until a later change of the VM's ownership clears it; meanwhile a recovery of the VM by another host cannot win that generation, as when SimpleVirt-Command is lost before a move.

What to do without it. Use cold migration. Power the guest off, migrate, power it on. The Migrate wizard offers this: the destination is listed as needs power off rather than incompatible, and the wizard states the cost — the guest is down for the whole move. Host evacuation reports the same, and names the host that would take the VM once it is powered off.

Rolling reboots and updates. With NFS live migration on, evacuating a host, entering maintenance and applying an update move its NFS VMs live like any other. With it off, they keep only the host's SimpleVirt HCI and SAN VMs running, and an NFS VM stays on the host. You can then:

  • let SimpleVirt relocate it powered off: cold_relocate: true on the maintenance, evacuate and update requests (POST /api/v1/hosts/{id}/maintenance with mode: "migrate", POST /api/v1/hosts/{id}/evacuate, POST /api/v1/hosts/{id}/update/apply). Each such VM is asked to shut down (guest agent, then ACPI), its lease is released once it is off, it is moved over the shared datastore and started on the planned host; the task reports each VM's downtime. A guest that does not shut down within three minutes is left running and the act stops there: SimpleVirt never forces a guest off for it. That guest's shutdown request may still complete later; if it does within 15 minutes, SimpleVirt starts the VM again where it was, with its HA protection kept (unless you shut it down yourself meanwhile, which it then leaves off). That start goes through the same checks as Power on: it is not made while another move of the VM is under way (a retried relocation or a migration cancels it), when the host stopped answering at any point meanwhile, when any other host in the cluster cannot be read or shows the VM running, when the host is going into maintenance or down, when admission control or HA placement refuses it, or when the cluster service cannot confirm the host still owns the VM. Then the VM stays off and a failed Start virtual machine again task in Recent Tasks says why; check where it runs and start it from its page. The host the VMs leave must run this release. Enter maintenance… and Evacuate host… offer it as a checkbox, "Relocate the VM(s) that can move only powered off: …", naming each VM and the host it goes to; the update's Apply and reboot dialog offers it after its first refusal, for the guests that refusal names as relocatable. If a relocation fails before the move, the VM is started again where it was, with its HA protection kept.
  • Entering maintenance with some VMs that can move and some that cannot offers a checkbox, "Also shut down the VM(s) that cannot move: …" (followed by their names); with it ticked, Migrate moves what can move and shuts down only the rest.
  • Applying an update to a host that still runs an NFS VM refuses and names that VM; its advanced override, "Reboot with those virtual machines still running", moves the VMs that can move off first and shuts down only the named ones as the host reboots. A planned reboot without migrating the VMs lists every VM it would stop in its dialog and needs your confirmation, so none is stopped unseen there.

4. Turning migration encryption off sends guest memory in the clear

Live migration, evacuation and the workload distributor move guest memory and domain XML over libvirt's transport. The control channel is always mutually authenticated TLS (qemu+tls to TCP 16514): each host proves itself with a short-lived certificate from the fleet's migration CA, which the controller issues at startup, at host-add and on renewal, and a host accepts only the certificates of the fleet's own hosts (tls_allowed_dn_list). A migration between hosts that do not both hold a certificate yet is refused. Hosts serve no plaintext libvirt listener: TCP 16509 is never opened, and the host firewall drops it.

Guest memory is encrypted too by default (VIR_MIGRATE_TLS on TCP 49152–49215). migration.encryption: false turns that off, and only that: guest memory then crosses the migration network unencrypted, readable by anything that can see the traffic. The host firewall still accepts the migration ports only from the fleet's own host addresses, but an address is not a credential. Leave encryption on unless the migration network is dedicated and isolated — see Installation → Migration network.

Hosts installed before the plaintext listener was removed are converged on their own once they run this release: the host masks the plaintext listener and comments out its old auth_tcp = "none" setting, and libvirtd is restarted once to close the port it still holds. That restart is the same one that starts the host's authenticated listener (TCP 16514) on the cluster's host list, and it checks that 16514 answers afterwards. VMs keep running across it, and it waits while a migration, a VM start or a lease-protected VM is in progress (in that last case, until the host is in maintenance or reboots). It also waits until SimpleVirt-Command has sent the host the list of hosts allowed to migrate in, with the host itself on it: a listener started before that list would admit no host. If the restart fails, or 16514 does not answer after it, the host gives TCP 16509 back to the running libvirtd (on disk it stays retired), so a host that took moves on 16509 before never ends up with neither port. While the restart waits:

  • with migration encryption on (the default), the host firewall drops TCP 16509 from every source: SimpleVirt-Command sends every move to TCP 16514;
  • with migration.encryption: false, the firewall admits the cluster's own host addresses, and only them, to TCP 16509 until the host's TCP 16514 admits the cluster's hosts, and SimpleVirt-Command keeps carrying moves onto that host over 16509, exactly as before the upgrade. Command switches a host to TCP 16514 only once that host has shown, with a real libvirt connection using its own certificate, that its listener admits the cluster's hosts, including the one the move comes from. A host that offers neither channel refuses moves with the reason it reports. A host deployed with the new SimpleVirt binary but without the updated host files keeps its old firewall and plaintext listener, and Command keeps using that listener for it while it is open.

Until TCP 16509 is closed the host raises a libvirt plaintext listener alarm, which turns critical after seven days of admitting the cluster's addresses to it. During that window anything that can send packets from one of those addresses reaches libvirt with no credential: SimpleVirt does not stop a VM from being attached to the management or migration network, and port-group spoofing protection does not cover every case (ARP and IP spoofing pass), so a VM on such a network that impersonates a host address can take control of the host. The window lasts as long as the restart waits; on a host running lease-protected VMs that is until you put it in maintenance mode or reboot it. Plan that step for every host of a cluster that runs with migration.encryption: false, right after the upgrade. Update SimpleVirt-Command before the hosts.

A host's migration allow-list changes only when its VM engine next starts. The VM engine (libvirtd) cannot reload the list of hosts allowed to authenticate a migration while it runs, and restarting it under running VMs is a risk SimpleVirt no longer takes for a routine change. So when a host joins or leaves the fleet, a host whose migration listener is already up keeps its old allow-list until its VM engine restarts anyway: at its next reboot, or as soon as no VM runs on it (for example in maintenance). The host's status reads pending maintenance until then, and a move from the newly joined host onto it does not go through: with migration encryption on it fails with libvirt's "not on the list of allowed clients" error; with migration.encryption: false it uses the host's old TCP 16509 while that is still open, and is otherwise refused with a message that names the host it has not loaded yet. A host that left is still cut off at once: the peer firewall, which is updated immediately and needs no restart, stops its packets reaching the migration ports. A renewed migration certificate is installed at the VM engine's default certificate paths and reloaded into the running VM engine with no restart; the VM engine's live reload reads only those paths, which the appliance therefore uses. If that reload fails, the certificate waits for the VM engine's next start like an allow-list change and the host reads pending maintenance. The live reload has not yet been exercised on a real host.


5. Failover while SimpleVirt-Command is down needs the cluster services armed

SimpleVirt Cluster Services (simplevirt-clusterd, on every host) can restart a failed host's VMs on their own, even while SimpleVirt-Command is down, but only while they are armed. The switch is on the cluster's Settings → High availability, under Cluster services. Disarmed, failover is decided and driven by SimpleVirt-Command, and if the controller is down, unreachable or partitioned away from the cluster when a host dies, that host's VMs are not restarted until the controller comes back.

Armed, the cluster services need at least three voting members (two hosts and a witness count) and a leader with quorum. While they have no quorum, nobody restarts anything: the cluster services fail closed rather than let two sides start the same VM. A witness that runs on the controller's appliance is one of those votes: in a cluster of two hosts and that witness, losing the controller and a host at the same time leaves no quorum, so place the witness elsewhere if that case matters.

Arming is refused, with the reason shown, while:

  • HA is off on the cluster, or set to Ask me first: the cluster services cannot wait for an operator's approval, so only Automatic HA can be armed. Turning HA off, or switching it to Ask me first, disarms an armed cluster before the change is saved; switching back to Automatic does not re-arm it;
  • the cluster services are not running on the hosts, or have fewer than three voting members, or no leader with quorum;
  • any VM has an open recovery record: a failure still being handled, or a stale plan an earlier recovery left behind for a VM that is in fact running healthy elsewhere. SimpleVirt-Command settles a stale plan on its own when it can prove it safe; a plan left by an earlier authority, for a VM still running on the host the plan names as failed, stays until you press Clear stale plan, which is offered only once SimpleVirt-Command has watched that record unchanged for 30 minutes, and which still settles it only if every host confirms the VM never left that host. A stale plan for a VM running on a third host (one the plan names neither as failed nor as its destination) is offered as Correct owner after the same 30 minutes: you type the VM's name, and on its next pass SimpleVirt-Command records that third host as the VM's owner, only if every host confirms the VM runs there alone, its storage shows that host as the only writer, no storage fence applied by SimpleVirt-Command is still in force, and the planned destination proves it never took the VM;
  • the cluster's record of which host runs a VM does not match where it actually runs, and cannot be corrected safely (a move is still in progress, or the VM runs on more than one host). A VM that was migrated has its record moved to its new host as soon as the move completes.

Arming changes who acts on a failure, never what runs: it moves, stops and restarts nothing. Disarming is always allowed and hands recovery back to SimpleVirt-Command.

VMs on SAN storage need a Ready BMC to be restarted without SimpleVirt-Command. A VM whose disks are all SAN LUNs (or shared-LUN volumes) is restarted only on proof that every host that may still write its disks is powered off (§32). The cluster services take such a VM only once every host runs this release and its host has a Ready BMC, and then restart it on BMC proof alone (§96). A SAN VM whose host has no Ready BMC, or one in a cluster with a host of an earlier release, stays SimpleVirt-Command's, armed or not: it needs SimpleVirt-Command up to be restarted, and is restarted once the host is proven off (its BMC, or your confirmation on the HA tab). While the cluster services hold HA authority, SimpleVirt-Command handles the failover of exactly those VMs and leaves every VM the cluster services hold a record for to them.

Which clusters are armed. A cluster is armed automatically only when you chose Arm automatically while setting up its cluster services (Set up cluster services on the same tab), and only once that set-up has finished and every check above passes with HA on and Automatic; the switch turns that off, and your choice is kept. A cluster that already existed is never armed by an update: it stays as it was until you press Arm or Disarm.

The choice is the cluster's, not each host's. When every host runs this release, the arm choice is committed in the cluster services themselves: every member follows it, a leader change cannot drop it, and a host added later starts with it. SimpleVirt-Command also compares each host with the recorded choice every 30 seconds, sends it again to a host that disagrees (an Arm only while every check above passes), and raises the alarm cluster.services.arm_mismatch until they agree. While some host still runs an earlier release, each host keeps its own switch as before; the first leader after the last host is updated commits the state most hosts already hold, and, if the hosts are split with no majority, commits nothing until you press Arm or Disarm. A Disarm that reaches a host while the cluster services have no quorum takes effect on that host at once, and holds until a newer choice is committed or you press Arm again (SimpleVirt-Command re-sends a recorded Arm to such a host, which then follows the committed choice again).

What to do. Give every HA cluster a third host or a witness, and arm its cluster services. Keep treating the controller as production infrastructure all the same: give it a static address, protect its disk and keep its state backed up (see Backup responsibility). It is still what moves VMs, places them and runs everything else. A controller that runs as a VM on a host it manages gives that VM the controller restart priority, so an armed cluster restarts it first when its host fails; to keep management up through the loss of the controller's VM or host, add a standby controller on another host (Administration, Controller high availability; see §61).


6. Application-consistent snapshots require a guest agent

SimpleVirt HCI — pooled shared storage built from the hosts' own disks (Ceph/RBD) — is a supported storage tier, alongside NFS, and is a supported tier for HA (see §2). Its day-2 lifecycle is shipped: a failed data disk can be drained and replaced from the product, and a host can be safely decommissioned from the pool, each with a preflight that names the impact (health, data protection, remaining capacity, and storage-monitor quorum) before it acts.

VM snapshots are shipped on both tiers. An NFS snapshot is an internal qcow2 snapshot; a SimpleVirt HCI snapshot is a native RBD snapshot taken across all of the VM's images. Neither is refused — the earlier release that turned snapshots away on SimpleVirt HCI is gone.

The limit is on consistency. Application-consistent snapshots are available only when a guest agent that can freeze the filesystems is present and answers, on either tier. The snapshot path freezes the guest's filesystems through the agent, takes the snapshot (the RBD snapshots on SimpleVirt HCI; on a file datastore, one live snapshot inside every qcow2 disk at the same instant), then always thaws — so a running VM's snapshot is application-consistent when an agent answers and freezes at least one filesystem, and falls back to crash-consistent when none does. SimpleVirt Guest Tools is the preferred agent — it carries a guest-side deadman that auto-thaws if the host dies mid-snapshot — but a stock qemu-guest-agent works too: SimpleVirt wires the standard qemu-guest-agent channel into every VM alongside the Guest Tools channel. A snapshot of a stopped VM needs no freeze. If you need application-consistent rollback points for a running database, run a freeze-capable guest agent; otherwise quiesce the application yourself before you snapshot. Either way, a snapshot is still not a backup (see §1).


7. Outbound notifications are a webhook, email or syslog

SimpleVirt has three outbound alarm channels: a signed HTTP webhook, SMTP email, and syslog (RFC 5424). There is no SNMP trap. All three can be set in the console, under Administration → Notifications, with a Send test for each channel (it tests the settings on screen, saved or not) and no restart needed, or under notifications: in the controller's config.yaml (webhook, email, syslog). Settings saved in the console take precedence over the config file, and the page says which is active. Every channel is off unless you configure it — an empty block sends nowhere — and any combination may be enabled at once. An alarm transition is delivered to every channel that is enabled.

When the webhook is configured, the controller POSTs a JSON body to your endpoint every time an alarm fires, escalates (its severity rises, alarm.escalated), is acknowledged, or clears. Each request carries X-SimpleVirt-Event, X-SimpleVirt-Timestamp and X-SimpleVirt-Signature: v1=<hex>, where the signature is HMAC-SHA256 over v1:<timestamp>:<body> keyed by your shared secret — so your receiver can verify the body came from your controller and reject a replay. Configure it in Administration → Notifications, or in the controller's config.yaml:

notifications:
  webhook:
    url: "https://hooks.example.com/services/your-endpoint"
    secret: "a-long-random-shared-secret"   # REQUIRED; an unsigned webhook is refused
    timeout: 10s                            # per attempt; capped at 30s
  email:
    host: "smtp.example.com"                # empty host = channel off (the default)
    from: "simplevirt@example.com"          # required once host is set
    to: ["ops@example.com"]                 # at least one recipient required
    # port defaults to 465 with tls, 587 otherwise
    # username/password are optional SMTP AUTH (set both or neither)
    # tls (implicit) and starttls (upgrade) are mutually exclusive
  syslog:
    address: "logs.example.com:514"         # empty address = channel off (the default)
    network: "udp"                          # tcp | udp | unix; defaults to udp
    # facility defaults to local0; tag (APP-NAME) defaults to simplevirt-command

Email is off until both a relay host and at least one recipient are set; syslog is off until an address is set. Either channel partly filled in but missing its required field is named as a misconfiguration at startup rather than silently sending nowhere.

Delivery is best-effort on every channel, deliberately. The queue is bounded and DROPS rather than grows, there are at most three attempts per event, and nothing about a slow or dead receiver on any channel can block the controller. The alarm itself is durable regardless — the record is in GET /api/v1/alarms and GET /api/v1/alarms/history whether the notification arrived or not — and GET /api/v1/alarms reports the delivery counters, including how many were dropped. Treat the webhook as a prompt to go and look, not as a delivery guarantee.

If you need SMS or a pager, point the webhook at something that already does that (Slack, Teams, PagerDuty, Opsgenie, or your own receiver). If you would rather poll, the read paths are GET /healthz on the controller and on each host for liveness, GET /api/v1/alarms for the fleet's open alarms, GET /api/v1/hosts/{id}/health for a host's own assessment, and GET /api/v1/events for the fleet event log.


8. Performance history is kept within a disk budget, on the controller only

SimpleVirt-Command keeps a performance history of every host, VM, host adapter and disk, datastore (as each host sees it) and SimpleVirt HCI storage cluster. It is taken from the five-second inventory poll and the HCI sampler it already runs, so it adds no load on a host. Every reading is folded into a one-minute window (average, minimum and maximum per counter), and the windows roll up: one minute for 24 hours, five minutes for 7 days, thirty minutes for 30 days and two hours for a year. It is drawn on the Performance tab of a host, a VM, a cluster and a datastore, with a counter picker, ranges from 1 hour to 1 year, a Show peaks switch and Export CSV; the same table is read from GET /api/v1/{hosts|vms|clusters|datastores}/{id}/performance (see Monitoring (in the appliance's documentation)). What is worth knowing:

  • It is bounded by a disk budget, 2 GiB unless you set another under Administration → Monitoring, and never more than a fifth of the controller's data disk. Over budget, the series nothing has reported to for a month are removed first, then the oldest records of the year tier, then of the next. A fleet large enough to fill the budget therefore keeps less than a year; retained_hours in every answer says how far back that object's history really goes.
  • A series is kept for a year after its last reading, so a deleted VM's history stays for the incident review, and then removed.
  • A restart loses at most the minute in progress after a hard stop, and nothing after a graceful one. The longer windows are rebuilt from the one-minute records. A record half-written when the power went is cut off before the next write, so it costs that one record.
  • The history is not in controller backups, and it is not copied to a standby controller: after a restore onto a new appliance, or a switchover to the standby (§61), the history starts again there. The 24-hour history of the release before this one is imported once on upgrade.
  • CPU ready and CPU wait need the host to report them. They come from the VM engine's per-vCPU run-delay and wait counters; a host whose kernel or VM engine does not report them leaves those lines empty (a gap, not a zero). The balloon size needs the guest's balloon driver.
  • Datastore latency is the host's view of the storage: an NFS datastore's from the NFS client's per-operation statistics, a local or SAN datastore's from its backing device. An HCI (block) datastore's latency is the storage cluster's commit and apply latency, on the cluster's Performance tab, sampled on the slower disk-layout cadence (about once a minute).
  • Host adapters are the physical adapters and bonds only; a VM's tap device is counted on the VM. A VM adapter is named by its position ("Adapter 1"), which survives restarts and migrations.
  • Cluster figures are added up at read time from the members' series: CPU as the members' mean, memory and I/O as sums, disk latency weighted by operations. A member that was not answering in a window is simply absent from that window's sum.

The live figures and longer or finer-grained retention belong in an external metrics system: every host and the controller export OpenMetrics pages for one (§76).


9. The audit trail: retention, integrity, and what is still local

Every mutation is written to an append-only audit log — audit.log in the appliance's data directory (/var/lib/simplevirt-command on the controller, /var/lib/simplevirt on a host, also reachable as /var/log/simplevirt/audit.log).

Retention is by time, with a size safety cap. Rotated segments are kept for the audit retention set in Administration → Notifications → Log forwarding and audit (365 days by default, 30 to 3,650), which Command applies to itself and pushes to every host. The active file rotates at 8 MiB or once its oldest record is a week old, and rotated segments are named audit.log.<UTC timestamp> beside it for life. The size cap is a byte budget: the whole archive, the active file included, stays within 256 MiB per appliance (about 2.2 million records). A quiet machine rotating once a week keeps a year in about 53 small segments, far inside it. Only a machine writing more than 256 MiB of audit records inside its retention period reaches the cap; then the oldest segment goes early, the service log says so, and the Log forwarding card shows how many segments the cap removed. Forward the audit trail (§75) if your retention obligation is longer than the cap allows.

Records are hash-chained and checkpoints are signed. Each record carries prev, the SHA-256 of the record before it, and every 100 records (and at least every 10 minutes while records are written) a checkpoint signed with an Ed25519 key kept beside the log (audit-signing.key, public half audit-signing.pub) goes into audit.log.integrity. Retention deletions and the sealing of records written before this release are recorded there too, signed. Verify audit trail on the same card checks the controller's log; simplevirt-command audit-verify and simplevirtd audit-verify (with -pubkey FILE for a copy of the public key kept elsewhere, -json for a report) check any appliance's. What this does and does not prove:

  • A record changed, removed or inserted anywhere, a tail cut off before a checkpoint, an oldest segment deleted outside recorded retention, or a forged checkpoint is detected.
  • Someone with root on the appliance holds the signing key too, and can rewrite the whole log, re-chain it and re-sign it. The protection against that is a copy off the machine: forward the audit trail (§75), which also sends every checkpoint as it is written, or copy audit-signing.pub somewhere safe and verify against it.
  • The newest records after the last checkpoint are covered by the chain only; truncating them is visible only against a forwarded copy.
  • After a standby takes over, its audit log is the copy it last took from the active controller (every 5 minutes), so the records the old controller wrote in the minutes before the takeover are not on the new one; they are on the old controller's disk and in a forwarded copy. The copy carries the active log after its integrity file, so it still verifies.

Records name the session, the API token and the request. Each record written since this release carries session (a non-secret digest of the sign-in session), token (the API token's public id, for a request made with a token) and request (the id every API response returns in X-Request-ID, or the caller's own id when it sent one). A record SimpleVirt-Command causes on a host is attributed there to the controller identity, with the host's own request id; the controller's request id is not carried across to the host.

Writing never stops quietly. A record that cannot be written (a full or failing data partition) is held in memory and retried; the critical alarm The audit trail cannot be written names the machine. Up to 10,000 records are held; past that the oldest are dropped and an audit.records_lost record says how many once writing recovers. Records held in memory are lost if the service stops before the disk recovers. Changes are not refused while the log is failing.

Console sessions are recorded. Opening and closing a VM console (graphical or serial), in Command and on a host, are vm.console.open and vm.console.close (with how long it was open); the host's local console records an unlock, a lock and an idle lock.

Only the controller's own log is paged and exportable. The controller serves its whole archive at:

GET /api/v1/audit?cursor=&limit=&user=&action=&since=&until=
GET /api/v1/audit/export.csv?user=&action=&since=&until=

Both need host.manage. Paging walks forward, oldest first, across rotated segments; the cursor survives a rotation, and says so (cursor_expired) if retention deleted the records it pointed at. since/until take a date (2026-09-01) or an RFC 3339 timestamp. A host's own log is NOT paged this way: each host still serves only its trailing tail, which is what GET /api/v1/events merges. A host's records reach you through forwarding (§75, from the moment it is turned on), or, for the bundle's time window, through the host's part of the support bundle (§11): its active audit segment and the rotated segments that overlap the window, each capped at 4 MiB with the newest records kept. A host's whole archive stays on the host: verify it there with simplevirtd audit-verify, or copy its audit.log* files.

The Events view is a tail, and it is not the archive. It reads the newest 250 records per source, merges them newest-first and stops at 200 rows, so it answers "what just happened" and not "what happened in September". The archive itself is in the console: Tasks and events → Audit archive walks this controller's whole log with the server's cursor, filters by user, action and date range on the server, and exports the active filter — not the page on screen — as CSV.


10. Alarm rules: built in, editable and your own; most alarms are about a host

Alarms themselves are shipped and visible: the controller evaluates the fleet once a minute, an alarm fires when a condition first appears, survives a controller restart, can be acknowledged by name, and clears only when the condition actually goes away. The Alarms page carries the open set and the history (acknowledged alarms included, until they clear), the Health rail button carries a count of the unacknowledged ones, and GET /api/v1/alarms and GET /api/v1/alarms/history serve the same thing.

What you can change (under Alarms, Alarm definitions, or /api/v1/alarms/definitions): the levels, sustain time and clear level of the threshold rules (host CPU, memory and load, datastore capacity, datastore overcommit), and whether each of those and the host-raised VM CPU, VM memory, old-snapshot and guest-file-system rules is on. You can add your own definitions on host, VM, cluster and datastore metrics, scoped to the fleet, a cluster, a host, a VM or a folder of VMs, and silence notifications for a window that always ends. §108 lists what the definitions do not do. Every other condition below is compiled in and cannot be edited or turned off; there is no fixed count: the set is substantially larger than a single table. The host-, datastore-, VM- and controller-level conditions are (the levels shown for an editable rule are its defaults):

Condition Grade Fires when
Host CPU high warning host CPU usage above 90% for 5 minutes; clears under 85% (editable)
Host memory high warning host memory usage above 90% for 5 minutes; clears under 85% (editable)
Host load high warning 1-minute load average above twice the host's core count for 5 minutes; clears under 1.5 times (editable)
Host in maintenance warning the host is in maintenance mode
Host down critical the host is unreachable on every plane
Datastore disconnected critical a datastore the host reports is not active
Datastore degraded warning an HCI pool is present but inactive
Datastore nearly full warning a datastore has under 25% free (75% used); clears under 73% (editable)
Datastore critically full critical a datastore has under 10% free (90% used) (editable)
Datastore overcommitted (datastore.overcommit) warning, then critical off by default; when on, the virtual disk sizes on a file datastore reach 150% of its capacity (critical at 200%) (editable)
Your own definitions (custom:<definition>:<object>) warning / critical as you define them (§108)
Security advisory (update.advisory:<id>) critical for a critical or high advisory, otherwise warning a release catalog the controller holds lists an advisory whose affected range includes a running SimpleVirt-Command or hypervisor build (§111)
Service not running critical simplevirtd, libvirtd or systemd-networkd is inactive
Host certificate mismatch critical the host's pinned certificate no longer matches
Host not pinned critical the host has no pinned certificate to compare
GPU error critical the kernel logged a hard GPU fault (Xid / AER / fell off the bus)
GPU unusable warning a GPU cannot be passed through (e.g. IOMMU off)
Host degraded warning or critical for several polls in a row, the host answers its heartbeat but its virtual-machine service does not (warning), or it rejects the controller's credentials (critical)
VM crashed critical a guest's operating system stopped after a fatal error
VM unreadable (vm.unreadable) warning the host lists a VM but cannot read its state or settings; the VM shows as Unreadable (its last known state in the tooltip), keeps its last HA definition, and keeps its host occupied (see §88)
Host certificate expiring warning, then critical a host's live-migration certificate expires within 30 days (critical within 7 days, and once expired)
Controller certificate expiring warning, then critical the HTTPS certificate SimpleVirt-Command serves to browsers expires within 30 days (critical within 7 days, and once expired)
Controller backup stale warning the last controller backup is more than 7 days old, or none has been taken a day after the first host was added
Controller data disk low (controller.disk.low) warning, then critical the disk under SimpleVirt-Command's data directory has under 10% or 2 GiB free (critical under 3% or 512 MiB; see §92)
Controller database unavailable (controller.database.unavailable) critical SimpleVirt-Command's database does not answer a ping within 5 seconds, two passes in a row
Controller database slow (controller.database.slow) warning the database's ping takes over 1 second, two passes in a row
Controller poll lag (controller.poll.lag) warning or critical healthy hosts' polls queue for a free slot (warning), or the inventory poller's loop has stopped ticking (critical)
Controller memory high (controller.memory.high) warning, then critical SimpleVirt-Command's own resident memory reaches 50% of its limit (critical at 75%): the service's memory limit when it has one, otherwise the machine's memory
Controller HA stalled critical one of the controller's high-availability passes has run for two minutes without finishing; until it does, the controller does not fail over VMs or refresh storage fences
Restored from a backup warning the controller was restored from a backup and holds back until an administrator chooses Resume (see §30)
Host memory overcommitted warning the host's running VMs are promised more memory than it has
System disk low warning / critical the host's system disk nears, then reaches, its free-space reserve (on a Ceph monitor host: under 30%, then under 10% free)
VM paused by a storage error critical a VM's disk hit a storage error and the VM paused
Guest left frozen critical a snapshot froze a guest's file systems and the thaw could not be confirmed
Disk move stuck critical a live disk move's switch and its rollback both failed
Scheduled snapshot held warning a retention schedule skipped a running file-storage VM, or is keeping its old snapshots until it stops
Lease renewals slow (ha.lease.renew_slow) warning the 99th percentile of a host's storage-lease renewals on an NFS datastore passed 1 second over the last 5 minutes (renewals fail past 2 seconds)
Scheduled snapshot held warning a retention schedule skipped a running file-storage VM on a host of an older release, is keeping its old snapshots until it stops, or the host refused its snapshot for a reason that holds while the VM stays as it is (a stopped UEFI VM)
Snapshots without a record warning a file VM's disks hold snapshots the host has no record of (found by a scan at start and every 6 hours); Find lost snapshots re-attaches or removes them
Switch has no link (host.nic.down) critical every uplink of a switch in use on the host (one with networks, or the management switch) has had no link for 45 seconds
Uplink redundancy lost (switch.uplink.redundancy_lost) warning a teamed switch lost the link on some, not all, of its uplinks for 45 seconds
LACP partner missing (switch.lacp.partner_missing) warning a link-aggregation (LACP) team's working uplinks are not aggregated: no partner answers, or it refused some
Uplink flapping (host.nic.flapping) warning an uplink lost and regained its link three times within 10 minutes; it clears after 10 quiet minutes
Switch change stopped (switch.rollout_failed) critical a Logical Distributed Switch change stopped at a host that refused it, stopped answering SimpleVirt-Command, or lost an address it reached before the change; that host was put back on the previous settings and no later host was changed. Clears when a later change or remediate of the switch completes on every host, or the switch is deleted (see §102)
Switch drift (lds.drift) warning a Logical Distributed Switch on an attached host differs from its declaration (missing, other uplinks, MTU or teaming, networks or adapters) on two passes in a row
Clock not synchronized (host.time.unsynced) warning the host's clock has not been synchronized with a time server for 10 minutes (not in its first 15 minutes after boot), or synchronization is off
Clock skew (host.time.skew, controller.time.skew) warning, then critical a host's clock differs from the other hosts' by more than 2 seconds beyond the measurement's error (critical from 60 seconds), or SimpleVirt-Command's differs from its hosts'
Guest stopped answering (vm.guest.heartbeat_lost) warning a running VM whose Guest Tools answered in this run (and since its last in-guest reboot) has not answered for 5 minutes
Guest file system nearly full (vm.guest.fs_low) warning / critical a file system inside a guest, as its Guest Tools report it, is 90% full (critical from 97%); it clears below 85%
VM CPU saturated (vm.cpu.high) warning a VM used 90% or more of its vCPUs on average over 15 minutes; it clears below 75%
VM memory saturated (vm.memory.high) warning a guest used 95% or more of its memory on average over 15 minutes, as its memory balloon reports it; it clears below 85%
Old snapshots (vm.snapshot.old) warning a VM keeps snapshots older than 7 days (scheduled snapshots, which their retention deletes, are not counted)
Disk failing (host.disk.smart_failing) warning / critical a local disk's SMART self-assessment fails or its NVMe health log raises a critical warning other than temperature alone (critical), or it has pending or uncorrectable sectors, media errors, 90% of its rated wear used, or an NVMe temperature past its limit (warning)
Memory errors (host.memory.ecc) warning / critical the memory controllers report any uncorrected error since boot (critical), or 10 corrected errors within 24 hours (warning)
Power supply, fan, temperature (host.hw.psu, host.hw.fan, host.hw.temp) warning / critical a sensor of the host's BMC is past its critical line (critical) or its warning line, a power supply reports a failure, or a redundancy sensor reports lost redundancy while at least two supplies (or fans) are present (warning)

Beyond these, further compiled-in conditions cover the host's addressing (partitioned from its cluster, address unreconciled, address conflict, approval required, agent too old to re-address, Ceph re-address), cluster HA quorum (no quorum headroom — see below), and SimpleVirt HCI (Ceph) storage health (per Ceph health-check code, a failed storage daemon, pool capacity, deep-scrub coverage, control-plane HA, OSD lifecycle, and stability / fail-slow). With the default levels no alarm fires on a datastore below 75% used.

There are only two grades, warning and critical — the two the health endpoint has always emitted — and no informational level.

Most alarms are about a host, or about a datastore or a service on one. SimpleVirt also raises cluster-scoped alarms: SimpleVirt HCI (Ceph) shared-storage health (key hci.health:<code>) and HA quorum headroom or loss of quorum (key cluster.quorum.no_headroom), both keyed and labelled to the cluster rather than to any single host, and controller-scoped alarms about SimpleVirt-Command itself: its certificate, its backup, a stalled high-availability pass and the hold after a restore. A few alarms are about one virtual machine: a guest that crashed, a VM paused by a storage error, a guest left frozen by a snapshot, a disk move that could not be rolled back, and a retention schedule held back for a running VM, a guest that stopped answering, a guest file system nearly full, a saturated VM and old snapshots. Network links, teams and switch drift raise alarms grouped under Networking in Health Center (§58 lists what they do not cover). There is no alarm about a task, and a VM that was simply powered off and stays down raises nothing. Use GET /api/v1/vms and the fleet event log for those.

The history is bounded at 1,000 transitions, oldest discarded first. It is a support artifact, not an archive — a controller that flaps a datastore for a week will roll older transitions out of it. The audit log (§9) is the durable record.

What to do. Change a level or add a definition under Alarms, Alarm definitions. For a condition no metric there covers, poll GET /api/v1/alarms, GET /api/v1/hosts/{id}/health and the metrics pages in §76 from your own monitoring system and hold the rule there. §7 covers getting the alarms SimpleVirt raises out to it.


11. The diagnostic bundle: what it collects, and its bounds

The support bundle is downloaded from Administration → Backup and restore → Download support bundle (or GET /api/v1/support-bundle, admin.users). The dialog 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. The controller's part is versions for the controller and every host, its configuration, the fleet and cluster inventory, recent tasks, HA state, the alarm set and history, and the tails of its own audit and service logs. Each selected host adds its own bundle under hosts/<name>/: its simplevirtd log and 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, 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 API takes the same choices: ?hosts=all (or host ids or names, comma-separated), since=6h (a duration or RFC 3339, at most 14 days) and max_mb_per_host=24 (at most 128). Operations → Support bundle has the details.

What to know:

  • A host that cannot be read does not fail the download. Its folder holds ERROR.txt with the reason, and fleet-manifest.json lists every host's outcome. A host on an older release says it needs an update to include its logs.
  • Redaction is by fixed collectors plus the scrubber. Only the items above are read; none is a path or a command the request chooses. Every byte passes the shared scrubber (private keys, passwords, tokens, cookies, Authorization headers, database passwords, Ceph keys, VNC passwords), and the controller scrubs each host file again with its own secret catalog, which includes the host's bearer token. A secret in a shape the scrubber does not know, in a log line, can still get through: read a bundle before sending it outside your organization.
  • The live firewall ruleset is not read. nft list ruleset needs a privilege the host service does not hold; the bundle carries the rules the firewall applier loaded (firewall/apply.nft) and notes the refusal.
  • It is bounded. Each item is capped (4 MiB, 1 MiB per QEMU log; logs keep their recent end), each host stops at its limit and lists what it left out in its own manifest.json, and a host gets three minutes to collect. A collector reads only the tail it keeps — a seek to the end of a file, a bounded buffer for a command, and at most the newest 200,000 journal lines — so a large journal window does not grow the host service's memory. A private key whose first line falls before the kept tail is removed whole rather than half-scrubbed. A command that stops early (its time limit or an error) keeps what it printed and is marked partial in the manifest with the reason, so a journal window that is not whole says so. Items are collected in order of usefulness, the simplevirtd log and the audit segments before the journal windows, so on a busy host with a small per-host limit the audit segments can use it up and the journals are then listed as left out at the limit: raise the limit or shorten the window. The controller holds at most four hosts' bundles in memory at a time, however slow the download. The appliance images keep a host's journal on disk, capped at 1 GiB with the oldest entries removed first, so a journal window reaches back past a reboot within that cap. A host whose journal is in memory (the Logs page names it) has nothing in the journal from before its last restart; the simplevirtd log file does.
  • It is a point-in-time snapshot. Take it while the fault is still live.

12. File Services is served only where a cluster declares it, and its failover is controller-driven

SimpleVirt File Services (SMB/NFS shares carved from SimpleVirt HCI) needs no experimental flag, but a cluster serves shares only where it has declared File Services enabled. A cluster serves only once File Services is enabled with a floating address and at least two reachable members (and reads Not Ready otherwise). It is production-quality in the code — NFS defaults to deny-by-default client scoping, SMB serves over a locked-down, SMB3-only, sealed, default-closed configuration, per-share quotas fail closed, and reboot recovery is host-autonomous — but the end-to-end serving path still warrants validation on a real multi-host cluster. See File Services (in the appliance's documentation).

Three boundaries are deliberate and will not change in v1:

  • The floating address is controller-driven, not quorum-owned. One reachable member holds it; if that host dies the controller re-homes it on its next reconcile (~30s). While SimpleVirt-Command is down, the current placement is frozen — shares keep serving where they are, but a host that dies during a controller outage is not re-homed until the controller returns. When the controller starts again it first asks every member which one holds the address and keeps that host as the server; it does not move the address or stop any server until every member has answered (or about three minutes have passed), so a controller restart or upgrade does not disconnect share clients. A controller↔server partition where the server stays alive can briefly double-claim the address; CephFS (MDS-coordinated) keeps the on-disk data consistent throughout, and the window closes within one reconcile once the stale host is reachable again. A cluster-services (Raft) owned address is the planned hardening.

  • SMB failover is a hard reconnect, and there is no account lockout. A VIP move resets in-flight SMB sessions (clients reconnect to resume); SMB3 persistent handles are not configured. SMB authentication is NTLMv2 against a per-host local account store with no rate-limiting — in-flight traffic is sealed (encryption required) and reachability is limited to the share's allowed-client CIDRs, but keep the storage network trusted.

  • Share data is not backed up or snapshotted by File Services. Share contents live in the HCI CephFS and follow the HCI pool's protection geometry; there is no per-share snapshot or backup. Removing a share retains its data by default (reclaim it explicitly); see backup responsibility.


13. HA leaves a host it cannot reach, but that is still alive, alone

When SimpleVirt-Command loses its path to a host but the host is provably still running, HA leaves its VMs running and does not restart them elsewhere. "Provably" means one of: a surviving host sees the host's own storage client still attached to its VMs' disks (the storage cluster drops a dead client within about 30 seconds), the other hosts of the cluster still reach it, or it answered at a new address SimpleVirt-Command has not switched to yet. Nothing is fenced and its BMC is never used while that evidence holds, so a failed management cable or switch port no longer stops every VM on the host. A storage client SimpleVirt cannot attribute to any host still gets a bounded hold of about 45 seconds and then the verified fence, so a dead host is not stranded.

The trade-off is visible, not silent: while a host is held, a critical alarm names it and the cluster's Settings → High availability lists it. If the host is broken in a way that keeps its storage client alive (a gray failure), its VMs stay where they are until you act.

What to do. Restore the host's management connection. If you have checked that the host is really powered off, confirm it on Settings → High availability (Confirm host is powered off); HA then fences it and restarts its protected VMs. It is the same confirmation section 15 describes for NFS VMs: one confirmation covers both, and it counts for the current outage only.


14. HA on block or lease storage needs a cluster service that keeps quorum

A restart of a VM on SimpleVirt HCI (Ceph/RBD) or the NFS heartbeat lease is authorized through the cluster service, which needs a leader with quorum. With only two voting members (two hosts and no witness) the first host failure removes quorum, and HA then cannot restart those VMs; that includes VMs on NFS 4.1 exports, which the appliance lease-protects like NFS 3 (see section 15). The readiness checklist warns about this and an alarm stays raised while the cluster is in that state. The same quorum is what failover while SimpleVirt-Command is down needs, and arming the cluster services is refused without it (section 5).

The cluster service's host certificates are valid for three years (the cluster CA for ten). For cluster services set up from SimpleVirt-Command, it renews each host's certificate online, the witness included, 120 days before it expires, and the running cluster service loads the new one without a restart (section 85). SimpleVirt-Command raises an alarm 90 days before a host's certificate (or the cluster CA) expires, and a critical one in the last 14 days, so for those clusters the alarm means a renewal did not happen. On expiry that host's cluster service stops.

Removing a host from SimpleVirt-Command de-enrolls it from the cluster service at its leader, which then takes it out of the voting members while the others keep a healthy majority. A removal that would leave them without one is refused unless you force it and type the host's name. If the cluster service has no leader, or runs an earlier release on another host (the removed host's own release does not matter), the removed host goes on counting as a voting member until SimpleVirt-Command can de-enroll it; it retries every minute and raises the alarm host.removal.deenroll_pending meanwhile (see section 48).

What to do. Give every HA cluster a third host or a witness (Add a witness on the Cluster services panel adds one to cluster services set up without one). For cluster services set up with simplevirt-clusterd provision, re-issue the certificates with it and install them on every host before they expire.


15. An NFS VM is restarted elsewhere only once its old host is proven powered off, or, if you enable it, proven unable to write by its storage lease

On an NFS datastore protected by the SimpleVirt heartbeat lease, a host that cannot renew a VM's lease pauses the VM instead of stopping it, so a short storage outage no longer costs the VM: it resumes on its own when the datastore answers again. A paused VM still holds its disk open, so a quiet lease no longer proves the old host stopped writing. SimpleVirt therefore restarts such a VM on another host only with proof that the old host is powered off: a BMC power-off that SimpleVirt-Command read back as Off, or your confirmation that you checked the host is off. A cluster can also opt in to restart without a BMC, where the storage lease itself proves the old copy stopped (below); it is off by default.

What this means in practice:

  • With a BMC configured, enabled and Ready for the host (Administration → Host power fencing; the host reads Ready once a Test connection of the saved settings has passed and verified the BMC controls it), SimpleVirt-Command HA powers off a host whose lease has been quiet long enough, reads back that it is off, and then restarts its NFS VMs elsewhere. It does this only when the BMC reports the same system identity as the host itself; a BMC address that points at another machine, or a BMC whose identity cannot be read, is not used. A host that is still renewing its leases is never powered off: before the power-off, a surviving host reads the leases of the host's other lease-protected VMs, and every one must have stayed quiet for about 20 seconds. Nor is a host powered off that is still alive on another path, or that was last seen running a VM neither a storage lease nor the block fence protects (a local-disk VM, which a power-off would kill). In those cases HA holds and says why, and Confirm host is powered off still applies. A host updated only by a binary deploy that predates the host files has no system identity to match; SimpleVirt-Command raises a warning for it.
  • An enabled BMC that is not Ready is not used. Until a Test connection of the saved settings passes, including for a policy enabled before an update that started storing test results, the host reads Enabled — not verified and HA treats it as a host without a BMC. Saving a changed address, account, TLS choice or password retires the last test.
  • Without a usable BMC, restart is manual-confirm. The HA readiness check A failed host can be proven powered off without you (Ready BMC) warns and names each such host, the HA tab says restart is manual-confirm for its NFS and SAN VMs, and each VM's HA protection card says Restart: manual confirm. HA holds an NFS VM on a host that stopped answering. The cluster's High availability tab lists the host under Waiting for a host to be confirmed off. Power the host off (or check that it is off), then choose Confirm host is powered off and type the host's name. HA then restarts the VM on another host on its next pass. SimpleVirt-Command refuses the confirmation while it can still reach the host. If you confirm a host that is in fact still running, both copies of the VM can write to one disk and corrupt it.
  • Powering on such a VM on another host by hand asks the same question only when that host still holds the VM's definition (for example after a partial failover); an ordinary failover leaves none, so use the High availability tab.
  • The cluster HA service does not restart NFS lease-protected VMs on its own, unless the failed host has a Ready BMC or restart without a BMC is enabled (below): its decision shows the host is unreachable, not that it is off. SimpleVirt-Command hands every host the Ready BMCs of its cluster (§96), so with SimpleVirt-Command down the cluster services power the failed host off through its BMC, read the Off state back, and then restart its NFS VMs.
  • NFS 4.1 exports are lease-protected too. The appliance mounts every NFS export with host-local locks (local_lock=all), so an NFS 4.1 export behaves like NFS 3 here: its VMs carry the heartbeat lease and follow these rules. Limiting that setting to NFS 3 needs per-datastore mount options and is not part of this release.
  • A storage outage pauses the VMs on that datastore; it resets the host only for a VM whose writes are stuck. A VM that SimpleVirt paused and whose pause finished keeps its host up however long the datastore stays away, and resumes on its own when it answers; the host's other VMs are not touched. A VM whose pause cannot finish, because its disk writes are waiting on the dead export, still makes the host's watchdog restart the host about 25 seconds after the last lease renewal, unless the datastore has an APD window (§49). A datastore that is full or read-only but still answering keeps its VMs paused with an alarm.
  • A VM whose lease another host took while it was paused here is stopped on its own. The host is not restarted; an alarm says the VM was stopped here. This needs the host's watchdog helper from this release; with an older one the host restarts instead, as before.

Restart without a BMC (storage-lease evidence). Off by default; existing clusters are unchanged until an administrator turns it on. Settings → High availability → Restart NFS VMs without a BMC (storage-lease evidence) (PUT /api/v1/clusters/{id}/ha/lease-evidence, cluster manage permission). Turning it on asks you to type the cluster's name and to confirm: "Our NFS server is a single coherent server with a sync export and applies writes in order; SimpleVirt cannot check this." SimpleVirt-Command then runs the datastore coherence check (below) and reports which hosts have a Ready BMC to the cluster services, and the cluster services themselves refuse to turn it on until every host's own report qualifies, every NFS datastore is mounted from the same server address and export on every host, and every datastore passed the coherence check. A direct call to a host's cluster service cannot skip these checks.

With it on, a host that qualifies and cannot renew a VM's lease, and that is also cut off from the cluster, stops its paused copy of the VM on its own (SIGKILL, no flush) 45 seconds after its last renewal, and if it cannot confirm the copy is gone it lets its watchdog reset it. Every lease renewal it writes says so, with the facts that make it true on that host, and every host also reports those facts to the cluster services. A surviving host then waits until the lease has stayed unchanged for 104 seconds and 139 seconds have passed since the later of: it saw the restart planned, it lost the old host, and SimpleVirt-Command last reached the old host. It then creates the next lease file for the VM, waits 14 seconds, checks that the old host did not write again, and starts the VM.

  • About 3 minutes, per VM in parallel. The restart comes about 3 minutes after the old host fails, against about 1 minute with a BMC. Each VM's wait runs in the background on the restarting host, so the VMs of one failed host are restarted together, not a few at a time, and a BMC or Ceph recovery onto the same host does not queue behind them.
  • Only hosts that qualify change behaviour. The 45-second stop, the stricter rule for when a paused VM counts as drained, the immediate stop of a VM resumed outside SimpleVirt, the 20-second reboot watchdog and the shutdown that stops held VMs without a flush apply only on a host whose own facts are complete (see "Each host must qualify"), whose VMs a survivor could actually restart from the lease (the cluster services armed and holding the HA authority, and the host without a Ready BMC), and only to VMs the cluster services track (an HA-protected VM with a cluster record). On every other host, and for every other VM, a storage outage behaves exactly as without the setting: paused VMs wait for the datastore. A host with a Ready BMC, and every host while the cluster services are disarmed or the HA authority is with SimpleVirt-Command, therefore keeps its paused VMs paused and resumes them when storage returns. A host that stops qualifying keeps the promise of its last lease record until a renewal without it has reached the datastore.
  • BMC first. A failed host that SimpleVirt-Command reads as having a Ready BMC is powered off by it; its VMs are never restarted from the lease. Command reports that list to the cluster services, which record it so every host decides the same way; until Command has reported once, nothing is restarted from the lease. Any reason the restart from the lease cannot happen for a recovery (the setting turned off, the old host back in view, the old host's report missing, a lease that does not qualify, the old host still renewing its leases for a whole window, the restarting host unable to read the datastore for about 5 minutes) sends that recovery back to the BMC and manual-confirm path.
  • Paused VMs stop after 45 seconds on a qualifying host cut off from both the cluster and the datastore. Without this setting they stay paused and resume when the datastore answers. If one switch failure takes the management network and the storage away from every host at once, every such VM stops after 45 seconds. Each host starts the VMs it stopped this way again on its own once its datastore answers and the cluster services confirm, with a quorum, that it is still their owner (at the generation the cluster now records, which can be higher than the host's own after a recovery that was planned and then given back to it) and no recovery of them is under way; until then they stay down. This also holds after the host's SimpleVirt service restarts in between (the record is kept on disk for the boot). A VM whose recovery was planned to another host and then could not use the lease stays down until it is restarted through the BMC or Confirm host is powered off. A lost quorum cannot be told apart from this host being cut off, so the 45-second stop also happens when the whole cluster loses its quorum together with the storage; no other host restarts those VMs until the quorum is back.
  • An aborted restart. If the old host writes the VM's lease again after the restart began, the old host is alive: the new host does not start the VM, marks the lease file it created as void (every host skips it, so the old host's own lease stays the current one and no third host can start a second copy beside it), and raises a critical alarm. The old host may still run the VM (its paused copy resumed) or may keep it stopped; the alarm says to check the old host and start the VM only if it runs nowhere. The recovery goes back to the BMC and manual-confirm path at once. A restart that had begun but can no longer finish under its own recovery (the recovery was re-planned or handed back to the old host) ends the same way, also when the cluster no longer asks the new host about it: each host checks for such restarts at start-up and every minute. If the old host comes back while the new host is about to create, or has created, its lease file, the cluster completes the recovery on the new host (which then finishes or aborts it) instead of handing the VM back to the old host.
  • A running old host learns of a restart within about 35 seconds. While the setting is on (or a host has ever seen per-VM lease files), each host re-reads its datastores' file list in the background every 30 seconds, so a host whose VM was restarted elsewhere while it kept running sees the new lease file and stops its copy. After a restart the new host also keeps watching the old host's lease file, across restarts of its SimpleVirt service, for as long as the cluster has not confirmed the old copy gone, and raises an alarm if it changes.
  • Each host must qualify, and the HA readiness check A failed host's NFS VMs can be restarted without a BMC names what each host lacks: a hardware watchdog with a timeout of 20 seconds or less, nowayout, and a passed Test watchdog reset (the button in the same section; the host must run no VM, and it resets twice: once to switch from the software watchdog to the hardware one, once to prove the hardware watchdog resets it); bare metal (not nested); sleep and suspend masked and no suspend this boot; the watchdog helper and shutdown guard from this release, with its run marker in place; no VM running on it without a storage-lease guard; and on every NFS datastore it mounts (also one it runs no VM on) a hard mount without soft, softerr, fsc or nocto, acregmax and acdirmax of 5 seconds or less, local_lock=all, and no pNFS layout. The cluster services also need the failed host's own report of these facts from within 10 minutes before it failed, from the same boot as its last lease record and agreeing with it. The restarting host checks its own mount of the VM's datastore the same way before it starts waiting and again right before it creates the lease file, and refuses if it mounts the datastore from another server address or export than the failed host reported. A host that does not qualify keeps its NFS VMs on manual confirm (or BMC); it never disarms HA. The VM's HA protection card says Restart: automatic (lease evidence), Restart: automatic (BMC) or Restart: manual confirm with the reason.
  • Datastore coherence check. SimpleVirt-Command checks every NFS datastore when the setting is turned on and every 10 minutes while it is on: every host mounts it from the same server address and export, a value one host writes is read back by every other within about 6 seconds, and of all hosts racing to create one file exclusively, exactly one succeeds. A datastore whose last passing check is older than 30 minutes at the time of a failure, or that failed it, is not used for a restart from the lease. The HA readiness check and the VM's HA protection card name a datastore that failed the check, or say that it has not run yet.
  • Other checks at the time of the restart. The restarting host also watches the leases of the failed host's other VMs: if any of them still changes, the host is alive and the window starts over (and after a whole window the recovery goes back to the BMC or manual path); if one cannot be read, the window starts over. If another host saw its own lease renewals fail or run slower than 3 seconds in the last 5 minutes, or cannot be asked, the window starts over too: the outage may be the datastore's, not the host's. A host SimpleVirt-Command still reaches (also at a new address) is not restarted from the lease, and neither is a host SimpleVirt-Command has not reported on in the last minute: while SimpleVirt-Command is down, restarts from the lease wait (it reports every 10 seconds; a host it has not reached since it started counts as unreached for that long). After a VM has been restarted from the lease once, it is not restarted from the lease again until its earlier host has reported a new boot (its old copy is then surely gone); each restart creates the next lease file exclusively, so two hosts can never restart the VM from the same lease.
  • Stays manual-confirm (or BMC): SAN datastores; datastores with an APD window (§49); two-host clusters without a witness and any loss of quorum (§26); cluster services disarmed or not holding the HA authority; hosts whose only watchdog is the software one; nested hosts (so a nested lab cannot demonstrate it); hosts without a passed reset test; leases written by an older release or without the full attestation; torn, absent or freed leases, or a lease another host holds; an old host the cluster's leader, the restarting host or SimpleVirt-Command still reaches; a host in a planned outage; VMs with a Ceph disk or a live migration on record; and powering a VM on by hand on another host, which still asks for confirmation. Every member must run this release (its cluster service reports schema 7); one that does not keeps the setting from being turned on.
  • SimpleVirt-Command waits, per VM and for a bounded time. While a restart from the lease is in flight for a VM, Command leaves that VM out of its 90-second takeover of a stalled cluster recovery, for at most about 5 minutes; every other VM of the cluster is taken over after 90 seconds as before, so one VM waiting on its lease never holds the others.
  • Not checked by SimpleVirt: that the NFS server applies each client's writes in order and holds no acknowledged write past about 3 seconds, and that it is one coherent server with a sync export. That is the statement you confirm. The lease is written through libvirtd's volume upload, as before (not with direct I/O): a renewal counts as written only once the upload has finished, which on a hard NFS mount means the client flushed it to the server on close. The 14-second re-check of the old host's lease after the restart file is created is the backstop if the export ever shows a late write.
  • Not built in this release: a shutdown that finds a VM still running unguarded with its lease unrenewed does not force an immediate reset (the watchdog resets the host when it stops being fed, as before).
  • Verified by tests only. The timing, the owner's bounded hold, the survivor's sequence and the abort are exercised against simulated storage, libvirt and watchdog helper. It has not yet been run on bare-metal hosts with a hardware watchdog (pulling the management and storage links of the owner, with a packet capture at the NFS server); until it has, use it only where a VM not started on the restarting host after an abort (and so possibly down) is an acceptable outcome.
  • A host that came back after an unclean stop asks the cluster services, from a copy of the cluster state that has caught up with the cluster, before it starts a lease VM on its own. A VM the cluster services do not track (HA does not manage it) is started on the host's own evidence, as without the setting.
  • Turning it off stops new restarts from the lease once each host's cluster service, in touch with a quorum, reports the setting off; each host's 45-second stop ends once a lease renewal without that promise has reached the datastore (a host cut off from the cluster or the datastore keeps the 45-second stop its last lease record promised). A host whose cluster service has not answered for 30 minutes (for example one removed from its cluster) turns the setting off on its own once none of its VMs' last lease records promise the 45-second stop. Hosts keep reading the per-VM lease files a restart created. With it off, a host's shutdown and its reboot watchdog behave exactly as before the feature.

What to do. Configure and enable each host's BMC in SimpleVirt-Command, and run Test connection so the BMC is checked to answer and report this host's identity; HA uses it only after that test passes, and then failover can complete on its own. Run it again after changing the BMC settings or password, and keep NFS VMs on storage that rides out its own failovers within a few seconds. On an NFS server that writes copy-on-write (one that keeps snapshots), keep some free space reserved on the datastore: each lease renewal rewrites a small file, and on such a server even that needs free space, so a completely full datastore pauses its VMs.


16. File-storage snapshots: what a running VM's snapshot does, UEFI VMs, and moves

On an NFS, local-directory or CephFS (qcow2) datastore a snapshot is an internal qcow2 snapshot, stored inside each of the VM's disk images.

  • A running VM's disk-only snapshot is taken live and never pauses it, but its disk I/O waits. SimpleVirt asks the VM's emulator to record the snapshot in every disk at the same instant, quiesced when a guest agent can freeze the guest (§6), then registers it with the host's virtualization layer. Recording it means walking and rewriting the image's allocation and reference-count tables, and the emulator does that synchronously: the disk's I/O, and any of the guest's processors waiting on it, wait until it ends. The wait grows with how much data the image holds. Measured in the development lab (qemu 8.2, a local disk opened the way the host opens VM disks): about 1 to 1.5 seconds for an image holding 4 GiB; for one holding 50 GiB, 4 to 28 seconds to take a snapshot (the first snapshot of an image is the slow one) and 4 to 14 seconds to delete one; for 200 GiB, 15 to 56 and 14 to 43 seconds. An NFS datastore is slower. So a running VM whose disks hold more than 16 GiB of data in all is not snapshotted live, and its snapshots are not deleted live: both are refused with that reason (power the VM off first), and a retention schedule says so once in a notice, takes the snapshot when the VM is next found stopped, and keeps its old snapshots until then. A delete that the emulator has not finished after a minute keeps the snapshot's record and asks you to delete it again; so does one that removed the snapshot from some of the VM's disks and then failed on another. Such a snapshot is listed as Partly deleted: it can no longer be reverted to (the host refuses, and the revert dialog never powers the VM off for it), and deleting it again finishes the job. If the emulator cannot be asked (a disk attached through a filter, for example), the host falls back to the behaviour of earlier releases: it offers only a snapshot with memory and says how long it pauses the VM. These waits have not yet been measured on the appliance's own hosts against a busy guest on NFS.
  • A snapshot with memory still pauses the VM. Including the memory is an option in Take snapshot (never the default): the VM pauses while its memory is saved, about a second per 100 MiB of guest memory, longer on a slow datastore. Reverting to it restores the running VM.
  • Reverting to a disk-only snapshot needs the VM powered off, as on SimpleVirt HCI: it rewrites the disks in place. The revert dialog offers Power off, then revert — except for a UEFI VM, below.
  • UEFI VMs. The host's virtualization layer (libvirt 9 on this release) cannot take an internal snapshot itself of a VM whose firmware variable store is a pflash device. So a stopped UEFI VM on file storage cannot be snapshotted, and a UEFI VM's snapshot cannot include its memory; both are refused with that reason before anything is attempted, and a retention schedule reports it once (a notice on the alarm list) instead of failing at every run. A running UEFI VM's disk-only snapshot is taken live like any other, and a copy of its firmware variable store (boot entries, keys) is kept with it on the host and put back when you revert to it; the copy moves with the snapshot on a migration and an HA restart by SimpleVirt-Command, and is removed when the VM is deleted or leaves the host. Whether this libvirt release accepts reverting (and re-registering and deleting) such a snapshot has not yet been run on lab hardware. Until a host's libvirt is new enough to snapshot UEFI VMs itself, or a lab run has confirmed it on that host, the revert dialog does not offer Power off, then revert for a UEFI VM's snapshot, so the VM is never stopped for a revert that may then be refused: shut the guest down from inside if you want to try, and a refusal changes nothing.
  • Moves. A live migration over shared storage, a cold migration and an HA restart carry the snapshots (§1); a live migration needs both hosts on this release, and is otherwise refused for a VM with file snapshots, as is any live move that copies the disks. A live migration of a VM that has snapshot records waits up to two minutes for a snapshot, prune or disk operation of that VM to finish before it starts, and is refused with "retry shortly" if one is still running. It waits while still queued (its task says "waiting for the VM's snapshot operation to finish"), so it holds none of the host's outgoing migration slots meanwhile and a cancel, a drain running out of time or SimpleVirt-Command giving up stops it before anything moves. A VM without records is never held up by a clone, a resize or another disk operation; only a snapshot operation of that VM still running after the two minutes refuses its move. From the moment a live move of a file VM is accepted (queued included) until it ends, a snapshot, a snapshot delete or a re-attach of that VM is refused with "the VM is being migrated to another host; retry shortly" (a retention schedule tries again at its next run), because a record created on the source mid-move would be lost when the move ends. After a carried move the source keeps its copy of the records for 24 hours and answers SimpleVirt-Command's status with it while the VM is not defined there, also when its service restarted during the transfer (libvirt finishes the move without it): the copy set aside for the move is then kept as the moved copy. If SimpleVirt-Command itself restarts during the move, it does not resume following it, and the destination re-attaches the snapshots it finds inside the disks (by name, without their descriptions) at its next scan, or at once with Find lost snapshots. A move that ends without a clear answer (§21) re-creates the records on both copies, so the one you keep has them; one settled as a move while the source still has a stopped copy of the VM leaves the records on that copy and hands them over from the source service's memory only, so a restart of that service before SimpleVirt-Command read them leaves the destination to re-attach them as above. A live storage move is refused while the disk has snapshots; an offline one keeps them when the disk lands on another qcow2 file datastore, points every snapshot record at the new disk, and is undone (the VM stays on its old disk, the copy is deleted) if any record cannot be updated; it is refused into or out of SimpleVirt HCI. If the move fails after the records were pointed at the copy and they cannot all be pointed back, both copies of the disk are kept and the error says to check the VM's snapshots before deleting either.
  • Snapshots left inside the disks without a record (by a move made before this release, an interrupted delete, or a restart while SimpleVirt-Command was down) are found by Find lost snapshots on the VM's Snapshots tab. One that is in every disk can be re-attached and then reverted to (its disks only: a saved memory image is not restored, and its description and parent are not known); one in only some disks can only be removed, which frees its space. Find lost snapshots answers only from the VM's one current host: it is refused from a host that still holds a stale definition of a VM running or defined on another host, where the other host's snapshots would look lost. After an adopt, a host re-attaches the complete ones on its own, and every host scans the disks of the VMs defined on it when its service starts and every 6 hours (skipping a VM with an operation in progress), raising the warning Snapshots without a record for each VM that has some. A host that still holds a stale definition of a VM now running elsewhere can raise that warning for the other host's snapshots; remove the stale definition.
  • Verified by tests with simulated hosts only. The live snapshot and live delete are exercised against a real qemu in automated tests, and the record carrying (cold, live and HA), lost-snapshot scan and UEFI handling against a simulated virtualization layer. They have not yet been run end to end on lab hardware with the shipped libvirt 9 and qemu: a live migration carrying records between two hosts, an HA restart staging them, the I/O wait of a live snapshot and a live delete on a large, busy image on NFS, and the re-registering, revert and delete of a UEFI VM's snapshot.

17. Memory is not overcommitted by default

A VM is powered on only where its memory fits, counting what is promised to the running VMs, not what they use right now (Memory). A host packed with VMs that rarely use their memory, or relying on memory de-duplication to fit more, refuses further starts until you confirm them or turn on Allow memory overcommit for that host. That is deliberate: without swap, an overcommitted host stops a running VM when its guests use their memory. The reserve kept for SimpleVirt HCI storage daemons counts each one at its memory target or what it uses now, whichever is more. While the cluster's configuration cannot be read (its monitors are unreachable), the daemons count at Ceph's larger defaults, so a small HCI host may refuse starts until it can be read again.


18. The system disk is shared, and SimpleVirt keeps a reserve on it

The host's system disk holds local VM disks, the ISO library, import staging and, on a SimpleVirt HCI host, the Ceph monitor's store. The installer still uses one root file system in this release. To keep it from filling, these bulk writes keep a reserve free there: an ISO upload, an OVA import, a template conversion, and a disk image imported onto a local datastore (a cold migration onto it, for example). Copies made by a create from an image, a deploy or a clone, and new thick disks, are not held to the reserve; the system-disk alarms described here still warn as the disk fills. The reserve is 8 GiB or 10% of the file system, whichever is more, and 30% on a host that runs a Ceph monitor. A write that would go below it is refused before it starts, or stopped part way and removed. The host raises a warning as the disk nears the reserve and a critical alarm at it, and on a monitor host at Ceph's own 30% line and at 10% (the monitor stops at 5%). Writes made inside a guest, and files copied onto the host by hand, are not held to the reserve. An import onto any other datastore (an NFS export, a separate local disk) only keeps 2 GiB or 2% of it free. A second local disk can be made a datastore of its own from Host → Settings → Storage → More → New datastore from a local disk… (see section 107), which takes VM disks off the system disk.


19. Full disk copies onto file datastores run one at a time, and are not always paced

A create from an image, a deploy from a template or a clone onto an NFS or local datastore runs one heavy copy per host at a time, so several copies never pile onto one export. SimpleVirt can pace a copy (about 60 MiB/s, bypassing the page cache, at idle priority) only when the host service can read the source disk and write the new one itself. Disk files are normally owned by the hypervisor's own service account and are not readable by the host service, so on a standard host most copies are made by the hypervisor's own copier instead, which runs at full speed through the page cache. On NFS such a copy can slow the lease renewals of the VMs running on the same export. Prefer deploying large templates while the export is quiet. Imports onto NFS (a cold migration, an OVA's finished disk) and the bulk copy of a live storage move onto or off NFS are paced at about 60 MiB/s. The hypervisor's own copier cannot be paced with the kernel's I/O limits either: those apply to local disks, and NFS traffic does not pass through them. When renewals on a datastore slow down, the Lease renewals slow alarm (ha.lease.renew_slow) says so (§49).


20. Host shutdown, removal and update guards have edges

  • A paused VM is saved at host shutdown only on the host's own storage. A VM that is paused or suspended when its host shuts down or reboots is saved (it resumes where it was) only when all its disks are on that host's own storage, it was not paused by a storage error, and the save finishes within the 60-second shutdown window. A paused VM on shared storage, or one whose save does not finish in time (a VM with a lot of memory on a slow disk), is stopped with the host, as before. Move or resume such a VM before a planned outage.
  • A removed host's VM disks are matched by name. When a host is removed while it could still hold VMs, the files kept as in use are found by the disk names SimpleVirt-Command could read, or, for a host that no longer answers, by the VM's name: a file whose name starts with it. A disk with an unrelated name is not covered; check before you reclaim anything on a datastore such a host used.
  • A host-side apply that never hears from its system updater keeps refusing VM starts for up to 20 minutes before it gives the apply up and starts VMs again.

21. A move that ends without a clear answer pauses the VM until you choose

When the last step of a live migration loses its answer, SimpleVirt pauses the source copy instead of guessing. It first asks the destination host directly; if that host does not run the VM, nothing is paused. If it does, or it cannot be asked within a few seconds (for example the network between the hosts is down), the VM stays paused on the source until you check the destination and choose which copy to keep. That costs the VM's availability for that time, and it never lets two copies write one disk. The check reads the destination's own VM list, and on SimpleVirt HCI also who has the VM's disk open; a destination behind a network that is down cannot be checked, so its VM stays paused.

What to do. Follow the alarm: check the destination host, keep one copy, power off the other, and resume the paused copy only if it is the one you keep.


22. Placement refuses rather than overcommit, and some checks are the controller's alone

Automatic placement never promises a host more memory than it has, so on a tightly packed cluster an evacuation, a maintenance drain or a planned reboot with VMs moved first can be refused or leave VMs in place, load balancing may make no move, and a Kubernetes create or added worker can be refused until you confirm it, where earlier releases packed the VMs in. Add memory or a host, or move or stop VMs yourself. Only an HA restart may overcommit, as a last resort, with an alarm.

Some guards are enforced by SimpleVirt-Command, not by the host itself:

  • A host being emptied refuses a migration or power-on that comes through SimpleVirt-Command; a migration started directly against the hypervisor, bypassing it, is not refused by the host (the drain then stops when it sees the VM, and nothing is shut down).
  • The last check before a planned reboot or shut down (that only acknowledged VMs are on the host) is made by SimpleVirt-Command just before it asks the host; a VM started on the host directly in the seconds after that check is shut down with the host.
  • HA admission's failover packing applies Required VM-to-host rules as a restart by SimpleVirt-Command does: a VM pinned (required) to its own host needs no failover room and is listed as not HA-protected (pinned) with the ha.vm.pinned_unprotected warning, and a VM with a Required keep-off rule, or pinned to another host, is packed only onto the hosts its rule allows. It does not apply VM groups: a member of a keep-apart group is counted as if it could restart on any survivor. While the cluster services are armed and some host is older than this release, they do not apply the rules (§35), so admission then counts a pinned VM as restartable anywhere. A Preferred rule never keeps a VM down.
  • The host does not re-check its VM list itself right before a planned reboot or power-off: the host power request carries no list of the VMs the operator accepted. SimpleVirt-Command's last check, and the rule that no placement (HA restarts included) picks a host from that check until it is back, cover every move made through SimpleVirt-Command.
  • A cluster's Allow memory overcommit is applied to power-ons, to the VMs maintenance offers to start again, and to migrations. A create, clone or deploy that starts the new VM uses only the host's own setting: when the new VM does not fit, it is left stopped and you can power it on.

Moving a switch that carries networks to other uplink adapters, between one adapter and a team, or to another teaming mode rebuilds those networks on the host. Each network's VLAN device is removed and recreated on the new uplink or team. The bridges, the VMs and their virtual NICs stay as they are, but VMs on those networks lose network for a few seconds on that host, longer with LACP while it negotiates with the physical switch. Building the new path first and then switching over is not possible in general, because the new team often needs the very adapter the old path is using. Adding a member to an existing team, or removing one while a working member stays, is applied live and does not cut anything. Replacing every working member of a team is treated like a rebuild: the new adapters join the team first and the old ones leave only once a new link is up, but the team's traffic still moves to ports that have not carried it before.

Raising a switch's MTU above what its uplink carries restarts the uplink. Many network cards reset their link when the frame size changes, so every VLAN on that uplink loses network for a few seconds. An MTU change the uplink already carries does not touch it. The host answers only once the uplink carries traffic again; if it does not within 30 seconds, the host puts the uplink back to its previous frame size and the change fails. An edit that changes a team's members and its MTU together applies the MTU after the members moved.

What SimpleVirt does about it: each of these changes is shown with the networks and attached VMs and needs your confirmation, a Logical Distributed Switch is changed one host at a time and stops at the first host that fails — SimpleVirt-Command moves on only after the host has answered and then reports the switch's uplinks carrying traffic again (within 30 seconds), so even a host on an older release that answers success with dead uplinks stops the rollout — and a host that cannot complete the change puts the old uplinks back. To avoid the cut entirely, move or stop the VMs on those networks first, or make the change while the host is in maintenance mode. Every other switch edit (VLANs, networks, MTU, policy) is also rolled out one host at a time and judged by what each host can still reach; see §102.

The teaming mode belongs to the whole Logical Distributed Switch, not to each host. Every host that teams two or more uplinks on a Logical Distributed Switch uses the same mode; a host cannot be attached with a different one without changing it, and rebuilding the networks, on every other teamed host.


24. A management address change can stall NFS datastores reached from that address

The kernel NFS client keeps each connection on the address it was opened from. When a host's management address is removed while an NFS datastore is reached from it (the NFS server is on the management network, or reached through the default gateway, and no storage service adapter carries it), the open NFS connections go silent until the client gives up and reconnects from the new address, which takes about a minute by default. VM disks on that datastore stall for that long, and the NFS lease that guards them cannot renew in the meantime.

What SimpleVirt does about it: the host console's Configure Management Network refuses an address change while VMs run on such a datastore, and names them. It also looks at the host's open connections, so an old address an earlier change kept (see below) counts as long as an NFS connection still uses it. When the change goes ahead with the datastore still mounted, the console puts the old address back on the interface, marked as no longer preferred so every new connection uses the new address, and remounts the affected datastores while no VM uses them, so their NFS connection is opened again from the new address:

  • The kernel shares one NFS connection among all datastores of the same server, so every datastore of a server is unmounted before any of them is mounted again, and a server none of whose datastores can be unmounted is left alone as a whole.
  • A datastore is unmounted only after its server has answered from the new address. A server that does not (for example an export limited to the old address) is left mounted.
  • A datastore that cannot be mounted again is retried once. If it still fails, the console says that the datastore is not mounted on this host and that VMs on it cannot start here; SimpleVirt keeps retrying the mount on its own.
  • The old address is removed only when the host's connection table shows no NFS connection leaving from it any more.

An open NFS connection never moves to a new address on its own while it carries traffic, so a timed grace address would only postpone the stall. When an old address has to stay (a VM started on the datastore in the meantime, libvirt did not answer, the server does not answer from the new address, or a connection still uses it), it stays with no time limit and the console says which datastore holds it and why. Only two things remove it: the console itself, which checks when it starts and on every refresh of its home screen and removes the address as soon as no NFS connection uses it, and a restart of the host. An NFS connection closes on its own a few minutes after its datastore goes idle, so stopping or moving the VMs on that datastore is enough for the console to finish; restarting the host also does. A revert to the previous configuration is never refused; it warns instead, and handles the address it removes the same way.

What it does not cover: an address handed out by a DHCP server. When a DHCP lease changes the management address, nothing on the host is asked first, so none of the above applies. Give hosts that carry NFS datastores a static management address or a DHCP reservation, or carry NFS on a storage service adapter. Making a host-initiated address change safe for the NFS lease on its own needs the lease renewer to pause its failure count, and the watchdog to keep being fed, for a bounded window around the change; that is not in this release.


25. Ports in VM networks rely on one rule in the network service, not a file per port

SimpleVirt does not write a network-service file for each port it puts into a VM network or a team. What keeps the host's network service from pulling such a port back out — when it restarts or reloads — is a single setting, KeepMaster, on the rule that covers every physical port that is not the management port (and on the image's first-boot DHCP rule), plus a rule that tells the network service to leave SimpleVirt's own VM network devices alone. SimpleVirt writes those files at install, on upgrade, at every boot and before every console network change. A per-port file would be a second layer on top, but the SimpleVirt service runs unprivileged and cannot write the network service's configuration, so it is not written. If something else on the host edits or replaces those rules, the protection is gone until the next boot rewrites them; the host also puts a port that left its team or VM network back on its own within a few seconds.


26. A two-host SimpleVirt HCI cluster pauses every VM on one failure

With two storage hosts, one host or disk outage pauses the disks of every VM on the SimpleVirt HCI datastore until it returns. The datastore keeps two copies of each block and needs both for every read and write, and a two-host cluster has a single storage monitor. SimpleVirt does not lower the requirement to one copy to keep VMs running, because a write acknowledged on a single copy can be lost when that disk fails. Creating a two-host datastore therefore needs a typed acknowledgement, and an alarm stays up while a cluster is in this state (critical until acknowledged, then a warning). Planned work (maintenance, update reboots) is refused on such a cluster unless forced, because it would pause the VMs too. The fix is a third host with a disk: the datastore then keeps three copies, needs two, and runs three monitors, so VMs keep running through one failure. The other way out is a witness (a small third SimpleVirt host that holds no data): with it the datastore accepts writes on one copy while a host is down, so VMs keep running, at the risk §119 describes.


27. SimpleVirt HCI placement groups: sized when a pool is made, changed only when you confirm

A new SimpleVirt HCI pool is sized from its storage disks (about 100 placement groups per disk, a power of two) and sized automatically from then on: Ceph changes its count as disks are added or it fills, never below the count it started with, moving at most 5% of the data at a time. A pool that already held VM disks before this release keeps its count, with automatic sizing off, until you change it on the cluster's SimpleVirt HCI tab, Advanced → Placement-group sizing: one step at a time (a doubling or a halving), only while every placement group is active+clean and no other storage operation runs, or by turning automatic sizing on for that pool. Both say how much data moves and ask you to confirm. A standing warning is raised while the cluster has fewer than 20 or more than 250 placement groups per storage disk. Ceph's own internal pools are left to Ceph. See section 105 for what a change costs.


28. A UEFI VM restarted by HA gets its UEFI settings as of the last copy

The host keeps a UEFI VM's settings (boot entries, boot order, enrolled keys) in a file beside the VM, not on its disk. SimpleVirt-Command keeps a copy while the VM's host is up, reading it at most once a minute, and an HA restart puts that copy on the survivor. A change made in the last minute before a host failure can therefore be missing. A VM whose host was never seen with this version has no copy: HA still restarts it, with default firmware settings, and says so in the restart's outcome. HA counts a VM as restarted once it is running; it does not check that the guest operating system finished booting. Most Windows and Linux guests boot with default settings; a Debian guest installed with the installer's defaults may stop at the firmware screen.

The restart's outcome says the settings were restored only when the survivor reports it installed that copy. When a VM goes back to the host it last ran on, that host keeps its own store unless the copy is newer.

A restart by the cluster services while SimpleVirt-Command is down uses a copy too: SimpleVirt-Command sends its copy to every other host of the cluster (re-sent when it changes, checked every few minutes), and the host that restarts the VM installs it, unless its own store for the VM is as new or newer (§96). Such a restart therefore has the settings as of SimpleVirt-Command's last copy before it went down; a host that never got a copy restarts the VM with default firmware settings, and its audit line says so (uefi_settings=none).

A cold move copies the settings and checks them on the destination before the VM leaves the source, and is refused when that is not possible. When a host removes a VM's definition after a move or a failover, it keeps a copy of the settings it had for 90 days.

What to do. Keep hosts updated so every UEFI VM has a copy. For a Debian guest, install GRUB to the removable media path as well, so it also boots with default settings.


29. PCI passthrough keeps what the host uses, and matches devices by model

A device the host is using is never passed through. That covers a disk that is mounted or used as swap (directly, through native NVMe multipath, or under LVM, RAID or dm on top of it), a network port in a bridge, bond or VLAN or with an IP address, a network adapter with SR-IOV virtual functions enabled, a USB controller with a device plugged in, the console display (while it is not bound to the passthrough driver) and the management network adapter, and every device whose IOMMU group holds one of them. A disk used some other way (for example opened directly by an application, or part of a ZFS pool) is not recognised as in use, and neither is a GPU or other device a host program uses through its own driver.

A VM's own device can come back carrying the VM's state. A device that was not bound to the passthrough driver before the VM started goes back to its host driver when the VM stops. A USB device plugged into a controller the VM owns is then ignored. Disks the host activated on such a device with nothing mounted (often the guest's own LVM volumes, but possibly a host storage disk) stop the start with a question: the power-on asks Power on anyway? for an operator who has checked, and an alarm names the device. HA never answers that question for you; a VM refused this way after its host came back is left for the operator instead of being retried.

A restarted or moved VM gets the destination's own matching device, by vendor and model, bound to the passthrough driver and not used by the host or a running guest. The other functions of that card in its IOMMU group (a GPU's audio or USB function) go with it even on their host driver. Only on the VM's own host may a device at the VM's own address still be on its host driver. A VM whose devices were not identified while its host was up (its host was never seen with this version) keeps its old addresses; the destination then refuses the start if a device there is missing or in use, but an idle device of another model at that address could be given to the guest.


30. After a restore, and when its own database or clock misbehaves, the controller holds back

A restored controller waits for you before it acts on the backup. Until you choose Resume in Administration, Backup and restore, HA does not fail over a host the controller has not seen since the restore, switch changes ask for confirmation, and migration certificates and rosters are not pushed. The trade: a host that is down when the controller comes back from a restore is not failed over by the controller; its VMs come back through the hosts' own recovery or your action. A host added after the backup is not in the restored records and cannot take part in live migration until you add it again and resume. When you resume, the controller pushes its live-migration roster and peer firewall list, built from the restored records, to every host: a host paired after the backup that you have not added again drops out of every other host's roster and firewall, and each host whose roster changes applies it one at a time. The controller cannot yet read the roster the hosts hold, so it cannot name that host for you or keep it in; compare your host list with the restored one before you resume.

A storage fence from the backup keeps only its session entries. When the backup recorded an HA failover whose fence still protects a restarted VM, the hold keeps the failed host's recorded storage sessions blocked, but not the block on its address as a whole: a host added since the backup may use that address now. A warning names the address. Check that the old host is still off before you resume.

A Logical Distributed Switch is never pushed over what the hosts run without your confirmation. Before an edit, Remediate or attach, the controller compares each host with the declaration and lists every change it would make (uplinks, teaming, MTU, VLANs, port groups and service adapters it would remove or re-address) with the VMs they affect; you apply that list or choose Adopt live. A host joining a cluster gets its switch completed only when that changes nothing it runs; a re-tag or uplink difference is left for you to review. A host that cannot be read blocks the push until it answers or you confirm without it.

A database that hangs is an error after a bounded wait, and an alarm. Every statement the controller sends to its database is limited to 15 seconds (lock waits to 10). A high-availability pass that has not finished for two minutes raises a critical alarm, because while it waits the controller does not fail over VMs or refresh storage fences. Safety checks that read a cluster's settings (HA admission, HA host exclusions, the storage reserve) refuse power-on, create and cold migration with a plain reason while those settings cannot be read, rather than skip the check.

Clock jumps on the controller are tolerated, not ignored. Host states follow the order polls were taken, not the wall clock, so a clock stepped backwards does not freeze them. Snapshot retention measures age by the time the host recorded on each snapshot, at most one schedule interval past the newest, and deletes a bounded number of scheduled snapshots per pass (six, or one per ten policies on a larger fleet), so a clock that jumps forward cannot prune every VM's history at once.

During a rolling update of the cluster service, newer recovery steps wait. Ownership transfers, planned-outage shields and the quiet-return restart of an HCI VM are recorded only once every host's cluster service reports that it understands them; until then they are held and the VM keeps running where it is. A host whose cluster service meets a change it cannot apply says so in its status, stops leading, and should be updated.

31. An Images-library ISO is reachable only where its datastore is mounted

An ISO item in the Image library is one file on the library's backing datastore. SimpleVirt does not copy it to other datastores, so only hosts that mount the backing datastore can mount it. The CD/DVD dialog and Create VM list such an ISO as unavailable elsewhere, with the hosts that can mount it, and a mount or create on another host is refused without touching the VM. The library's backing must be a file datastore (NFS, a local directory or the HCI file store): an ISO import onto block storage is refused.

SimpleVirt records which storage the ISO was written to, not only the datastore's name. A local directory is one host's own storage, so an ISO on a local-directory backing can be mounted only on the host it was imported through; another host's datastore of the same name is a different directory and does not count. An ISO imported before this was recorded is offered only where a datastore of its name carries a storage identity (shared storage); import it again to use it from a local directory.

A VM with a library ISO in its drive keeps it across a migration or an HA restart only onto a host that mounts that datastore, as with any ISO picked from a datastore. The migration precheck checks the CD/DVD drive: a destination that does not mount the image's datastore (the same storage at the same path), or, for an image in the host's own ISO library, has no image of the same name and size in its own, is refused for that VM, with the remedy (MEDIA_UNREACHABLE; a library copy of the same name and size is a warning, MEDIA_LIBRARY_COPY, since it is not proven the same file). Only a file directly in the host's ISO library directory (/var/lib/simplevirt/isos) counts as a library image; a file of the same name anywhere else is checked as a path. The Guest Tools disc, which stays in the drive after Install Guest Tools, is the one library image accepted whatever its size: it changes with each release, so while hosts run different releases (a rolling update) the copies differ, and the move goes ahead with a warning, the destination opening its own copy. Eject it once the tools are installed. Evacuation, maintenance and the distributor then pick another host or name the VM. An HA restart does not check it. What to do: back the library with a datastore every cluster member mounts, and eject the disc once the guest is installed. A host's own console mounts only ISOs from that host's ISO library; mount an Images-library ISO from SimpleVirt-Command.


32. SAN datastores: one whole LUN per VM disk, and verified by tests only

iSCSI and Fibre Channel datastores are a Tech Preview (support status (in the appliance's documentation)).

An iSCSI or Fibre Channel datastore holds VM disks one LUN each (SAN datastores). What follows from that:

  • You manage the LUNs on the array. SimpleVirt does not create, grow or snapshot a LUN. A disk is as big as its LUN, and a create or add-disk is refused when no free blank LUN is big enough.
  • A deleted VM's LUN is zeroed before it is used again, which takes time. When a VM on LUNs is deleted with Delete disks, or a LUN disk removed with its volume, its claim turns scrubbing (GET /api/v1/san/claims shows how far it is) and SimpleVirt-Command has a host that sees the LUN zero all of it, at no more than 128 MiB/s, resuming where it stopped after a restart. A 1 TiB LUN takes over two hours. The LUN is free once every byte reads zero. Chunks that already read zero are not rewritten, so a thin LUN's unwritten space is not allocated by the scrub, but every byte is read; the first 2 MiB and the last 1 MiB, which the blank check reads, are always written. The scrub waits, and the claim's note says why, while any host cannot be checked, while any host's VM uses the LUN or holds it open, and while the only hosts that see it run an older release. An administrator can release a scrubbing claim (DELETE /api/v1/san/claims/{wwid}; refused while a slice is writing, so retry a minute later); the LUN then keeps what the scrub had not reached, and the blank check refuses it until it is erased. A VM deleted without its disks, or a disk detached without its volume, is never scrubbed: the data stays on the LUN, the claim is released, and the blank check keeps the LUN from a new disk until it is erased. The administrator's erase (for a LUN that held data before SimpleVirt saw it) still zeroes only the start and the end of the LUN: to destroy such data, erase the LUN on the array.
  • No snapshots, clones, templates, cloud-init or OVF seeds, and no storage migration for a VM with a LUN disk. Live migration keeps the LUN in place and works between hosts that see it. A shared-LUN datastore made from blank LUNs gives its disks snapshots, clones and templates.
  • HA restarts a SAN VM only once its failed host is proven powered off (a BMC read-back, or your confirmation), the same rule as §15. The cluster services restart one too, without SimpleVirt-Command, once every host runs this release and the VM's host has a Ready BMC; they accept only BMC proof (§96). Any other SAN VM is restarted by SimpleVirt-Command only, whether the cluster services are armed or not (§5): it is not restarted while SimpleVirt-Command is down, and on an armed cluster SimpleVirt-Command leaves it alone when it cannot read which VMs the cluster services hold; it tries again on its next pass.
  • A VM's disks are all LUNs or none. Adding a LUN to a VM with another kind of disk, or another kind of disk to a VM on LUNs, is refused: no single fence keeps one writer on both. A VM defined by hand that mixes them is never protected or restarted by HA.
  • A SAN VM is not powered on while SimpleVirt-Command cannot read every other host, unless that host is proven powered off, nor while another host runs a copy. No takeover confirmation lifts this. After a failover the returned host keeps a stopped copy of the VM; delete that copy there (definition only) once the VM runs on the survivor.
  • A host outside the cluster that cannot be read can hold up a LUN allocation, when this controller has never read its datastores, or they last listed one of the candidate LUNs. What each host last listed is kept across controller restarts.
  • A multipath LUN is read only after the host drops its cached copy. Under dm-multipath (Fibre Channel, or iSCSI with Additional portals) the host's cache of a LUN's paths is not dropped by itself, so before the blank check, each scrub slice and the read-back after a scrub, the host's root helper drops it. That request waits in the same queue as the host's HCI storage operations: while a long one runs, the request can time out after 20 seconds, and the LUN then counts as not proven blank (the allocator tries other LUNs, the scrub tries again). A host whose SimpleVirt service was updated without its system image (the helper does not know the request) reports its multipath LUNs as not readable until the host is updated. A path that is down (a dead portal, a Fibre Channel path the transport took offline) is not flushed, since no read goes through it, so a LUN with one path down is still checked and scrubbed through its other paths. A path that is still marked running while the kernel recovers it can make the drop wait: the helper is stopped after 15 seconds, but a process blocked inside the kernel only goes when the I/O does, and until then the queue it shares with HCI and File Services operations waits behind it. Only the LUNs on a device that could not be dropped count as not readable; the rest of the request goes ahead.
  • At most 12 LUNs are read per new disk. The blank check reads the candidate LUNs a few at a time, smallest first, and stops at the first blank one. When the 12 smallest candidates all hold data or cannot be read, the create is refused even if a larger blank LUN exists: erase or unmap the LUNs that hold data, or name the LUN for the disk. A LUN that does not answer a read within 8 seconds counts as not proven blank.
  • An erase that times out may be partial. Each zero write has a 60-second deadline. When one runs out, the erase is reported as not finished, and the LUN may have its start zeroed but not its end. Erase it again, or on the array.
  • A SAN VM does not start by itself when its host boots; start it from SimpleVirt-Command.
  • A Fibre Channel datastore is identified by its name. Give it the same name on every host. A disk names its LUN by WWID, so a host that does not see the LUN cannot open it.
  • iSCSI path redundancy. A datastore with Additional portals has one session per portal, kept by SimpleVirt, and dm-multipath joins each LUN's paths, so a running VM rides out a failed path. With every path down, I/O is queued for about a minute (no_path_retry 12), then fails, which pauses the VMs on those LUNs until a path returns. That bound is a default: an array multipath-tools has a built-in entry for keeps its own (often a longer queue sized to its controller takeover), and settings the array's vendor documents go in /etc/multipath/conf.d/, since /etc/multipath.conf is replaced on every update. A controller failover has not been tested with SimpleVirt yet. The iSCSI session timeouts are open-iscsi's defaults: a failed path can take up to two minutes to be dropped, I/O moving to the other paths meanwhile.
  • Bring-up and rescans with a portal down. The datastore comes up through any portal that answers, but only once simplevirtd runs (its first pass after a host restart, within seconds): a SimpleVirt-kept datastore does not come up at libvirt's own start. The LUN list (and so a new LUN disk) is read through the first session open-iscsi lists; while that session is down, a rescan is refused rather than run (libvirt would wait on it, then stop the datastore), and SimpleVirt logs that session out to move the reads to a working path once it has been down for three minutes and every LUN has another working path.
  • A restart of the host's virtualization service while the read path is down. When libvirt restarts it re-reads every datastore, and if the read through that first session fails, it stops the datastore, logging the host out of the portal the datastore's pool names. SimpleVirt starts the pool naming the portal of that session, so normally only the dead session goes. open-iscsi numbers sessions itself, though, so after a portal is added or a path logs in again the first-listed session can be another portal's. The same holds for a hidden companion pool an earlier release gave the datastore that is still running on a host not restarted since the update: libvirt finds the session by target, not by portal, so it reads that pool through the same first session and, on a failure, logs out of the companion's portal. If the first-listed session goes down while the datastore's pool or any running companion names another portal, it is logged out on the next pass (within about a minute); if a VM holds it open (a VM started before its LUN had a second path), it cannot be, and san.path.restart_risk is raised until it is gone: restarting the host's services or updating the host then would also log out a working path. That immediate logout is tried once per dead session; after that the usual three-minute retry applies, so a portal that refuses the login is not retried every minute. What libvirt 9.0 does on a refresh through a FAILED session has not been seen on a real target.
  • Declaring an iSCSI datastore again only adds. New portals and new CHAP settings are applied; a portal left out of the request stays, and blank CHAP or mutual CHAP fields keep them. Remove portals or turn CHAP off with Edit paths and CHAP….
  • A change that a host cannot apply changes nothing there, with one exception. If a host's storage helper is busy or down, the host lacks a secret, or (on a datastore libvirt logs in) no session runs through the new settings, that host keeps its datastore as it was and answers with the reason (a session that logged in before a CHAP change does not count: it keeps the credentials it logged in with, so it has not tried the new ones); the Edit paths and CHAP… dialog names each host it failed on and why, and the change is made again for those hosts. On a datastore libvirt logs in, the helper tries the change before it is kept: when no session runs through the new settings at the end, it puts back every open-iscsi record value it rewrote (libvirt's own record among them), deletes the records it created, restores its CHAP store, and retires no portal. A request is withdrawn when SimpleVirt stops waiting for it, and the helper refuses one that reaches it after that, so a timed-out change is never started later. A login the helper had already handed to open-iscsi's daemon when its time ran out can still finish after the helper stopped waiting for it: before putting the records back, the helper watches such portals for three seconds and logs out any session that comes up there. One the daemon brings up after that is a stray path the datastore does not use; it goes at the host's next restart, or by logging it out by hand (iscsiadm -m session). The exception: if the helper is killed in the middle of such a try (the host loses power, or the helper's hard 110-second limit stops it), what it had rewritten stays, and the next start of the datastore by libvirt may then fail its login (for instance with a mutual CHAP check libvirt did not ask for); if a value cannot be written back, the answer names it instead of saying nothing changed. On a datastore SimpleVirt already keeps, settings that reached the host but found no working session are kept and retried every few minutes.
  • iSCSI logins and the other root storage requests run in two queues. The host's root helper runs iSCSI session requests one at a time in a queue of their own, next to the queue of every other storage request, so a login waiting on a slow portal never delays a Ceph or File Services request or a LUN read. Two iSCSI datastores converging at once still wait on each other: one datastore's logins on black-holed portals can take up to about 100 seconds. A queue that stops in the middle of a request (its result could not be written, the spool being full or read-only) is started again for the requests after it, but that request is never run again: it is answered as failed (it may have been carried out in part), and SimpleVirt shows the error. A queue that stops three times in one run of the helper is not started again in that run.
  • Changed CHAP settings reach a running session only when it logs in again. A path that is connected keeps the credentials it logged in with; it uses the new ones after a host restart or once it reconnects. SimpleVirt does not log working paths out to apply a CHAP change, nor to try one. So on a datastore SimpleVirt keeps, a CHAP change made while every path runs a session is kept untried: the host's iSCSI paths entry says so and san.portal.chap_unverified is raised until a login uses the settings; a wrong secret shows only at the next login of a path (then as san.portal.auth, with that path down). On a single-portal datastore libvirt logs in, such a change is refused instead (nothing is changed); make it together with a new portal, or while the host has no session to the target.
  • A VM started before its LUN had a second path keeps using that one path (it opened the path device, not the multipath map) until it is powered off and on once. Such a path is never logged out while the VM holds it: removing its portal waits, shown as Being removed.
  • iSCSI datastores added by an earlier release with extra portals are taken over on the first pass after the update. Their hidden companion pools stay defined (inactive in use, never autostarted) until a host restart; stopping one by hand would log the host out of a portal. While one is still running, the read-path check above counts it.
  • Path health alarms. san.path.degraded (a LUN has fewer working paths than the datastore has portals, or than it was seen with) and san.path.lost (no working path) are raised from what the host's SCSI layer reports, after two readings a minute apart, and clear on the first healthy one. On Fibre Channel, where SimpleVirt does not know how many paths to expect, a path that disappears entirely is noticed only if the host saw it since its service started. A LUN that reads fewer paths than it was seen with stays degraded, however long it lasts, because a path the kernel removed after a failure cannot be told from one retired on purpose. After retiring a path on purpose, declare the datastore again on that host (the same settings): that takes the present path count as normal. Acknowledging the alarm in SimpleVirt-Command silences it without changing that.
  • CHAP secrets are root-readable on each host. open-iscsi keeps a session's credentials only in its own node records and takes them as arguments of iscsiadm, so while SimpleVirt stores one, root can see it in the process list (libvirt stores its CHAP secret the same way). They are never shown by the API or the UI, never logged, and kept in root-only files.
  • Not yet run against a real target. The allocator, the disk definitions, the placement rules, the HA tier, the scrub, the multipath paths and every refusal are covered by automated tests; no real SAN array has been tested yet, so a run against a real iSCSI target (with two portals, mutual CHAP, a portal pulled and restored, a portal added and removed under a running VM, a host restart with the first portal down, and a libvirt restart while the read path is down) and against a Fibre Channel fabric is still pending.

33. Storage migration onto and off SimpleVirt HCI, disk grow and space reclaim

  • Moving a disk onto or off HCI is new and not yet run on real hosts. A running VM's disk is mirrored live into an HCI image (or out of one into a qcow2 file), and a stopped VM's disk is converted across with the same host-safe copy the Image library uses (one at a time per host, refused when the host lacks the memory or staging space). Every combination of the saved-disk rewrite is covered by tests; a run on real HCI storage is still pending.
  • A live move of an HCI disk onto an NFS datastore that needs a lease is refused. The VM would run there without the single-writer lease that datastore needs. Stop the VM and move the disk then; its next start takes the lease.
  • A disk with snapshots is moved only offline, and only between qcow2 file datastores: the stopped VM's disk is copied byte for byte with its snapshots and their records are pointed at the new disk (§16). A live move, a move into or out of SimpleVirt HCI, and any move of an HCI disk with snapshots are refused: the snapshots would be left behind and then deleted with the old image. Power the VM off, or delete the snapshots first.
  • Growing the disk of a running VM on a file datastore is done by qemu itself (it holds the image open), and the datastore is re-read afterwards. Not yet run on real hosts against an NFS datastore; a grow that qemu refuses is reported as failed and changes nothing.
  • Space reclaim (discard) needs a power cycle for existing VMs. New and newly started disks pass the guest's trims to the datastore (discard='unmap', detect_zeroes='unmap'), so a thin qcow2, HCI image or thin LUN gives freed space back. A VM defined before this release gets it the next time it is started from off (a restart inside the guest is not enough); its disk list says so until then. The guest still has to trim: modern Linux distributions run a weekly fstrim timer and Windows runs Optimize Drives on a schedule; SimpleVirt Guest Tools also turn the Linux timer on once and re-trim Windows volumes weekly (see §57). On an NFS export that cannot punch holes (NFS v3, or v4.0/4.1) a trim is accepted and reclaims nothing.

34. Add control planes has not yet run across several hosts

Add control planes… (Kubernetes clusters) has been exercised by automated tests only. It has not yet run on a cluster that spans several hosts: no control plane has joined a running cluster through it, and no cluster with one control plane has been moved to a shared address with it. The built-in shared address also relies on kube-vip moving the address between control planes, which has not been tested either (Kubernetes node images).

What else follows from how it works:

  • Odd totals only, one host each. It grows a cluster to 3 or 5 control planes, never past 5, and needs as many SimpleVirt hosts that can take a node as the total you choose.
  • It only adds. It does not remove control planes, move a cluster back to one, or change a shared address once set.
  • A failed join can leave an even count. If the second control plane joins and the third does not, the cluster has 2 etcd members, which stops if either goes down. The task fails and says so. Run Add control planes… again to reach 3.
  • The API server restarts once while a cluster with one control plane moves to its shared address, and a second time if that move fails and is undone.
  • A controller restart stops the run. If SimpleVirt-Command restarts during Add control planes, the run does not continue. The first control plane keeps the backup it took, under /etc/kubernetes/simplevirt-ha-backup-<time>. Check kubectl get nodes and the etcd member list, then run Add control planes… again: it refuses, and says why, while the etcd member count and the control planes do not match.
  • Nodes SimpleVirt did not create, or cannot reach, are not re-pointed. They keep using the first control plane's IP until you run the command the plan and the task show for each.
  • Kubeconfigs you already have keep the first control plane's IP. They keep working while that node is up. Download the kubeconfig again to use the shared address.
  • An external load balancer is yours to set up. It must forward TCP to port 6443 on every control plane, including the new ones the plan lists.

What to do. Try it on a test cluster first, then check kubectl get nodes and the etcd member list on a control plane before you rely on it.


35. Placement rules and the cluster services: what an armed cluster applies

A Required placement rule (pin VMs to a host or a host group, or keep them off one) is enforced by SimpleVirt-Command: on manual moves, evacuation, maintenance, the Workload Distributor, and the HA restarts SimpleVirt-Command makes. The cluster services on the hosts (simplevirt-clusterd) do not read these VM-to-host rules. (VM groups, which keep VMs apart or together, are different: they travel to the cluster services in each VM's recovery manifest once every host is updated; see §54.) While they are armed, the hosts restart a failed host's VMs on their own (§5), and they may restart a VM on any healthy host, including one its Required rule keeps it off, or a host other than the one it is pinned to. A VM pinned (required) to a host that fails therefore does not stay down on an armed cluster: it is restarted elsewhere. A Required placement rule (pin a VM to a host, or keep it off one) is enforced by SimpleVirt-Command on manual moves, evacuation, maintenance, the Workload Distributor, and the HA restarts SimpleVirt-Command makes. When every host of the cluster runs this release, SimpleVirt-Command also writes each VM's Required host rule into its recovery manifest, and the cluster services (simplevirt-clusterd) apply it to the restarts they make while armed (§5), exactly as SimpleVirt-Command does: a VM pinned (required) to the host that failed stays down until that host is back, and a host a Required rule keeps the VM off is never used. The host a restart is sent to checks the rule again and refuses. A Preferred rule never travels: it never keeps a VM down. (VM groups, which keep VMs apart or together, travel in the manifest too; see §54.)

What follows from that:

  • While some host is older than this release, armed cluster services do not read the rules. They then restart a failed host's VMs on any healthy host, including one a Required rule keeps the VM off, and a VM pinned to a host that fails is restarted elsewhere. HA admission then counts such a VM as restartable anywhere. Update every host to close this.
  • A rule whose host has not reported its cluster identity yet is added once it has; until then the VM's manifest keeps what it carried.
  • Once its host is back, a VM restarted off its rule is not moved home on its own. With the Workload Distributor enabled, the tab recommends moving it back onto a host the rule allows, marked Required rule. The distributor never starts that move itself, even in Automatic mode; you apply it, or migrate the VM yourself.
  • Disarmed, SimpleVirt-Command drives every restart and applies the Required rule as the user guide describes, but then a failure while SimpleVirt-Command is down restarts nothing until it is back (§5).

What to do. Update every host of the cluster to this release. If a VM must never run anywhere but its pinned host even on a cluster with older hosts, keep its cluster services disarmed, or set the VM's restart priority to Disabled on its HA protection card.

36. A host admin is root with its OS password over SSH

Every host admin is also an OS account in the simplevirt-ssh group, with full sudo, and SSH takes that account's OS password (or a key) without the host's second factor. The second factor locks the host's console on tty1 (see Host MFA (in the appliance's documentation)), not SSH: anyone with an admin's password who can reach the host's SSH port, while SSH is on, can sign in and, with the same password, use sudo. SimpleVirt limits this (Hardening (in the appliance's documentation)): SSH is off on a new install, three tries per connection, a 10-minute lockout after five wrong passwords, no root sign-in, sudo that asks for the password, every password at least 12 characters, and no other text login on the screen. Not available yet: a second factor over SSH, a screen to manage SSH keys (keys-only SSH is set up by hand, as Hardening (in the appliance's documentation) describes), and a second factor on the host's own web sign-in. A host upgraded from an earlier release keeps SSH on if it was on, and raises a warning alarm while SSH accepts passwords; its admins' passwords shorter than 12 characters keep working until changed, with a notice at each web sign-in. The SimpleVirt-Command appliance raises the same warning about its own SSH (controller.ssh.password_auth). The SimpleVirt-Containers appliance has the same SSH, sudo and lockout settings, but no alarm for SSH: it is not managed by SimpleVirt-Command. A SimpleVirt-Containers appliance installed from an earlier image keeps passwordless sudo for its admins, and its earlier SSH settings, until it is upgraded from this release's ISO or its sudoers file is replaced by hand (Hardening (in the appliance's documentation)). Factory Reset, which removes all of this access, runs only as root at the host's own console (the console menu on its screen or remote KVM, or its Enter Shell): it refuses over SSH and from an admin's own login through sudo or su, because it removes that account. The images have no serial-console login, so serial-over-LAN alone does not give a way to run it.

What to do. Keep SSH off on hosts that do not need it (the console's Toggle SSH), or switch it to keys only; allow the SSH port only from your management network; protect the server's remote KVM like the server itself; give each person their own admin account; and change an admin's password when someone who knew it leaves.


37. Anyone who can restart a host at its console can get a root shell

The boot menu has no password. Anyone who can restart a host and reach its boot menu, at the rack or over the server's remote KVM, can edit the boot entry (for example add init=/bin/bash) and start a root shell without any login. That shell is not recorded anywhere: only what is done afterwards with simplevirt-recover writes to /var/log/simplevirt-recovery.log. The console lock and the host's second factor do not apply to it. SimpleVirt does not set a boot-menu password, because this is also the documented recovery path for a host whose every admin login is lost (see Emergency recovery: a hypervisor host (in the appliance's documentation)). The system disk is not encrypted either, so whoever can boot other media on the server can read it.

What to do. Treat physical and remote-KVM access to a host as root access. Keep servers in a locked room or rack, put the remote KVM (the server's management controller) on a separate, restricted network with its own accounts, and watch for unexpected restarts: SimpleVirt-Command shows a host going down.


38. Imported disk images must be self-contained

SimpleVirt imports only a disk image that holds all of its own data. Some image formats can point at other files: a qcow2 can have a backing file or keep its data in an external data file, and a VMDK can be a small descriptor that lists other files, or name a parent disk. Copying such an image on the host would also copy the files it points at, which can be any file on the host. So SimpleVirt refuses, with a message that says which kind of reference it found:

  • an Images-library upload or URL import whose image points at another file;
  • an OVA whose disk points at a file that is not inside the same OVA (a VMDK descriptor whose data files are other members of the same OVA still imports);
  • creating a VM from a cloud image, cloning a VM, preparing a library image for another datastore, or moving a stopped VM's disk to another datastore, when the source disk points at another file;
  • a migration that copies a stopped VM's disk to another host, when the disk's first bytes are an image header that points at another file. A raw disk can hold such bytes only if software in the guest wrote an image header at the very start of the disk.

The format of every image is decided by SimpleVirt (from the OVA disk's own content, or from the format the datastore records for a disk) and is never guessed from the content during a copy. Stream-optimized VMDKs, including the ones exported by other virtualization tools, are accepted. A qed or version 1 qcow image, or the oldest VMDK format, is accepted as an Images-library upload only when it names no backing file or parent. An OVA disk in one of those three formats is refused; convert it to qcow2 first.

Existing disks. A disk already on a datastore in a format that cannot point at another file (raw, ISO, LUKS-encrypted, VHDX, VHD, VDI and similar) is cloned and moved exactly as before. A disk that is a VMDK descriptor with its data in separate files cannot be cloned or moved to another datastore; flatten it into one file first.

While a disk is copied. The copy reads the same file that was checked. On the host doing the copy, the datastore file browser will not replace or delete the source until the copy finishes. This includes an upload that was already running when the copy started: it is checked again as it finishes, and it fails with "is being copied" instead of replacing the file; upload it again once the copy is done. A copy that starts while the file browser on that host is replacing or deleting its source waits for that to finish, up to 30 seconds, and then checks the file that is there. If it is still not finished after 30 seconds, the copy fails; run it again.

A file replaced from another host is not blocked. It is caught when the copy ends: the copy is thrown away and the operation fails with "the source disk was replaced or changed"; run it again. A change in how much space the source uses on the storage alone does not count as a change, so a disk on an NFS server that is still settling its space accounting after the VM stopped is copied normally.

When the check cannot finish. If the check cannot run to the end, the disk is not copied and the message names the cause: the datastore is too slow or unreachable, the host is short of memory, or it got a read error. This is a host or storage problem, not a problem with the image. Fix the storage and try again. A datastore that stops answering does not hold up copies on other datastores; the file browser reports it as not responding after about 15 seconds.

What to do. Turn the image into a single file before you import it, for example qemu-img convert -O qcow2 <image> <new-file> on a workstation, and import the new file.


39. Datastore file checks and hosts that report a datastore differently

Before a file on a shared datastore is deleted, overwritten, reclaimed, or downloaded by someone without vm.edit, SimpleVirt-Command asks every host that mounts the datastore whether one of its VMs uses the file, and refuses if any host cannot answer. It finds those hosts by the datastore's identity. Some hosts mount the same storage but report a different identity, or none, so they are asked as well:

  • a host that reports the datastore inactive: an inactive NFS, CephFS or folder datastore reports no identity, but the export can still be mounted and its VMs still running;
  • a host that names the same NFS export with another server name or address (for example nas:/vms on one host and 10.0.0.5:/vms on another).

What follows from that:

  • A host is matched only on evidence. An NFS datastore is matched by name, mount point or export. A CephFS datastore is matched by its file system or mount point. A folder datastore is matched only when it is inactive and has the same mount point. A datastore that reports its own, different identity is never matched. So an active folder datastore with no identity is not matched to the others. The same folder name on every host is usually unrelated local storage.
  • SimpleVirt-Command looks up NFS server names itself. If it cannot resolve a name, it treats the server as possibly the same one, and the host is asked. If the hosts resolve names differently from SimpleVirt-Command (split DNS), the match follows its own answer.
  • A stale datastore definition can block file operations. Take a host that still has an inactive datastore of the same name, whose folder no longer exists. That host cannot answer. Deletes, overwrites and reclaims on the datastore are then refused with 409 naming the host, and so are downloads by users without vm.edit. To clear it, remove the stale datastore from that host, or make it active again.
  • On a host not yet updated to this release, a HEAD on a download answers from the folder listing. It then reports a symlink's own size rather than the size of the file it names, reports a link to a folder as a file, and returns 502 for a path whose folder is missing. An updated host gives the same answers as the download: the file a symlink names, 400 for a folder, and 404 for a missing file or folder. The download itself is the same on old and new hosts.

40. SimpleVirt HCI tells a local disk from a shared one by what the disk reports

SimpleVirt HCI never builds a storage disk on a disk another host can write (Which disks it uses). The hard signs are a SAN transport (iSCSI, Fibre Channel, SRP, NVMe over Fabrics), a multipath path or WWID, a SAN datastore's LUN, the same disk seen twice on one host or on another host, an array-family device handler (any handler but the generic alua one), and a storage array's SCSI vendor and model. Some shared disks show none of these:

  • ALUA alone does not count. Target port groups (ALUA) and NVMe asymmetric namespace access are reported by storage arrays and by many local dual-port SAS drives alike, so a disk that shows only these is offered as local, with a caution in the disk picker (shared_hint). An array missing from the vendor list, on a SAS cable with no multipath map, is offered the same way. Check that no other host is cabled to such a disk before you claim it.
  • A dual-ported shelf with no array controller is caught only by a second host. Plain SAS drives in a shelf cabled to two hosts look local on each. SimpleVirt-Command refuses such a drive when another host reports the same drive, live or in the last list it read from a host that is down. A host it has never read is not compared; one outside the cluster with no SAN datastores is not waited for either.
  • Drives moved from a host that is down are held back. A drive that a down host last listed is refused for a new storage disk on another host until that host is back or removed from SimpleVirt-Command. The critical Storage disk on shared storage finding is not raised from a down host's old list.
  • Marking an array LUN local is an API call. POST /api/v1/hosts/{id}/disks/mark-local lifts the storage-array rule for one disk; there is no button for it yet.

41. The version-skew checks start with this release, and a host's own console does not know its Command

SimpleVirt-Command on release line N manages hosts on lines N and N-1, and a host is never newer than its Command (operations). What enforces that has edges:

  • Hosts installed before this release report no agent API version or capabilities. SimpleVirt-Command treats them as agent API 1: they still refuse an unknown request field, and the controller still sends them only the optional fields they list. They have no update.command_skew_check, so the deprecated direct per-host upload (POST /api/v1/hosts/{id}/update) is refused for them on a release-build controller. The Lifecycle upload checks the image on the controller and works for every host. A controller started without a data directory has no Lifecycle staging, so for such a controller the direct upload still goes through to those hosts with no release check (it logs that); the host still verifies the image's signature.
  • Only some agent requests tolerate fields a host does not know. Requests that create, read, probe or import accept and ignore an unknown field. Every other agent request, including every one that stops, destroys, migrates, fences, takes over or changes what the host trusts, still refuses it with 400. A newer SimpleVirt-Command therefore cannot rely on an older host ignoring a new field there; it sends such a field only to a host that lists the matching capability or request_fields entry.
  • Staging is held while a cluster runs a rolling upgrade. Hosts in that cluster are skipped by automatic staging, and staging on one of them by name fails with the reason. Stage the new image after the run finishes.
  • Staging an image from a host's own console is not checked against the controller. The host learns the controller's release only from a staging upload the controller sends. An image staged directly on the host, while the controller is unavailable, can be newer than the controller. Health Center then reports that host as newer than its Command.
  • The policy compares releases, not builds. Two images of the same release always count as compatible, whichever was built first.
  • A development build (dev) is not judged. It is neither refused nor flagged.

What to do. Update SimpleVirt-Command first and stage hypervisor images through Lifecycle. If Health Center reports a host newer than its Command, update SimpleVirt-Command to that release.

42. Failover time for many VMs is measured on test hosts only

When a host carrying many VMs fails, HA restarts them in parallel: up to 8 at once, at most 4 on any one surviving host and 4 from any one datastore, up to 32 waiting or running at a time, higher restart priorities first. A slow restart of a high-priority VM holds back the lower priorities planned with it until it finishes (that is what restart order means), but not the controller's other HA checks. On NFS storage each VM still waits until its old host has stopped renewing that VM's lease for the steal window, but all of a failed host's VMs now wait that window at the same time instead of one after another.

On simulated hosts, restarting every VM of a failed NFS host took about 50 seconds for 10 VMs, 55 seconds for 50 and 65 seconds for 100. Those figures leave out the real start and boot time of each VM and the storage's own latency, and they have not yet been measured on real hardware for each storage type. Plan your recovery-time objective with margin until they are. The controller reports its own HA figures (how long each check takes, restarts started, in flight and running at once) in GET /api/v1/ha/state, under engine.

Each cluster's HA check runs on its own. Every pass checks each HA cluster separately and side by side, and apart from the one exception under "What remains" below, no host call runs under the controller's HA state lock any more: definition reads, restarts, fences, BMC power-offs and identity reads, lease reads, ghost cleanup, the cluster services' status reads, the stretched-cluster facts, releasing a storage fence once a returned host has settled, starting a VM again on its own host after a failover that never completed, putting an RBD VM back on its owner after a quick reboot, and settling a recovery plan the cluster services left half done. Each cluster's check also reads its own hosts' VM definitions itself, so a host that is still online but slow to answer (an agent waiting on stalled storage) holds up only its own cluster's check: the other clusters are checked and failed over on schedule, and approvals and rejects go on. A check still running when the next pass comes is not started twice; it is shown per cluster under engine.cluster_checks in GET /api/v1/ha/state (how long the last check took, whether one is running, how many passes found it still running), and one running for more than 2 minutes raises the HA stall alarm naming its cluster. Each decision taken before a host call is checked again after it, and dropped to the next pass when that cluster's failover state changed meanwhile.

What remains: the lock itself is still one for all clusters, held only for the in-memory bookkeeping between host calls. A few small database calls (reading a cluster's record, or a host's CPU record when a restart checks CPU compatibility, and writing the HA task entries) still run under it, each bounded by the database session limits, and so does a restart's read of a survivor's passthrough devices when the pass could not read them beforehand. While a returned host's failover is being closed (its fences released and its VMs restored, usually a few seconds), approving or rejecting that failover is refused with "being closed right now"; try again after it. The same answer is given while a VM a fence halted waits for its restart on its returned host because the first attempt had to be put off to the next pass: the failover closes once that VM runs again (or its record says why it was not started), and the pending restart is kept across a controller restart. That answer is only given while the controller is really working on the restart: the host is online with a fresh inventory, the post-restore hold does not apply, and the controller's own HA check reached the failover within the last 30 seconds (it does not while the cluster services hold HA for the cluster). Otherwise approving or rejecting closes the failover, and each VM still waiting is marked "needs a manual power-on" on the HA page: power it on yourself if it is off. A rejection of a failover whose restarts are already running takes effect once they finish; one that had already started its VM on another host is not undone. If the host failed again before then, the rejection still closes the failover. The per-cluster behaviour is measured on simulated hosts only.

43. The appliance firewall starts by only counting, and some of its inputs are the controller's

Every host and SimpleVirt-Command run a default-deny firewall (the port reference (in the appliance's documentation) lists what it allows). What it does not do yet:

  • It starts in Observe. A new install and a host updated from an earlier release only count what Enforce would drop. A cluster left on Automatic switches to Enforce by itself after 72 hours in which every host reported a healthy firewall, nothing from a cluster address would have been dropped and nothing was routed through a host; a host that cannot report (an older release, unreachable) keeps the whole cluster in Observe. Until then the ports are as open as in earlier releases.
  • Automatic can only judge what it saw. Traffic Enforce would drop from a public address does not hold the switch (it is what the firewall is for); from a private or link-local address that is not a known cluster address, it holds the switch for you. Traffic that did not happen during the 72 hours (a monthly job, a disaster-recovery path never exercised) is not seen, so check the port reference for anything that reaches a host only rarely.
  • A host learns most of its peers from SimpleVirt-Command. The cluster services roster, the storage monitors and the migration peers are read on the host itself, and the last list the controller pushed is kept on disk, so a controller outage never closes a port the cluster uses. SimpleVirt-Command keeps each host's last good adapter addresses, so a host whose agent is briefly unreachable stays in every other host's list. A storage address that changes while the controller is down is admitted by the other hosts only once the controller pushes the new list (within 90 seconds of it coming back; a host added to the cluster is pushed at once).
  • A controller rebuilt on a new address is not admitted by hosts with an access list until that address is in the list or the controller pushes again. Its pushes are what tell the host the new address, so put the controller's recovery address in the list beforehand, or use Firewall Break-Glass at each host's console. SimpleVirt-Command admits its hosts' management subnets to HTTPS whatever its own list says; a host moved to another subnet must be added to the controller's list (or the controller's Break-Glass used) before it can announce its new address.
  • The controller's access list does not narrow HTTPS below its hosts' management subnets. Those subnets are admitted whole (so a re-addressed host can announce itself). On a flat network where workstations and VMs share the hosts' management subnet, every machine on it reaches the controller's HTTPS whatever the list says; the Controller firewall page says so under the list when it applies. Put the hosts' management network on a segment of its own to make the list meaningful.
  • Break-Glass at the controller's console asks for an operator sign-in (as its local shell does) and records every change in the break-glass log and the controller's audit trail. An operator who lost the password resets it first with Reset Operator Password, which does not ask for one.
  • File Services ports open on every host whose share service was ever enabled, because the floating File Services address can move to any of them.
  • Reverse-path filtering is not tightened unless you ask. The default leaves each host's kernel setting alone. Strict (an explicit cluster setting) applies only in Enforce and only where every cluster peer is on a directly connected subnet, no two interfaces share a subnet and no policy routing is configured; otherwise it stays loose. Its effect on traffic from outside the cluster (which can still arrive asymmetrically) is not measured beforehand.
  • Not yet loaded on a real host's kernel. The applier and both rule sets are tested against a stand-in for nft that records what would be loaded; the rule syntax has not been loaded into a running kernel (nft -f) as part of this release's tests. That check includes the port guard's split between recording a catch and dropping it, which the tests hold in the rule text only.
  • No outbound filtering. The firewall filters what reaches an appliance and what it would route; it does not restrict connections an appliance opens.
  • A boot starts open. The firewall is loaded by its own service a few seconds after boot, not by the boot-time rule set, so a host's ports are as open as in earlier releases for those seconds (the migration ports keep their own boot-time rules).
  • The controller's own firewall (Administration → Controller firewall) has the same modes and automatic switch as a cluster, without reverse-path filtering, which it never changes.

44. The VM port guard checks addresses it can prove, and leaves some guests out

The guard covers every VM NIC on a port group set to Enforce (the default for a new port group), and on every port group that carries one of the host's own addresses: a storage or migration service adapter, or the management address on the port group's own bridge or VLAN device (see "What counts as the management segment" below). On those, Allow does not lift the guard; only Exempt does, and only an operator sets it. A guarded VM NIC may use only the MAC it was given, may not use a SimpleVirt host's address, may not answer DHCP or advertise IPv6 routes, and may send only IPv4, IPv6, ARP and RARP frames, plus LLDP and LLTD (Windows network discovery) from its own MAC, which pass without being counted. The guard drops only while the cluster's firewall is in Enforce; in Observe and Off it lists, on the cluster's Networks tab, the VM NICs it would cut. A host's networks list shows each port group as Guarded or Not guarded, which is what the guard does there, whatever the stored policy says. The policy of a host-local port group (one made on a host's Networking page or by the VM wizard) is changed from its row menu, Port guard…, in SimpleVirt-Command or on the host's own page; a distributed port group's policy is changed on its cluster switch. Its limits:

  • A VM's own IP address is not pinned. The guard does not learn each VM's address, so on a guarded port group one VM can still claim another VM's IP (but never a host's). Pinning needs a reliable source for every VM's address, and guests with several addresses (cluster floating addresses, load balancers) would be cut by a one-address rule.
  • Some guests need an exemption. A redundancy pair with a shared virtual MAC, a VM that bridges containers onto the network with their own MACs, a VM that routes or serves DHCP, and a VM that tags its own VLANs are cut on a guarded port group once the firewall enforces. Set their port group to Allow (or, on one that carries a host's address, to Exempt) with Port guard… on the port group; the exemption is per port group, not per VM. On an exempted port group a VM can claim the host's address. A VM with nested virtualization turned on (a host-passthrough CPU) is never guarded.
  • Infra port groups from earlier releases become guarded. A port group that carries a storage or migration adapter, or the management segment, was stored as Allow (or with no policy) and is now guarded on the hosts of this release; in Observe the cluster card lists which VMs on it Enforce would cut, and the automatic switch to Enforce waits for you when it saw any. Ordinary VM port groups stored as Allow, or without a policy, stay unguarded; only new ones start on Enforce.
  • What counts as the management segment. Only a port group that physically holds the management address: its bridge carries it, or the management address is on a VLAN interface and the port group has that VLAN on that same uplink. In the layouts SimpleVirt builds this rarely applies (the installer does not put management on a bridge, and the management NIC cannot be a switch uplink). The common layout, a VM network on a second NIC or trunk that is the same LAN as management, is not detected: it is an ordinary VM port group, so under Allow (or no policy) its VMs can claim a host's management address. Give such a network Enforce. Detecting a shared LAN from what the bridges hear (the gateway's MAC, say) would also match every VLAN behind a router that uses one MAC on all of them, so it is not guessed. A bridge that holds a host address but is no port group (one made by hand) is always guarded, since there is no policy to exempt it. A VM attached with macvtap (direct) is not on the host bridge and is not covered at all.
  • Exempt needs hosts of this release. A host from an earlier release reads Exempt as Allow. For a distributed port group the controller counts that as realized on such a host (it has no port guard, so Allow is unguarded there, which is what Exempt asks for) instead of re-applying the switch every pass; once the host is updated the Exempt is applied on the next pass. For a host-local port group, Command refuses Exempt on such a host and offers Allow.
  • A VM is covered within seconds of starting or arriving. The guard re-reads the running VMs within two seconds of one starting, stopping or migrating in, and in full every ten seconds; a NIC hot-added to a running VM runs unguarded until the next full read. The guard is keyed on the host's tap device: if libvirt hands a just-freed tap name to another VM, that VM's frames meet the old VM's MAC (and are dropped in Enforce) for up to those two seconds plus the firewall's own apply.
  • The guard's catch list is bounded, and says which check matched. Each catch is listed with the check that caught it (a MAC that is not the VM's, a non-IP frame type with its type named, ARP for another MAC, a host address, a DHCP server reply, a router advertisement or redirect), on the cluster card and in the review hold, so harmless chatter such as spanning tree from a bridge inside a guest reads differently from a VM claiming an address. A host of an earlier release lists only the MACs. The guard remembers up to 4096 wrong-MAC catches and 1024 of each other kind for an hour. A guest that sends frames from many made-up MACs fills the first: the guard then keeps dropping (and counting) everything it catches, but stops listing new catches of that kind until entries expire, so the per-VM list on the cluster card can be incomplete while the counter is not.
  • The witness and the controller are not protected addresses. Only addresses that SimpleVirt hosts own (management and service adapters) are. A stretched cluster's witness may run on SimpleVirt-Command, which may itself be a VM on a guarded port group, and protecting its address would cut it off; so a guarded VM can claim the witness's or the controller's address. Keep the controller and the witness off port groups that untrusted VMs share.

45. Only live migration is bandwidth-capped

A live migration whose path shares a physical port with management or storage on either host is capped (automatic: half the slowest link it crosses, three quarters for an evacuation, never below 100 MiB/s), and the source host gives it a longer time limit to match (up to 4 hours, against 30 minutes uncapped). A move on a link of its own is not capped. Nothing else on a shared link is shaped: there are no traffic priorities between the cluster services, storage, migration and VM traffic, and no DSCP marking. On a converged link, give live migration its own adapter, or set a lower cap on the cluster's Networks tab. When neither host reports its link speed (some virtual NICs), automatic leaves the move uncapped. A planned reboot, maintenance or rolling update stretches its own drain limit (60 minutes uncapped) by the same factor as its longest capped move, so a three-quarter cap allows about 80 minutes; a drain that makes no progress for 5 minutes still stops early. A host from before this release ignores the longer time limit and still aborts a move at 30 minutes, while SimpleVirt-Command keeps waiting for the longer one: the move is reported failed when the host gives up, and the drain stops at its own limit. Update every host before relying on caps on a slow shared link.

46. Single sign-on is OIDC only, and identity sources have edges

SimpleVirt-Command signs operators in with its own local accounts, an LDAP directory, or single sign-on through any standards-based OpenID Connect (OIDC) identity provider. What it does not do, and what to plan around:

  • No SAML. Single sign-on is OIDC only. A provider that speaks only SAML needs an OIDC front end, or operators keep using directory or local sign-in.
  • Single sign-on is for browsers. Automation uses API tokens. A token owned by a single sign-on identity carries only the role bound to that identity directly, never a role that comes from its provider groups, because the controller cannot re-check group membership without the person signing in. Bind the identity itself to a role if it must own tokens.
  • A single sign-on sign-in that starts on one controller must finish on it. The pending sign-in is held in that controller's memory for ten minutes. Behind a load balancer without session affinity, or across a controller restart, the callback is refused and the person starts again.
  • Group membership is checked at sign-in. A directory or single sign-on session keeps the groups it signed in with until it ends. A directory-owned API token re-checks them at least every 15 minutes, but only in search-then-bind mode: with a bind DN template there is no reader account to look a user up with, so such a token carries only the owner's direct role. When the directory cannot be reached, a directory-owned token runs with only the owner's direct role until it can. The API tokens page marks every directory-owned token in that state with "Reduced access", and the upgrade logs each one by id.
  • The directory's domain is the name of its identities. Directory accounts and groups are bound as dir:<domain>\<name>. The domain is derived from the search base the first time and then kept; changing it later detaches every directory role binding, which must then be made again.
  • A directory account named like a local account needs a role of its own. It signs in only once its directory identity is bound to a role, and then only with that role. Local accounts always sign in first, so a person whose directory name matches a local account signs in to the local account when they type that account's password.
  • An insecure directory transport is kept on upgrade. A directory that already ran over plain ldap:// or with certificate verification off keeps working after the upgrade, recorded as accepted by upgrade and shown as a warning on the Directory page until the transport is fixed. A new insecure configuration needs the lab-only acknowledgement.
  • Several controllers on one database must run the same release. Role bindings are stored by principal (local:<name>, dir:<domain>\<name>). An older controller reading them finds no binding for a bare name and grants nothing until it is upgraded too.
  • Nested groups need the in-chain matching rule. Nested resolution searches with the rule 1.2.840.113556.1.4.1941. A directory that does not support it returns nothing extra, and only direct memberships apply.
  • One kind of old API token cannot be told apart. Before this release a directory account named like a local account signed in as that local account. A token it minted then is recognised on upgrade by the directory groups it recorded: it is moved to the directory account (marked "Review" on the API tokens page) or, with no directory configured any more, disabled. A token minted that way by a directory account that was in no group recorded nothing that tells it apart, so it stays with the local account of that name. If directory and local names overlapped before the upgrade, review the old tokens listed under those local accounts and revoke the ones their owners did not create.
  • The single sign-on client secret is not encrypted on a file-backed controller. With PostgreSQL it is sealed in the database; on the file backend it is kept in oidc.json, readable only by the controller (mode 0600), like the directory bind password.
  • Delegated administration stops at narrower accounts, and full control is all or nothing. A role with admin.users but not every privilege (a "Helpdesk" role, say) can reset, delete, rebind and revoke the tokens of accounts no wider than itself, and nothing more. Backup, restore, the controller's certificate, controller updates, the SimpleVirt-Containers link and the controller's own console need every privilege in the catalog. A custom role that held every privilege is given the ones a later release adds, at start-up; the first start of this version also gives datastore.download to a custom role holding every other privilege, since the earlier upgrade never gave it to custom roles. A role that held everything except datastore.download on purpose is widened by that first start and must be trimmed again by hand. While no account bound directly holds every privilege, any account holding both admin.users and admin.roles may grant privileges it does not hold (audited as authz.grant.recovery), so it can restore full control. A delegated administrator still sees every account's API tokens (names, owners and dates, never a secret) and still manages notification receivers and the subscription. The Console button of the controller's own virtual machine is still offered to a delegated administrator; the controller answers it with a 403 saying the console needs every privilege, because the browser does not know which virtual machine is the controller.
  • The audit log names local accounts by their bare name. Every other identity is written in full (dir:<domain>\<name>, oidc:<issuer>\<subject>), so a bare name in the log is always a local account.

47. Secure Boot, device firmware and the operating-system base

The SimpleVirt-Hypervisor installer, and every appliance installed by or upgraded to this release, boot with UEFI Secure Boot on (UEFI Secure Boot). What is not covered:

  • The SimpleVirt-Command and SimpleVirt-Containers installer media still boot with Secure Boot off only. Their installed systems carry the signed boot chain. Install them with Secure Boot off, then turn it on; both normally run as VMs, where the VM's firmware settings decide.
  • The TPM is used for one thing only: a host seals the disk-encryption key-encryption keys it holds to it (§116). SimpleVirt does not measure the boot into the TPM or encrypt the system disk with it. A VM's virtual TPM is software and needs no host TPM.
  • No key of SimpleVirt's own is enrolled. The chain is trusted through the third-party UEFI certificate authority the firmware already carries; a server with that authority switched off must have it enabled, or boot with Secure Boot off. With Secure Boot on, the kernel loads only signed modules, so an out-of-tree driver a hardware maker supplies separately cannot be loaded.
  • The recovery loader boots with Secure Boot off only, and only when chosen. Every install and upgrade writes a self-contained unsigned loader at EFI/simplevirt-fallback/BOOTX64.EFI. It is not in the firmware's boot order: if the signed chain will not start on a machine, the host does not come back from the upgrade reboot on its own, and someone at the console (or remote KVM) switches Secure Boot off and picks that file from the firmware's boot-from-file menu. The installer cannot test-start the signed chain before the reboot.
  • Tested under emulated firmware, not yet on physical servers. The signed boot chain has been booted under emulated UEFI firmware with Secure Boot on (installer medium and installed disk). Booting a physical server with Secure Boot on, and booting the ISO written raw to a USB stick under UEFI Secure Boot, have not been verified yet.
  • Hosts upgraded from earlier releases do not load the image's CPU microcode until you switch it on, and switching it on can mean shutting every VM down once. An upgrade holds such a host on its firmware's microcode (dis_ucode_ldr), so its CPU features and its place in HA failover do not change. sudo simplevirtd microcode enable plus a reboot switches it on; a host whose CPU then reports different features (on some older Intel processors TSX goes away) no longer matches the cluster CPU profile, and until Settings → CPU compatibility is re-applied it is not used for HA failover or placement and live moves to and from it are refused before anything is copied. A VM started before the change cannot live-move to such a host even after the profile is re-applied, so when the features change, every VM has to be shut down and started once; rolling the hosts one by one without that leaves the last host's VMs with nowhere to go. A homogeneous profile cannot be re-applied while the hosts' CPUs differ. Command does not re-apply the profile on its own. It shows each host's microcode on the CPU compatibility page, warns there when the hosts differ, and says so in a refused move, but it does not check the microcode when a host is added. A new host installed with this release loads the microcode and must be put on hold before it joins a held cluster. Hosts on a release before this one report no microcode state and are left out of that comparison. See CPU microcode and device firmware.
  • Device firmware is a fixed set. The hypervisor image carries CPU microcode and the firmware listed in CPU microcode and device firmware. It does not carry, among others, firmware for Netronome and Cavium LiquidIO adapters, for wireless devices, or for graphics adapters: an AMD, NVIDIA or Intel GPU used by the host itself runs without accelerated display, which a text-console host does not need, and a GPU passed through to a VM is initialised by the guest's own driver. When a driver asks for a file that is not there, the installer's preflight and the host's Health page name it; requests that are optional (the graphics and wireless firmware above, the optional Realtek NIC patch) and requests the driver recovered from by loading another firmware file are not reported. The check reads the kernel log of the current boot, in the background every few minutes, so it reports what the drivers asked for since the host last started, and for the first moments after the host agent starts the Hardware tab says it is still being read. The Health page warning is the host's own: SimpleVirt-Command does not raise an alarm for it.
  • Debian security updates arrive with SimpleVirt releases. Each image is built with every update its distribution had published at build time, and each release's security notes list the vulnerabilities Debian had not yet fixed. The Kubernetes node images built on Ubuntu are not covered by the Debian security tracker: their build refuses to finish with any package behind a published Ubuntu update, but their notes do not list open CVEs. Updates Debian publishes later reach a host when it is upgraded to a later SimpleVirt release; hosts do not install operating-system packages on their own.

What to do. Keep hosts on current releases. Before buying adapters for a cluster, check that their firmware is in the list above, or try one in the installer: the preflight shows whether its driver found its firmware.

48. Lockdown mode is per host, off on hosts paired before it, and its exception list is local

Lockdown mode (Hardening: Lockdown mode (in the appliance's documentation)) makes SimpleVirt-Command the one place a paired host is changed from. What it does not do:

  • Hosts paired before this release keep their behaviour. Lockdown is turned on for a host when SimpleVirt-Command adds it from this release on. A host added earlier reads as Not configured: its own web UI, API and SSH work as they did, and Host → Settings → Security recommends turning lockdown on (one click there, or All hosts... for the fleet).
  • The console on the host's screen is never locked, by design: its Lockdown Break-Glass suspends lockdown for anyone who can unlock the console (an administrator's password, plus the host's second factor when it has one; a read-only account cannot unlock it). Protect the screen and the remote KVM like the server itself.
  • Re-adding a locked host to a rebuilt SimpleVirt-Command needs the console. Pairing signs in to the host's own API, and lockdown refuses that sign-in unless the account is on the exception list. Restore SimpleVirt-Command from its backup (the hosts keep trusting it), or suspend lockdown at each host's console, add the host again, and clear the suspension.
  • Sessions and SSH logins already open stay open. Turning lockdown on refuses new sign-ins and every change from an existing web session, but a browser that was signed in keeps reading, and an SSH session that was open stays open until it ends.
  • If sshd refuses the lockdown rule, SSH stays as it was. The host checks the rule with sshd -t before it reloads SSH and keeps the previous configuration when the check fails; Host → Settings → Security then says SSH was not restricted. The web UI and API are locked either way.
  • A damaged setting file reads as lockdown off. If /var/lib/simplevirt/lockdown.json cannot be read, the host logs it at every start and treats lockdown as off (never as a reason to lock administrators out); SimpleVirt-Command shows Setting unreadable for it, and setting lockdown again rewrites it. A damaged role table likewise reads as every account an administrator, for the web UI and the console unlock alike, until any account's role is set (its current role will do) or an account is added; SimpleVirt-Command reports it, and SSH grants are refused meanwhile. The read-only entries in the damaged file are lost when the table is written again (user.roles.rewritten in the host audit log): set those accounts to read-only again.
  • Roles are host-local and there are two. An account is an administrator or read-only. There is no per-object or per-action permission on a host; SimpleVirt-Command's access control is where fine-grained permissions live.

What to do. Turn lockdown on for every host (Host → Settings → Security → All hosts...), keep the exception list to service accounts and named on-call admins, and keep SimpleVirt-Command's backup current so a rebuilt controller never needs the console.


49. NFS outages: the APD window, and what is not yet measured

A datastore's APD window lets its hosts ride out an outage that long. Set it on the datastore's card in the cluster's Datastores tab (APD window: None, 60, 90, 120 or 180 seconds), or with PUT /api/v1/clusters/{id}/datastores/{name}/apd-window. With a window, a host whose leases on that datastore cannot be renewed stays up for the window after the last renewal, also for VMs whose writes are stuck; if the datastore answers within it, those VMs finish pausing and resume, and nothing restarts. The price is a longer wait before HA may restart a failed host's VM on another host: 104 seconds instead of 50 at a 60-second window, 224 seconds at 180. Nothing restarts when you change it; it applies from the next renewal. It can be set only once every host that mounts the datastore runs this release and answers (an older host would not wait the longer time). Mounting the datastore on more hosts from Command gives each new host the same window, and refuses a host that runs an older release. If a host that does not understand windows mounts the datastore anyway (by hand, or after a rollback), Command clears the window on every host within about 2 minutes and records a Clear APD window task naming that host; set the window again once that host is updated. A datastore mounted by hand on a current host gets no window until you set it again (its card then shows Differs between hosts). No window is set by default, so the reset timing of a host with stuck writes, and the wait before a takeover, are as before until you choose one.

What remains:

  • Past the window, a VM whose writes are still stuck restarts its host. SimpleVirt cannot stop such a VM on its own: the kernel would still send its stuck writes when the export answers, perhaps after another host started the VM. Only a host restart ends them.
  • Lease timing at 50 to 200 VMs per host has not yet been measured on real NFS servers. The renewal timing assumes every renewal of a tick lands within 3 seconds. Measure your own storage at your density with simplevirtd lease-bench --datastore <name> --vms <N> on a host (run as the simplevirt user, in a quiet period: it adds N VMs' worth of renewals while it runs; it refuses a datastore that VMs on the same host run from unless you add --force, but it cannot see VMs on other hosts that use the same export), and watch the Lease renewals slow alarm (ha.lease.renew_slow), raised when the 99th percentile of a datastore's renewals passes 1 second. The figures per host and datastore are at GET /api/v1/clusters/{id}/ha/lease-renew-latency. Measured limits: pending.
  • Large live storage moves onto or off NFS take hours. Such a move is paced to about 60 MiB/s so it cannot slow the lease renewals on the export; a 2 TiB disk takes about 10 hours. It is failed only when it makes no progress for 30 minutes. Moves between datastores that are not NFS are not paced. For the whole move the VM is busy: other disk operations on it (snapshot, resize, another move) are refused, and it cannot be live-migrated to another host while its copy runs, so entering maintenance cannot move it off its host until the move ends. A running move cannot be canceled. If the datastore stops answering during the move, the VM cannot use the APD window to keep its host up: past the normal lease timing the host restarts, as without a window. Plan large moves for a quiet period, not before maintenance.
  • What has not been tried on real NFS servers and hosts. A VM held paused through a long outage, the per-VM stop by SIGKILL (and its 15-second confirmation), and the lease reads during an outage have been tested with simulated storage and processes only.
  • One lease file per VM. Each VM renews its own small file every 5 seconds; renewals are not combined per host, because a combined file would change the on-disk format every host reads.
  • Restart without a BMC needs you. Taking over an NFS or SAN VM needs proof its old host is off. Proof that does not need a BMC or a person (a bounded self-fence the survivors can trust, a lease the storage itself expires, or SCSI-3 persistent reservations on SAN) is on the roadmap, not in this release.

50. Setting up the cluster services from SimpleVirt-Command has edges

Set up cluster services (a cluster's Settings → High availability, Cluster services) creates the cluster's certificate authority in SimpleVirt-Command's data directory, gives every host its own certificate, starts the cluster service on the first host and has the others (and a witness, if you choose one) join it. Add to cluster services adds hosts that joined the cluster later, and removing a host takes it out again (section 14). What remains:

  • Adding hosts restarts each existing member's cluster service once, one at a time, the leader last, each only after the one before is back in quorum. Before the leader restarts it hands leadership to another healthy voting host, so the cluster does not wait out an election. With fewer than three healthy voting members a restart costs quorum for a few seconds: SimpleVirt-Command refuses unless you accept that gap, because during it HA cannot restart VMs on block or lease storage, and a protected VM whose execution grant is not renewed within about seven seconds stops on its own. A cluster with one host (or one host and a witness) has nobody to hand leadership to, so its leader restarts as it is within that accepted gap. Set up a new cluster with its third host or witness from the start.
  • A member running protected VMs restarts only after they move. Once a cluster has ever been armed (disarming does not change this), every host enforces its protected VMs' execution grants, and only that host's own cluster service renews them, every few seconds. A restart of that cluster service pauses the renewals, so a restart that took longer than the grant lasts (about ten seconds) would stop those VMs. So when adding hosts (or a retry) has to restart a member that runs such VMs, it waits, and the panel says so on that host: move its protected VMs to another host (live migration, for example to a host just added) or power them off, and its cluster service restarts once none runs there. A protected VM you powered off holds no grant and does not hold the restart, nor does one SimpleVirt-Command's own poll sees stopped or crashed on that host. The run waits up to 30 minutes per host, then stops at it without restarting it; Try again carries on from there and does not restart again the members that already restarted. While a member's cluster-services status cannot be read, the run waits for it too (it cannot tell whether that host renews grants), and stops without restarting it after a minute with no answer. SimpleVirt-Command never moves or stops a VM for this. The leader is checked again after it has handed leadership on, right before its restart, so a VM moved onto it during the hand-off holds the restart as well. A VM moved onto a member in the seconds between that last check and the restart is not covered. How long a restart of the cluster service takes until its first grant renewal on real hosts has not been measured yet.
  • Without quorum no host renews a grant, so an accepted quorum gap exposes every host. A cluster-service renews its host's grants only while it is in touch with a majority of the voters. When a restart costs quorum (fewer than three healthy voting members, which you must accept as described above), every host's cluster service stops renewing for those seconds, not only the restarted host's, and emptying the restarted host does not make the restart safe. On a cluster that was ever armed, SimpleVirt-Command therefore refuses such a restart, before the run and again right before each restart, while protected VMs run on any host, and names those hosts; accepting the gap does not override it. Power those VMs off for the restarts (or set up the cluster with three hosts, or two and a witness, before arming it, so restarts keep a majority). On a cluster that was never armed, no grant is enforced and the accepted gap only pauses HA.
  • Try again keeps the first host. The host a first attempt sent the founding configuration to stays the founder on every retry, so a retry never starts a second, separate set of cluster services. It is recognised by its instance id, so removing it from SimpleVirt-Command and adding it back keeps it the founder. An attempt that stopped before anything was sent (a host on an older image, say) pins no founder. Hosts added to the cluster since the first attempt join it, and the hosts already running restart once with the new list of members (asking you to accept the quorum gap as above). If the founder has left the cluster while another of its hosts still runs the cluster services, Try again is refused: add the founder back, or remove the hosts that run a cluster service from SimpleVirt-Command (which takes it down). Once SimpleVirt-Command reads that no host of the cluster runs one (and every host answered), setting up founds the cluster services anew on the first remaining host. Before it sends anything it asks every host, the witness included, whether it still holds a cluster-services configuration: a host whose cluster service crashed or was stopped (rather than taken down by removing the host) would start on its old state instead of joining, so the run stops at it and sends nothing. Remove that host from SimpleVirt-Command (its configuration and state are moved aside once no VM runs on it), add it back, and try again.
  • Hosts must run this release's image. A host installed from an earlier image has no installer for the configuration and is named as the one to update; nothing is sent to any host until all of them can take it. A host registered by name rather than by IP address must have its address corrected first, because the cluster services pin IP addresses.
  • The witness is a standalone SimpleVirt host registered in SimpleVirt-Command, and the witness of one cluster only: a host that is already another cluster's witness is not offered. It can be chosen at the first set-up, or added later with Add a witness to cluster services that have none; adding it restarts every existing member's cluster service once, like adding hosts, so on two hosts it needs the short quorum gap accepted. A witness on another kind of machine (or on the controller's appliance) is still set up with simplevirt-clusterd provision; there is no witness image of its own.
  • Cluster services set up outside SimpleVirt-Command (with simplevirt-clusterd provision) are not taken over: the panel shows them and their arm switch, but Set up and Add to cluster services are not offered for them. SimpleVirt-Command sets up a cluster only once it has read every host's cluster-services status in the last few seconds and found none running (right after SimpleVirt-Command restarts, or while a host does not answer, Set up waits). Before anything is sent it also asks each host which certificate authority its installed cluster service uses, and stops at a host whose configuration came from another one; each host's installer refuses such a configuration too, and changes nothing. To move such a host into SimpleVirt-Command's cluster services, remove it from SimpleVirt-Command (which takes its cluster service down) and add it back.
  • The cluster CA's key stays in SimpleVirt-Command's data directory. Keep that directory in the controller's backups: adding hosts later needs it. If it is lost (a registry restored without the data directory, say), adding hosts and Try again stop with "the cluster CA key is lost" and send nothing; SimpleVirt-Command never creates a new CA in its place, and keeps the record of the one the hosts trust. Restore the directory from the backup. Host certificates are renewed online with the same CA (section 85); there is no re-keying of a running cluster to a new CA from the product.
  • A removed host that does not answer keeps its cluster service and its pairing token until it answers again: SimpleVirt-Command retries taking its cluster service down (not while a VM runs there) and revoking the token every minute for 90 days, and lists what is still owed in GET /api/v1/hosts/removal-cleanup. A host added back (the same instance id) drops what its earlier removal still owed. Another machine added at the removed host's address (replaced hardware, a reused IP) drops only the steps that would act on that machine: the removed node is still taken out of the voters, and the alarm stays until it is (while the new host's instance id is not known yet, nothing is de-enrolled). A host added back whose cluster service is still running and follows the cluster's leader is re-admitted at the leader if its cluster services still hold it de-enrolled. One whose cluster service the removal took down is not: in cluster services SimpleVirt-Command set up, Add to cluster services sets it up again; in ones set up outside SimpleVirt-Command, the panel names it as needing simplevirt-clusterd provision, and until then it counts neither as a voter nor as a recovery destination. A removal that SimpleVirt-Command cannot judge (it has not read the cluster services' status recently, for any cluster with other hosts, or a host does not answer) is refused unless you type the host's name, and a pending de-enrollment is dropped as moot only after several status reads in a row find no cluster service running on any host.
  • Validated with simulated hosts only. Forming, joining, removing and the committed arm choice are covered by tests with real cluster-service daemons on one machine and with simulated host agents; a run on real hosts has not been made yet. Still to measure there: the leader hand-off, the time from a member's cluster-service restart to its first grant renewal, and whether a powered-off protected VM's committed record always carries its stopped intent.

What to do. Set up the cluster services with three hosts, or two and a witness, before you arm them; keep the controller's data directory backed up; update every host before adding it.

51. Controller backups, their targets, re-adoption and the migration CA rotation have edges

Every controller backup is encrypted, can be scheduled to an off-box target and is checked after each run; the controller backs itself up before it updates; clusters can be re-adopted from the hosts without a backup; and the migration CA can be rotated (Backup responsibility). What is not covered:

  • The check after each run reads the backup, it does not load it. A scheduled or pre-update backup is read back (from each target), its SHA-256 compared, decrypted to the end, unpacked, its encryption key opened, its registry loaded (file-based controller) or its database dump's table of contents read and checked for the controller's core tables (bundled database). The dump is not restored into a scratch database: the appliance's database role cannot create one. A dump that lists its tables but fails to load would only show at a restore.
  • The targets are tested against in-process stand-ins, not yet against real servers. Each target kind has been run end to end against a server built into the tests (an SSH server with SFTP, an SMB 2.1 server that checks the NTLMv2 password and signs every message, an NFSv3 server, and an S3-compatible store that checks every signature; the signing code also matches the published Signature Version 4 example). A run against an OpenSSH server, a Samba or Windows file server, a Linux NFS server and a production object store is still to be done.
  • Each kind supports one way in. SFTP: a password or an unencrypted private key, with the server's host key pinned. NFS: version 3 only, AUTH_SYS identity (a uid and gid you set; no Kerberos), and an export marked secure (the default) needs the controller to use a reserved source port, which it does; an export the controller cannot reach on port 111 needs the mount and NFS ports set. SMB: NTLM only (no Kerberos), signing required unless you allow otherwise. S3-compatible: path-style addressing and one upload per backup, so a single backup over 5 GiB is refused by most stores.
  • The backup taken before a controller update stays on the controller's own disk. The last three are kept in /var/lib/simplevirt-command/.backups/, where a lost controller disk takes them with it. That is why it does not clear the stale-backup alarm. Copy one off, or keep a schedule running, before a risky update.
  • An operation started in the last moment before the reboot is not caught. The apply checks for operations in flight before the backup and again right after it; one started between that second check and the reboot (a second or two) is cut short.
  • An override covers the operations it named, not ones like them. With "apply during operations", the check after the backup stops the apply for any operation that was not running when you confirmed, even one with the same name (a second migration of the same VM). When the HA engine was mid-pass at that moment and could only count its restarts, not name them, the count is treated as new and the apply stops too; the backup is kept, and you apply again.
  • A copy that failed its check and that the target refuses to delete stays there. A later successful run removes this controller's copies without a .sha256 file once they are more than two hours older than its own (longer than one target's send may take, so a copy still uploading or being checked is never removed); one the target still will not delete is counted in that run's line ("could not be deleted and still take space") and never counted as a backup. Remove it on the target. The same rule applies to a good backup whose .sha256 file was lost or not copied with it: keep the two files together, and keep backups you copied in by hand outside the schedule's directory.
  • Give each controller its own target directory. Scheduled names carry a short tag of the controller that wrote them (simplevirt-command-backup-<time>-<tag>.svbk, the first eight hex digits of its cluster-definition signing fingerprint), and retention only touches its own tag, so two controllers sharing a directory do not prune each other's backups, finished or still uploading. Two controllers restored from the same backup carry the same tag and would prune each other's copies; and Test counts every scheduled backup in the directory, whichever controller wrote it.
  • A standalone host whose stored cluster definition cannot be read is left alone. That covers a file that is not JSON and one that is JSON but not a signed definition (empty, null, or without a public key). The host is listed under Re-adopt clusters as holding an unreadable definition, and this controller's definition is not stored there, so that host carries no definition for a later re-adoption until the file (/var/lib/simplevirt/cluster-definition.json on the host) is removed.
  • On a file-based controller the schedule's passphrase and target credentials are stored in the clear in backup-schedule.json, as every other secret of a file-based controller is. On the bundled-database appliance they are sealed with its encryption key.
  • Scripts that downloaded GET /api/v1/backup stop working. It answers 410; use POST /api/v1/backup with a passphrase.
  • Re-adoption brings back the clusters, not the controller. It recreates each cluster with its member hosts, distributed switches and workload-distribution policy, and HA when asked. Operator accounts, roles, directory settings, the Image library, Kubernetes clusters, File Services, stretched-cluster settings and the CPU compatibility profile are not in the definition; only a restored backup brings them back. Whether a definition comes from your controller is your check: compare its signing fingerprint with the one you recorded. A host running a release before this one keeps no definition.
  • The migration CA rotation needs every host reachable and reloading, and has been run against simulated hosts only. A host counts as at a step only once it reports that its libvirtd loaded the step's certificate (the root applier's record of the bundle it loaded, compared with the installed one); the switch to the new CA's certificates waits for every host to trust both, and the old CA cannot be retired while a host's libvirtd still serves its certificate. A host whose libvirtd cannot reload a certificate while VMs run (no virt-admin, or the reload fails) holds the rotation, shown as blocking, until its next maintenance or reboot; SimpleVirt does not restart libvirtd under running VMs for it. A host on a release before this one does not report what it loaded, so it holds the rotation until it is updated. The steps, with every pair of hosts checked for mutual trust against what each host's running libvirtd loaded after each change, are covered by tests with real certificates; the live reload (virt-admin server-update-tls-files) and a rotation on a fleet of real hosts with live migrations in flight are still to be run.

What to do. Set a backup schedule to a target off the controller and keep its passphrase apart from the backups; record the cluster-definition signing fingerprint shown on the Backup page; restore a scheduled backup onto a spare controller now and then; rotate the migration CA if an unencrypted backup may have left your hands.


52. Release signing and image testing

Every update image, the SimpleVirt-Containers ISO and the Kubernetes node images are signed, and the signatures name their keys (Lifecycle and updates). What is not covered:

  • Appliances on 1.0.0 check only the older single-key signature. Images keep carrying it, made with the key those appliances have, until the fleet has moved past 1.0.0. On such an appliance, an image's expiry date and the newer key checks do not apply until it runs 1.1.0 or later. An appliance on 1.1.0 or later accepts an image that carries only the older signature only if the image was signed before the moment the newer signatures began (the date is fixed in the release that introduces them). So an image stripped down to the older signature is refused there, and so is an image built after that moment with the 1.0.0 build tools: rebuild it with the current tools. Your update and image staging are blocked until you rebuild; running VMs are not affected.
  • A key's end date limits only honest use of it. The end date is compared with the signing time the signer writes into the image or rotation record, so someone who holds a leaked retired key can backdate what they sign. Rotation records cannot extend trust more than five years past the end date of the first key in their chain that has one, however many records are chained, but only revoking the key removes the trust in full.
  • A revocation list reaches an appliance only when someone copies it there. Until a release carries the revocation, each appliance needs the file at /etc/simplevirt/update-revocations.json; SimpleVirt-Command does not distribute it.
  • The Containers ISO and the Kubernetes node images are checked by hand before an install. Nothing in SimpleVirt-Command checks their signatures when you import a node image or install the Containers appliance (a Containers ISO staged as an update is checked, by Command and by the appliance); run simplevirt-update-verify on a SimpleVirt host as described in Import an image into the Image library.
  • The automated install test of the installer ISOs and the cluster test of the Kubernetes node images run on dedicated test machines that are not yet in service. Until they are, the installer ISOs are not install-tested automatically, and a node image is checked only by its own build, which boots it once and requires a login prompt; forming a cluster from it is not tested automatically.

What to do. Keep appliances on current releases, so they check every signature in full. Verify a Containers ISO or node-image download with simplevirt-update-verify before you use it.


53. VM monitoring restarts a crashed VM on its own host, and parts of it are verified by tests only

The host restarts a crashed VM where it is, at most three times in a row, and then leaves it down. A VM whose guest crashes on every boot stays down after the third try with a vm.restart_loop alarm; nothing retries it again until you power it on, or use Restart it again on its HA protection card. SimpleVirt-Command tries another host only once per crash episode, only in a cluster with HA on, only when the VM's disks are on storage both hosts mount (a cold move of the definition), and only when the failure looks like the host's own (the start failed there, or the process died rather than the guest panicking).

Other edges:

  • A guest panic is seen only with a panic device and a guest that uses it. Linux reports a panic through the pvpanic device on its own. Windows reports a blue screen through it once SimpleVirt Guest Tools of this release (or later) are installed, which carry the pvpanic driver; a Windows guest without them reboots by itself after a blue screen, as before, and is not counted. A guest that has a crash dump set up (Windows does by default; Linux with kdump) reports "crash loaded": it writes its dump and restarts itself. The hypervisor never stops it while it writes its dump; it may stop it at the restart after the dump (when its policy is off, its power state is recorded off, or after the third such restart: see §57). The host counts the crash and the guest's own restart as one try of the rate limit. The other way a Windows guest can report a crash, its crash-notification enlightenment, is deliberately not turned on: under this hypervisor the guest's crash report ends the VM at once, before Windows writes its memory dump, so every Windows VM would lose its crash dumps. An existing VM gets the device only at its next start from off, and its saved definition is not touched while the VM is busy (a job, another operation, or a live move off its host), so it may take a few rounds of ten minutes.
  • What killed a process is inferred. A VM process that ended while the kernel's out-of-memory counter rose is reported as ended by the host running out of memory; any other unexpected end is reported as "ended unexpectedly".
  • A VM found already down after a crash when the host's service starts is not restarted: nobody saw it crash, so it may have been left down on purpose. Its HA protection card says so; it raises no alarm. On the first start after the update to this release, that is every VM that was down after a crash since its host's libvirt last started.
  • The restart elsewhere is a cold move: the VM is moved to the other host and started there, so it is down for the move. Its task in Recent Tasks names no user.
  • The opt-in heartbeat reset needs a guest agent, and judges only a guest that answered at least once since it started, and only while the VM is running (never while it is paused or suspended). The timeout is 2 minutes in the UI (30 to 3600 seconds in the API). The agent is pinged over the host's own libvirt connection for these pings, at most 4 guests at a time and never more than 4 pings outstanding on the host, so pings a guest never answers cannot hold up the libvirt calls of the host's other checks. libvirt gives up on a ping after its own 5-second handshake and 5 more seconds; the host waits at most 8 seconds for each answer (a later answer counts as none) and at most 30 seconds for one round of asking. A guest not asked in a round (out of time, or all 4 pings still outstanding) is not judged in it. A guest whose earlier ping is still outstanding (for example one paused between the agent's handshake and its answer) is not pinged again until it returns, and counts as not answering meanwhile; its agent is busy with that ping until libvirt gives up on it, so other agent calls to that VM (such as a snapshot's filesystem thaw) may wait up to about 10 seconds. If 4 pings were still outstanding after 2 minutes (a libvirt that does not honour the ping's timeout), the host closes that connection to end them and opens a new one.
  • A VM the host stopped on purpose is reported, not alarmed. After the lease fence ends a host's copy (HA restarted the VM elsewhere) or an operator force-stops a VM held paused for its lease, the host's card for that copy says why it is down and no vm.crashed alarm is raised. The host tells such a stop from a crash by a note it takes just before it ends the process; a note outlives one unreadable listing of the VM, but it is held in memory only: if the host's service restarts after the note and before the process has ended, that stop looks like a crash, and the restart in place goes through the ordinary power-on, which the storage lease and image lock refuse for a copy another host runs. A stop on purpose also ends an earlier give-up (for example one the heartbeat reached while the VM kept running): the card shows the copy as down on purpose, the vm.restart_loop alarm clears, and Restart it again does not start it.
  • A re-arm is coordinated with moves only up to the host's answer. SimpleVirt-Command refuses Restart it again while it moves the VM, and holds the VM's move claim while it asks the host to re-arm. The host marks the restart pending before it answers, but starts the VM in its next monitor pass (within about 15 seconds), after Command has let the claim go. A restart elsewhere that begins after that re-reads the host under its own claim and stands down, since the host no longer gives up on the VM. A cold move started by hand in those seconds, or a re-arm sent to the host's own API (POST /api/v1/vms/{uuid}/monitoring/rearm), which Command does not see, can still meet the host's own start: the move's undefine then refuses the running VM, the disks' locks and the storage lease refuse a second writer, and the move is reported as failed (the VM runs once, on its own host).
  • The restart elsewhere trusts what SimpleVirt-Command can see. It refuses when another host's current inventory lists the VM, when its power state is recorded as off, or when the cluster services record it elsewhere; a host Command cannot reach right now is not asked, so the destination's own start checks (the storage lease, the image lock) remain the last guard on storage that has them.
  • A VM restarted from its recovery manifest (an HA restart by the cluster services) comes back with the default monitoring policy, like its display name (the manifest holds only what a restart needs).
  • Verified with simulated libvirt and processes only. The restart rules, the backoff, the give-up, the heartbeat reset (paused VMs included), the stop-on-purpose notes during an asynchronous kill, the bounded heartbeat against a guest that never answers (the cap on outstanding pings and the closing of their connection included), the guest-panic convergence's wait for a live move, and the restart elsewhere are tested with simulated hosts; a real guest panic through pvpanic, a real out-of-memory kill, a real lease fence of a running VM, the agent's ping with libvirt's timeout against a hung or paused guest, the event subscription against a real libvirt, and a restart elsewhere on real shared storage have not been run on lab hardware for this release.

54. VM groups: what they do not cover yet

VM groups (keep apart / keep together, user guide) are applied by every placement SimpleVirt-Command makes and, through the recovery manifest, by the cluster services, with these boundaries:

  • The cluster services get a VM's groups only once every member host runs this release. A host on an older release would refuse a manifest that carries them, so until every host is updated the manifests carry none and the cluster services place VMs as before. While a member's release is not known yet (just after SimpleVirt-Command starts, before it has heard from that host), a VM's manifest keeps whatever rules it already carries. The cluster services also see only the members running on the hosts they ask, and the restarts they placed themselves.
  • A power-on does not check the groups. Starting a stopped member on a host that breaks a rule is allowed; the violation alarm then says so, and for a Required group the distributor recommends the fix.
  • Moving one member of a Required keep-together group alone is allowed, with a warning, since there is no move of the whole group in one step.
  • The distributor fixes a broken Required group one move at a time, as recommendations it never starts on its own, like a broken Required host rule; a Preferred group that is broken is reported, not chased. A keep-together group is gathered on the host that runs most of its members; a member that cannot go there (another rule, no room) keeps the group broken, and the distributor's status says why.
  • An evacuation places a keep-together group member by member. The first member goes where it fits best and the others follow it; if they do not fit there, they are reported as blocked rather than placed elsewhere.
  • HA admission control does not count groups (§22).

55. Upgrade rollback keeps one previous version and is not yet proven on real servers

An update keeps the version it replaces on the appliance's own disk, switches back by itself when the new version does not come up healthy, and can be reverted in one step (Lifecycle and updates). What is not covered:

  • Appliances installed, or last updated, by an earlier release keep no previous version. The first update by this release keeps the version it replaces; until then Revert is shown as unavailable, with the reason.
  • One previous version, and its space. An update discards the version before the installed one. The previous version takes the space of one more operating system on the root filesystem (about the size of the installer ISO's system), the filesystem that also holds the local datastore. An update is refused before it changes anything unless a tenth of that filesystem (at least 4 GiB, at most 50 GiB) stays free afterwards. A Host and SimpleVirt-Command check this before their restart into the upgrade with an estimate (the running version's image, at least the uploaded ISO's size, and for SimpleVirt-Command the copy of its database as far as its service can read it); space the estimate cannot measure (a kept version with no recorded size, files its service may not read) is not held against the update. The exact check runs in the upgrade itself, so an appliance that only just passes the estimate can still be refused after that restart, and comes back on the version it ran. SimpleVirt-Containers is checked only by the upgrade itself. Lifecycle shows the kept version's size and the free space, and Delete kept version… frees it. An update applied before the installed version confirmed itself keeps the last confirmed version as the previous one and discards the unconfirmed one.
  • The controller's database goes back to the update. Reverting SimpleVirt-Command restores its database as it was when the update started; changes made since then stay with the newer version, and come back with a switch forward. Applying a new update while on the reverted version deletes that newer version and those changes with it; the apply dialog says so when it is the case.
  • A Host's state moves forward, except its HA consensus state. VMs, networks and storage made on the newer version stay, and the older version reads them with tolerance for fields it does not know. The replicated state of controller-independent HA (its consensus log and snapshots, /var/lib/simplevirt/clusterd) is different: a version that applies an older format of it cannot apply what a newer version recorded, so after the switch its HA service follows the others but refuses to lead, and switching several hosts back that way can leave HA without a leader. A revert, and the automatic fallback, to a version known to apply an older format are therefore refused on a host that holds such state. Versions are known from this release on; for a previous version installed before it, the Revert dialog warns instead of refusing. Two switches are not checked, because they are the way back when nothing else runs: the boot menu's switch, and the boot loader's own fallback after two boots that never confirmed. Switch back at most one host of a cluster that way, and update it forward again to restore it.
  • Reverts keep to the version policy. A host is not reverted to a release more than one line behind SimpleVirt-Command. A revert from the host's own web UI, API or console is checked against the release SimpleVirt-Command last told the host (at Command's start and every 10 minutes); a host that is not paired, or is managed by a Command of an earlier release, does not know it, and its own revert is not checked. Reverting SimpleVirt-Command below hosts that already run a newer release needs the typed REVERT BELOW HOSTS, and until it is updated forward again it can stage no update for those hosts.
  • SimpleVirt-Containers falls back automatically, switches from its boot menu, and reverts from its console (Switch back to the previous version) and from SimpleVirt-Command's Lifecycle page; its own web interface has no Revert button. Its data directory, where its database lives, goes back to the copy taken at the update.
  • What a switch carries over. The preserve list (accounts and their groups, host name, network files, VM and storage state, settings) and every file the appliance made itself move into the new version. Files under /usr and the package database belong to the image: a tool installed there by hand, outside SimpleVirt, is not carried over. On the first update from a release that did not record its image's file list, files the old image shipped outside /usr that the new one dropped are kept once more; from then on they are removed, unless they were changed on the appliance since the image laid them down: those are kept. A change is told by the file's size and modification time, not its content: an edit that keeps both (one made on purpose to look unchanged) counts as unchanged.
  • Back on a release before this one, switch forward from the boot menu. A release that predates rollback has no Revert in its Lifecycle page or console; the boot menu's SimpleVirt: switch to the other installed version switches forward again.
  • A new version that hangs at boot needs a restart. The boot counter counts a boot only when the machine restarts, so a kernel that stops before the system starts needs a power cycle (by hand or from the BMC); after two such boots the appliance falls back.
  • A held fallback turns the automatic fallback off for that version. When a new version is not healthy in time but a VM runs on the host, it cannot tell whether one does, the storage check refuses to take it offline, or the planned-outage protection cannot be armed, the host keeps the new version and clears its boot counter, so no later restart switches back unannounced. Switching back is then by hand.
  • The fallback's last look and the restart are a moment apart. While it checks, the host marks itself as about to restart, so it starts no VM and SimpleVirt-Command places none on it, and it looks at its VMs again right before the restart. SimpleVirt-Command learns of the mark at its next read of the host (every few seconds); a migration it started onto the host before then is seen by that last look and holds the fallback back. Only one whose VM appeared on the host in the instant between the last look and the restart would be shut down by it.
  • An update or a revert already under way puts the fallback on hold. When the deadline passes while one is in progress (a request waiting for the system updater or being applied by it, a revert armed for the next restart, or the host already marked as about to restart by an apply), the version is neither confirmed nor switched back while it lasts, and that operation's restart decides. Should it neither restart the appliance nor end within an hour, the fallback is held back as above, with that reason.
  • Confirmation watches the services, not the work they do. SimpleVirt-Command's service reads as active as soon as it starts, also while its first start migrates the database, so a long migration never counts as a failure; the version confirms once the service has stayed up five minutes without a restart. A service that systemd still reports as starting does not count against the 20 minutes, up to two hours.
  • Not yet run on real servers or in the boot test. The switch, the boot counter and the fallback are tested on file trees, at every step of an interrupted switch and with every combination of the boot loader's variables, and the boot-loader block is checked with GRUB's own script checker. The automated installer boot test now also updates an installed appliance to an image of the same source stamped with a different version, reverts it, and forces a new version to fail so that it falls back, on BIOS, UEFI and UEFI with Secure Boot, each time requiring the version and switch record it must come back on; but those runs have not been made yet: they need KVM and installer images built from this release. A revert, a fallback and a power loss in the middle of an update have not yet been run on real servers either.

What to do. Before relying on Revert on a production fleet, try it once on one host in maintenance mode: update it, confirm that Lifecycle shows its previous version, revert, and switch forward again.


56. SimpleVirt-Containers backups and updates have edges

The SimpleVirt-Containers appliance backs up, restores and updates in place (Operations). What is not covered:

  • Backup targets: the appliance's own disk and SFTP. NFS, SMB and S3 targets are SimpleVirt-Command's only. Backups kept on the appliance live in its data directory, which an update copies for a switch back, so they take that space twice while a previous version is kept.
  • The saved passphrase and the SFTP password are stored on the appliance, readable by root only. They protect the copies that leave it; anyone with root on the appliance can read them, as they can read the database itself. A backup restored on another appliance needs its passphrase typed in.
  • A restore replaces the web accounts. The restored database brings its own users, tokens and sign-in settings; the account created at the fresh install is gone. The console password stays the one set at that install.
  • No restore at install time. The installer installs; the restore runs from the console after the first start. The backup reaches the new appliance from the schedule's SFTP server (set it in Backup schedule first), or as a file copied onto it with scp, which needs SSH turned on in the console (it is off by default). There is no restore from removable media.
  • A backup or restore waits for one already running. Back up now, a restore and the pre-update backup wait up to ten minutes for another backup, restore or database migration to finish, then refuse; a scheduled backup skips that hourly check and runs at the next.
  • Updates are not staged from SimpleVirt-Containers' own web interface. They come from SimpleVirt-Command's Lifecycle page (which needs the link) or the console's Apply an update image. A staged image is sent to the appliance through its integration token, so the token can also stage, apply and revert an update; it can stage only an image the appliance verifies as signed.
  • An image applied from another filesystem needs room beside the one staged now. The console copies it next to the image SimpleVirt-Command staged and replaces that image only when the copy is complete, so the root filesystem needs the new image's size plus 512 MiB free; remove the staged update in Command first, or copy the image into /var/lib/simplevirt-containers-update, when it does not fit.
  • A staging cut off at one instant leaves no marker. The console writes the new marker first, sets the staged one aside, renames the image into place and puts the new marker beside it. If the appliance loses power in the instant between setting the old marker aside and that rename, the old image stays without its marker (kept as staged.json.old), so SimpleVirt-Command's Lifecycle band no longer shows it as staged. Nothing is lost; stage the update again.
  • Only the upgrade itself checks the space for the version the appliance keeps; an update that does not fit comes back on the version it ran.
  • Appliances installed from an earlier image get backups and online updates with their first update, which is done by booting the new ISO; until then they have neither.
  • The Helm chart's backup (the backup values, off by default) keeps the database dump and SECRET_KEY, encrypted with a passphrase from a Secret, on a volume in the same cluster; copy the files off it. It holds no certificate (the ingress has its own), it needs a pg_dump from the chart's PostgreSQL image of the same major version as the server, and the whole archive is held in memory while it is sealed or opened.
  • Not yet run on real appliances. Backup, restore, the guarded migration, the updater's containers flavor, the commit watcher's health checks and the Lifecycle band are tested with stand-ins for PostgreSQL, systemd and the appliance; the chart's backup was run against PostgreSQL 16 in containers. An update of an installed appliance, a restore onto a fresh install and a failed migration that switches back have not yet been run on a real appliance.

What to do. Set a backup schedule with an SFTP server right after install, and try one restore onto a fresh install before you rely on it.

57. Windows guests: the supported versions, driver signing, VSS and crash reporting

SimpleVirt Guest Tools for Windows are built for 64-bit (x64) Windows 10, Windows 11, Windows Server 2016, 2019, 2022 and 2025, and nothing older. The driver packages are the virtio-win 0.1.302 builds for exactly those six versions; 32-bit and Arm Windows, and anything before Windows 10 or Windows Server 2016, are not supported. The installer, the drivers, the guest agent and the crash reporting below have been tested with unit tests and simulated hosts only: none of it has been run in a real Windows VM for this release. Running the checks under What to do on each version you use is the owner's step before calling a version supported on a fleet.

  • Driver signing. The drivers are the upstream packages, shipped unmodified with their Microsoft attestation signature. Windows 10 and 11 load them under Secure Boot. Microsoft's policy is that attestation-signed drivers are for client Windows; Windows Server loads them under Secure Boot because the signature is Microsoft's, but they are not certified (WHQL) for Windows Server. Certified drivers need a hardware-certification submission under SimpleVirt's own partner account, which has not been made.
  • Application-consistent snapshots need the guest agent. The MSI installs the upstream guest agent with its VSS provider (a separate program and service, "QEMU Guest Agent", under the Guest Tools folder). When a snapshot of a running Windows VM is taken, the host asks it to freeze: the VSS writers (SQL Server, Exchange, Active Directory and the other VSS-aware applications) flush and hold their writes. Windows itself holds them for about 10 seconds at most. A snapshot that took longer, or a freeze the agent ended early, is recorded crash-consistent, never application-consistent; the snapshot itself still stands. An application without a VSS writer is only crash-consistent inside an application-consistent snapshot. The bare SimpleVirtGuestSetup.exe (shipped on the disc only when the MSI could not be built) carries no agent, so its snapshots are crash-consistent.
  • Upgrades keep the agent; an uninstall stops it first. A Guest Tools upgrade only stops the bundled agent while its files are replaced and starts the new copy; the agent's service and VSS provider stay registered. An uninstall stops the agent, then removes its service and provider. An agent an older build left marked for deletion is stopped and waited out (up to a minute) before the new one is installed; if Windows still holds it, the agent is installed by the next run of the installer after a reboot. An agent service left by an earlier Guest Tools copy in another folder (installed with INSTALLDIR and upgraded without it, so the upgrade removed that copy), or one whose program no longer exists, is re-pointed at the new copy: its service and VSS provider are unregistered and registered again from the new folder. The installer records the agent path it registered (HKLM\SOFTWARE\SimpleVirt\GuestTools, value AgentPath) to tell such a copy from an agent installed separately. Upgrades always install to the default folder unless INSTALLDIR is passed again. If a step of that re-point fails (the earlier service will not stop within 30 seconds, or unregistering or registering fails), the installer starts whatever agent service is still registered and writes guest agent: DEGRADED to the MSI log when no agent runs; snapshots are then crash-consistent until the installer runs again (a repair, the next upgrade, or simplevirt-guestd install-drivers run as an administrator). None of these paths has run on real Windows yet.
  • An agent installed separately is left alone. If the guest already runs a guest agent installed from another package, Guest Tools neither replace nor remove it; the host uses it the same way, and whether its freeze uses VSS depends on that package.
  • A blue screen with a crash dump set up is reported, and the guest restarts itself. With the pvpanic driver, a guest that writes a crash dump (the Windows default) reports the crash, writes its dump and restarts as Windows is set to; the host raises the vm.crashed warning and counts the restart. After 3 such restarts in an episode (see §53), or when the VM's monitoring policy is off or its power state is recorded as off, the host stops the VM at the restart that follows the dump, so the dump is kept and the VM stays down (vm.restart_loop after the third). A guest that does not restart on its own within 30 minutes of the report (it hangs at its crash screen, or Windows is set not to restart) is not stopped; the opt-in heartbeat reset still applies. A small dump can be written, and the guest restart, before the host's next monitoring pass sees the report: the host then stops the VM at once if the restart was less than 2 minutes ago, and otherwise leaves the booted guest running (and logs it); a later, ordinary reboot of that run is never what stops it. The restart and the crash report reach the host as two separate events; a restart seen up to 5 seconds before the report counts as the restart after that dump. If the host's libvirt event stream is interrupted after a dump began (libvirt restarted or the connection dropped), the restart may go by unseen: the host then arms no stop for that dump (and withdraws one already armed), logs it, and the VM keeps running; it is counted and reported, and an admin stops it by hand if it must stay down. A guest with no crash dump set up stops at the blue screen and is restarted like a Linux panic. The host needs its libvirt guest-reset events for the stop; if it cannot subscribe to them it says so in its log, and such a VM boots again (and is still reported).
  • Other drivers. The random-number, firmware-configuration and pvpanic drivers bind to devices every SimpleVirt VM has. The virtio input driver is staged only: SimpleVirt VMs use a USB tablet, so no device uses it. No display driver other than the virtio GPU one is shipped.
  • Weekly re-trim. The Guest Service re-trims every volume once a week (defrag /C /L, which does not defragment), so thin disks give freed space back. The first run comes 15 minutes to 6 h 15 min after the service starts and each weekly time carries up to 6 h of random delay, so guests that start together do not all trim shared storage at once. Creating the file %ProgramData%\SimpleVirt\GuestTools\no-retrim turns it off. Windows' own weekly "Optimize Drives" task may re-trim as well.
  • Linux weekly TRIM. The Linux package (.deb or .rpm) enables the distribution's fstrim.timer once per guest and records that it did (marker /var/lib/simplevirt-guestd/fstrim-timer-enabled, written only when the enable worked, so a failed attempt is tried again at the next install or upgrade); a timer disabled after that stays off across upgrades. On an existing guest upgraded to the first release with this step, a disabled timer is turned on when the distribution's preset for it also says disable (the vendor default, as on Enterprise Linux; read from systemctl list-unit-files, or from the preset files on systemd before v245). One disabled against an "enable" preset is taken as an admin's choice and left off: enable it with systemctl enable --now fstrim.timer. The package cannot tell an admin who disabled the timer on Enterprise Linux before this release from the preset, so such a guest has it turned on once by the upgrade; disabling it again keeps it off from then on. A masked timer is never touched. Purging the .deb, or erasing the .rpm, removes the state directory. Guest Tools installed from the bare binaries (no package manager) do not touch the timer. The distribution's timer brings its own random delay.
  • Disk rescan. After a running VM's disk is grown, the host asks Windows to rescan its storage, so the disk shows its new size without a reboot; the partition and volume are not grown.

What to do. In one test VM of each Windows version you run: install the MSI, reboot once, and check in Device Manager that no device is unknown; take a snapshot while the VM runs and check that it is listed as application-consistent and that the Application event log shows the VSS writers' freeze and thaw; and, with a crash dump set up, start a blue screen on purpose (for example with the keyboard crash setting) and check that SimpleVirt-Command raises vm.crashed and that C:\Windows\MEMORY.DMP is written.

58. Health coverage: network, clock, guest and hardware alarms have boundaries

The network, clock, guest, VM saturation, snapshot-age and hardware alarms (§10) are read by each host's own health watch and by SimpleVirt-Command, with these boundaries:

  • Hardware health needs the tools the current image ships. SMART, the BMC's sensors and event log, and machine-check records are collected by the simplevirt-hwhealth timer as root, using smartmontools, ipmitool and rasdaemon, which this image installs. A host updated from an earlier image gets them with its next image update; until then its Hardware tab says the readings are not collected, and only the memory error counters (read from the kernel directly) are watched.
  • BMC sensors are read in-band only. The host reads its BMC through its own IPMI interface (/dev/ipmi0). A machine whose BMC has no in-band interface, or whose operating system cannot load the IPMI driver, says so on its Hardware tab, and its power supplies, fans and temperatures are not watched here; SimpleVirt-Command reads them through the BMC credentials it holds for power fencing, when they are set (§131).
  • The sensor and event-log readings have been checked against documented output formats, not on every vendor's BMC. Sensor names and the words a BMC uses for a failed power supply differ between vendors; a state a BMC reports in other words may not raise an alarm.
  • A disk behind a RAID controller is read only where smartctl can reach it (it lists it with --scan-open). A virtual disk, or a controller that hides its disks, reads Not reported.
  • The storage's own disk failure prediction is not on; SimpleVirt's SMART verdict drains a failing storage disk instead. Device-health monitoring has smartctl to scrape SMART data with, but its prediction module needs machine-learning libraries the image does not ship, so a disk's predicted life expectancy stays unknown. When the host's own SMART alarm on a disk under an OSD is critical (its self-assessment fails, or its NVMe health log raises a critical warning other than temperature alone: a hot drive is a warning, since it clears when the drive cools), the storage guardian drains that OSD as if it were predicted to fail now: only with full redundancy, only when the removal check proves the drain safe, one disk per pass. The disk is matched to its OSD by serial number or kernel name; a disk behind a RAID controller is not matched. A warning-level SMART finding (unreadable sectors, wear) drains nothing. Replacing the disk is still the operator's step (the HCI disk replacement flow).
  • Memory-error rates restart with the host's SimpleVirt service. Corrected errors are counted over the last 24 hours from the first reading the service took; an uncorrected error stays reported until the host reboots (the kernel counts since boot). An alarm already firing stays firing across the restart (see the next point); only a rate still building up starts over.
  • Firing alarms survive a restart of the host's SimpleVirt service, counts in progress do not. The host saves its firing health alarms in its state directory and reloads them when the service starts (after an update, or a crash restart), so SimpleVirt-Command neither resolves them nor notifies them a second time; each one clears only once it has been judged clean again (for a saturated VM that is after a new 15-minute window). An alarm kept this way must be judged again from a fresh reading within an hour: when its readings are no longer collected at all (the host came back without its BMC interface or without smartmontools, or a guest's memory balloon driver stopped reporting), the host clears it after that hour and logs that it did, rather than holding it with nothing to judge it by; for hardware, the Hardware tab then says those readings are not collected, rather than showing them healthy. While the service keeps running, an alarm whose readings stop being collected keeps its last state; restarting the host's SimpleVirt service clears such an alarm an hour later if its readings are still not collected. A condition that had not fired yet starts its count again, so it fires a few samples later than it would have. For the heartbeat alarm the host also saves which guests' Guest Tools answered, together with the VM's running process: after a restart, a guest that answered before and still does not answer keeps its alarm, or raises it after 5 minutes. A guest counts as having answered only once its Guest Tools reply after its last reboot, not merely because the connection to it stayed open. A reboot inside such a guest while the service was not running is not seen, so a guest that rebooted then and comes up without Guest Tools can raise the alarm; it clears once Guest Tools answer, or when the VM is restarted.
  • Guest alarms need SimpleVirt Guest Tools. A guest with no Guest Tools (or only the standard guest agent) raises no heartbeat or file-system alarm. VM memory saturation needs the guest's memory balloon driver to report its usable memory; a guest without it is judged on CPU only.
  • Synchronization is read from the kernel's clock state. A host's clock counts as synchronized while its time service keeps the kernel's clock marked synchronized with an estimated error under 16 seconds, which is what the host's Time settings show. Whether synchronization is turned on (the alarm's wording) is asked only while the clock is not synchronized, at most every 10 minutes.
  • Clock skew is measured over the management network, to within half the round trip of a poll (normally milliseconds). With fewer than three hosts SimpleVirt cannot tell which clock is wrong, and the alarm says so.
  • These thresholds are set on the host and cannot be edited (§10): 7 days for an old snapshot, 90% for a guest file system, 15 minutes for a saturated VM. Each of these rules can be turned off under Alarms, Alarm definitions. NIC error counters are shown on the Hardware tab but raise no alarm.
  • Switch drift is the declared configuration only. Link problems on a distributed switch are the host's own link alarms; a stable id still propagating to a host is not drift. The drift check reads every member host's switches, networks and adapters in the background, one probe per cluster at a time, so a drift alarm fires after two probes have seen it (normally about two minutes; longer on a cluster whose hosts answer slowly).
  • A collection that did not finish holds its alarms. When the disk scan, a disk's own read or the BMC's sensor read fails or times out (60 seconds each), the Hardware tab says so and the alarms of that family keep their last state: a disk that stops answering keeps its SMART alarm, and a sensor the BMC left out of a partial answer keeps its alarm. A disk that is removed from the host clears its alarm on the next complete collection. The disk reads of one collection share a 6-minute budget: on a host with many disks that stop answering, the disks not reached in time are reported as not read and keep their alarms, and the next collection (5 minutes later) reads them again. Each collection starts from scratch, so nothing an earlier, interrupted one read is published again.
  • The tool packages' own daemons are pinned. smartmontools, ipmitool and rasdaemon each ship a daemon. The image masks smartd (it would scan the disks on its own schedule, could start self-tests and mails root) and ipmievd (it copies BMC events to the system log and fails on a host without a BMC); SMART and the BMC's event log are read by simplevirt-hwhealth only. rasdaemon runs, because it records the machine-check and memory-error events the Hardware tab shows, with its two actions on the machine turned off: it never takes a memory page offline on corrected errors and never isolates a CPU. A host updated from an earlier image gets this with its next image update.
  • Power-supply and fan redundancy is judged only where it exists. A redundancy sensor raises an alarm only when the BMC reports at least two power supplies present (or two system fans turning). A one-supply server's Redundancy Lost is shown on the Hardware tab and raises nothing. A BMC that does not report supply presence in words ("Presence detected") gets no redundancy alarm; a supply that reports a failure still raises its own alarm.
  • The IPMI driver is loaded once per boot, and only on a machine whose firmware declares an IPMI device. A BMC interface enabled in the firmware after the host booted is read after the next reboot. The helper loads the driver with no /etc/modprobe.d options, so a driver option set there for the IPMI modules applies only when the kernel loads them itself.
  • Network alarms wait out a deliberate change. For 2 minutes after a switch, network or teaming change made through SimpleVirt ends, the links are shown but not judged, while a link aggregation renegotiates and new team members come up. A cable that fails in those 2 minutes is reported up to about 3 minutes later than one that fails at another time, and link changes made by the change itself do not count as flapping.
  • A reboot inside the guest starts a new run for the heartbeat alarm. A guest that reboots itself (an update, a slow file-system check) raises no heartbeat alarm until its Guest Tools have answered again after the reboot; a guest whose Guest Tools never come back after a reboot raises nothing, like a guest without Guest Tools. This relies on the hypervisor's reboot event; if the host's SimpleVirt service could not subscribe to it, a guest reboot longer than 5 minutes can still raise the alarm, and it clears once Guest Tools answer.
  • Set time servers asks only the hosts SimpleVirt-Command has reached. A host added but not yet reached (it has not reported its identity) is not asked; the dialog names it apart from the hosts that failed. Set its time servers once it is connected, from Health Center or its Time settings.
  • Ceph's disk-health sudo rule is the upstream one. When the Ceph OSD package does not carry its own ceph-smartctl sudo rule, the image writes the rule Ceph publishes, which lets the ceph service account run smartctl -x --json=o and nvme … smart-log-add --json as root on any device. Its trailing wildcards also match extra arguments, so a compromised Ceph daemon could run other smartctl or nvme options as root (for example starting a self-test). This matches Ceph's own packaging; SimpleVirt does not narrow it.

59. The SimpleVirt service account can write the passthrough driver file

To mark a PCI device (a GPU) for passthrough without root, the host's SimpleVirt service owns /etc/modprobe.d/simplevirt-vfio.conf and rewrites it with the device ids to bind to vfio-pci. The kernel's module loader reads every file in /etc/modprobe.d as root whenever a module is loaded (at boot, and when a device is added), so whoever controls the SimpleVirt service account could add a line there that runs as root at the next module load. Nothing else the service can do directly runs as root; this is the one file of root configuration it writes. The hardware-health helper does not read it (it loads the IPMI driver with an empty configuration). Moving this write behind a root helper that accepts only device ids is planned; until then, treat a compromise of the host's SimpleVirt service as a compromise of the host.

60. Notifications: delivery, formats and the cluster relay

Notifications are delivered from a persistent event log (user guide), with these boundaries:

  • Delivery is at least once, not exactly once. A delivery whose answer was lost (a timeout after the receiver accepted it, a controller restart mid-send) is sent again. Each carries the event's id (X-SimpleVirt-Delivery) and, in the paging format, the alarm's dedup_key, which is what a receiver dedupes on; a chat channel may show the message twice.
  • A receiver is retried for 24 hours, then the event is given up on and counted as not delivered. The log keeps the newest 10000 events for the feed and, beyond those, every event an enabled receiver still wants and has not received, so a flood of other events (audited changes, failed sign-ins) does not push out what a receiver that is down is owed. That owed backlog is capped at 50000 events; past the cap the oldest are given up on and counted the same way. Each receiver sends one event at a time, in order, so one slow receiver does not delay the others but does delay its own backlog.
  • Events are saved in the background. Publishing an event never waits for the database or the disk; one writer saves them in batches. If the store stalls, events are still delivered from memory and /readyz reports the event outbox failing (after six seconds without an answer); if more than 10000 events wait to be saved, the oldest of them are kept in memory only and are lost if the controller restarts before they are delivered.
  • Failed sign-ins are reported at most once a minute per client address (auth.login.failed), the next report saying how many more were refused; every attempt is still in the audit log. API token use is reported at most hourly per token, a rejected token at most every ten minutes per address.
  • HA failover steps and task results reach the event log through the HA and task streams. When a burst outruns them (a host with many protected VMs fails), the event log reads the missed HA steps back from the HA history (the newest 4096 steps) and the missed task results from the newest 1000 tasks, within a second for HA and a minute for tasks. A task finished more than 30 minutes before it is read back is not reported.
  • Email and syslog have no format choice: one message or line per event, with the same facts. Syslog over UDP cannot tell whether a line arrived; only a failure to send counts.
  • The chat and paging formats follow the services' public wire formats and are tested against those documented payloads with test receivers, not against live accounts of any particular service. Use Send test after adding one; a paging or alerting test is resolved again at once.
  • The repeat of unacknowledged critical alarms is timed in memory: after a controller restart the interval starts again.
  • The event feed is the controller's. It holds events from the moment this release was installed; earlier history stays in the audit log and the HA event history. A host's own audit log is not in it (the fleet tail GET /api/v1/events still merges them).
  • The cluster relay needs every member host on this release. The relay is stored in the cluster services' replicated state, which an older member cannot apply; until every member is updated the leader keeps refusing it and the cluster services send nothing (the cluster's /status names the hosts it waits for). A member on an older release that joins once the relay is on stops the leader from recording its open incidents in the replicated state; the cluster's /status then shows open_commit_refusal, the leader logs it once (and again every 30 minutes), and until the member is updated a leader change can lose track of incidents opened meanwhile. The receivers' addresses and keys are then kept on every host of the cluster, in the cluster services' data directory, which only root can read.
  • What the cluster relay sends is narrow on purpose: that SimpleVirt-Command stopped checking in, that a member host is down or back, and that a protected VM's failover started, completed or was abandoned. It does not send alarms, task results or capacity warnings, and it does not send email. It judges SimpleVirt-Command down after three minutes without a check-in (the controller checks in every minute), so alerts in those three minutes reach you only when that time is up. A new leader waits the same three minutes before judging. Events are detected by the leader only; after a leader change a host-down may be reported by both the old and the new leader.
  • What the cluster relay opens, it closes. The incidents it raised at a receiver (host down, failover started, controller not checking in) are kept in the cluster's replicated state, and the matching "back", "completed" or "checking in again" is always sent, also once SimpleVirt-Command is back and also by a new leader. When a leader change hid the transition, the new leader sends it once it sees in the cluster's state that the condition has ended, so it may name the end without its exact moment. A host removed from the cluster while its incident is open is reported as no longer a member. A receiver that leaves the relay while incidents are open at it (unticked Also send from the cluster services, disabled, scoped to other clusters or deleted) is sent a closing resolve (cluster.relay.closed) for each of them by the leader; that send is tried three times over about a minute and is not kept on disk, so if it fails, or the leader restarts or changes at that moment, the incident stays open at the service and has to be closed there by hand (the leader logs which one). Changing a kept receiver's address or routing key does not close incidents at the old one.
  • A host inside an announced planned outage (maintenance, a planned reboot, an update) that goes down is reported by the relay as a planned outage at info severity and opens no incident; if it is still down when the announced window ends it is not reported again until it comes back and fails anew.
  • Relay status is shown per cluster on the Notifications page (Heartbeat and cluster relay) and in GET /api/v1/settings/notifications (cluster_relay_status): held, waiting for named hosts, refused, too old, or the leader did not answer (also shown when SimpleVirt-Command sees no leader for the cluster). It is what SimpleVirt-Command last heard from the leader, at most a minute old; a deleted cluster is no longer listed. Each cluster is checked in on its own, so a cluster whose leader does not answer does not delay the check-in of the others.
  • The heartbeat is sent from the controller only. A heartbeat that stops tells you the controller, its network path or the receiver is down, not which. A controller that is running but not ready (its database or event store failing) still beats, at warning severity, with "ready": false and the failing checks in its body; a dead-man check that only looks at whether beats arrive does not see that, so route on the body or also watch /readyz.
  • Hardware not yet exercised: the cluster relay has been tested with simulated clusters and test receivers; a real controller outage on a real cluster, a rolling upgrade with the relay on, and delivery to live chat and paging accounts have not yet been run. The Postgres outbox store (migration 0034, batched saves) has not yet run against a real database.

61. The standby controller and continuous archiving have edges

A standby SimpleVirt-Command (Administration, Controller high availability) follows the active controller's database and takes over when it is lost; the code is complete and tested with a real PostgreSQL, but a takeover with real Command VMs on real hosts has not been run yet. What it does and does not cover:

  • Replication is asynchronous. A takeover loses the changes the standby had not received when the active controller died (the page shows how far behind it is; the alarm controller.ha.replication_lag fires past 60 seconds or 256 MiB). Changes on hosts themselves (VMs started, moved) are re-read by the new active controller as usual.
  • Automatic takeover needs an arbiter cluster with set-up cluster services on this release on every member. Add standby (and moving a pair to another arbiter) takes the lease there first and changes nothing when it cannot. Without an arbiter, the standby is promoted only by hand, after you make sure the active controller is off. The arbiter's hosts must keep their clocks in step (NTP); the lease times are judged by the cluster services' leader.
  • Every host must run this release. A host on the previous release ignores the controller epoch, so nothing on it would stop a superseded controller; Add standby refuses while any managed host does not enforce it. A host on the previous release added to the fleet after the pair was formed is not refused, but the alarm controller.ha.epoch_unacknowledged names it after 5 minutes.
  • Takeover takes about a minute: the standby waits 45 seconds of silence and for the lease to run out, then promotes its database and restarts as the active controller.
  • The cluster services being unreachable stops a pair's active controller from changing anything once its standby has also stopped streaming from it, until either is back (the alarm controller.ha.not_active says so). simplevirt-command controller-ha leave on its console makes it a single controller again when the standby is gone for good.
  • Adding or removing the standby restarts the active controller's database once (it starts or stops listening on the network), a few seconds in which the controller's own requests wait; hosts and VMs are not touched.
  • Only the active controller protects its own VM. The standby's VM is not given the controller restart priority automatically; set it to high on that VM yourself, and keep the two VMs on different hosts (a keep-apart VM group does that).
  • Each controller keeps its own address and certificate. There is no shared address: after a takeover, open the new active controller's address (the standby's page links to it). The two pin each other's HTTPS certificate when they pair; replacing either controller's certificate breaks their link until the standby is removed and joined again.
  • The standby copies the active controller's state files every 5 minutes (the backup schedule, the migration certificate authority, keys and the rest of what a controller backup carries, but not its HTTPS identity). A file changed in the last minutes before a takeover may be older on the new active controller.
  • A superseded controller is rebuilt, not merged. Rejoining it replaces its database with a copy of the new active one's; anything it changed after its last streamed change is gone. After a planned switchover, the old active controller rebuilds itself automatically; after an unplanned one, run simplevirt-command controller-ha rejoin on its console.
  • A host that has seen a controller pair refuses changes from a controller with no epoch, or a lower one. A controller restored from a controller backup (which never carries the pair record), or rebuilt, starts with no epoch: it shows the alarm controller.ha.epoch_behind, never stops itself for it, and takes the fleet's epoch when you confirm that no other controller manages the hosts (Adopt the fleet's controller epoch…). Rolling SimpleVirt-Command itself back to a release from before controller pairs, on a fleet that had one, has no such action and would lock it out of those hosts; pairing each host again (Add host) clears it there.
  • Without an arbiter, a switchover whose answer is lost and whose standby cannot be asked leaves the active controller stopped (resuming could make two active controllers). Check the standby's role at its console, then rejoin or restart this controller as the page says. A controller of such a pair that restarts asks its standby first and stops if it took over; if the standby cannot be reached then, it acts on its own record, and only the hosts' epoch stops it on hosts the other controller has already reached.
  • A pair does not follow a controller's management address change. The database listens on every address of the appliance, so the controller itself keeps starting, but the two controllers reach each other, pin each other's database certificate and admit each other by the addresses they had when the standby joined. After changing either controller's address, remove the standby and add it again.
  • A standby removed while it could not be reached is outranked, not stopped. Removing it gives the controller a new controller id (the lease and every later lease name it, so that standby never takes over by itself) and raises the epoch by 1000; the standby retires when it next reaches the controller (it is answered "removed"). A promotion by hand on it is refused without --force when an arbiter's lease names another controller, and without an arbiter it gets an epoch far below the controller's. So that a standby that did take over (while the controller was cut off from it) is never outranked by the controller with the older database, the removal is refused while a host or the lease names it above the pair's epoch, and the controller tells no host its new epoch until more than half of the hosts answered and none named it (removed anyway without those answers, and after console leave, which asks nobody, the controller holds and changes nothing until then); later it reads each host it has not told yet before telling it. What remains: the check sees only hosts that answer. A standby that reaches only hosts this controller cannot reach, takes over there and is never seen, keeps them until this controller reaches them: the controller then holds (it reads a host before telling it, and sends a change to a host it has not told yet without its epoch, which such a host refuses; a host told is told on the condition that it still holds what was read). After a removal, a change to a host that holds the pair's epoch and was not told the new one yet (it did not answer at the removal) is refused once, which tells the controller what the host holds; the controller then tells it its epoch and sends the change again. A change that cannot be sent twice (an upload) fails instead with "try again", and the next attempt goes through. Adding a new standby after a removal is refused while any host has not been read and told the controller's epoch (a host that does not answer; a host on the previous release, which has no controller fence, is not waited for): bring it back or remove it first. The confirmation runs inside the refused change, so that change takes one extra round trip to the host and, on a slow host, can time out; the next attempt goes through. Console leave does not move the arbiter's lease itself: the controller moves it at its first check after the restart, when the arbiter answers; until then the lease still names the old id, and a standby that still runs can take it once it lapses and promote. The hosts that already heard the new epoch refuse that standby and it stops itself; the controller, seeing that standby on a host or in the lease, holds too, so both change nothing until you turn one of them off and adopt the fleet on the other (adopting is refused while that standby answers at its address). The same applies when the arbiter could not record a removal made from the page. A standby that never reaches its active controller again is not retired by age alone.
  • The paired database port is guarded by the database's access rules. With a standby, the controller database listens on every address of the appliance; pg_hba.conf admits only the other controller, over TLS, as the replication role. The controller's firewall also drops every other source on that port, but only once it enforces: as shipped it observes and drops nothing, so until then any address that reaches the appliance can open a connection to the port, which the database then refuses.
  • The controller VM's protection is reported, not arranged. The page says whether HA protects the controller's own VM (HA on for its cluster, storage another host can open, a ready destination) and why not; it does not turn HA on or move the VM's disks for you.
  • Continuous archiving uses the scheduled backup targets and passphrase, and restores only the controller database (simplevirt-command pitr restore at the console, from a local copy of the archive files; it does not read a target itself). The rest of the controller's state comes from a controller backup. A gap in the archive (the spool dropped files while the targets were down) cannot be replayed across; the next base backup closes it. On an appliance updated without a reboot, turning archiving on restarts the controller database (and SimpleVirt-Command) once to load the archive settings. A point-in-time restore leaves the post-restore hold: the controller acts on nothing until you resume it. Archive objects are compressed before encryption; a base backup is staged on the controller's data disk before upload and needs the database's size plus 512 MiB free there.
  • Verified with a real PostgreSQL 15 (TLS streaming with certificate verification, the replication views, promotion, a point-in-time restore from a base backup and archived WAL) and with simulated hosts and cluster services; not yet run end to end on two real Command appliances on real hosts, the archive has not shipped to real SFTP, NFS, SMB or S3 targets, and the one-time database restart for the archive settings and a reboot of a paired appliance have not been run on a real appliance.

62. What the automated test runs prove, and what still needs real hardware

Every change to SimpleVirt now runs, besides the unit suite, against real daemons in throwaway containers: the host service against a real virtualization daemon (one VM taken through create, power on, edit, disk and network-adapter hot-plug, snapshot, stop, revert, unplug and delete), the live-migration transport between two such daemons (certificates, encryption on the wire and every refusal case), and the storage fence, lock checks and pool reads against a real single-node Ceph. The Ceph in that run is exactly the Ceph build the images ship: each release pins one Ceph version, and the images are built with it and no other. The boundaries:

  • No hardware acceleration and no guest operating system. The test VMs run under software emulation with an empty disk: the virtual hardware is created, attached and detached for real, but no guest boots, so anything that needs a guest's cooperation (removing a disk or adapter from a running guest, Guest Tools, in-guest shutdown) is not covered there.
  • Migration is proven at the transport. The test run moves a running VM between two daemons over the product's TLS path; a migration started from SimpleVirt-Command between two installed hosts, with shared storage and HA watching, is still verified on real hosts, and so is a migration network that goes silent mid-transfer (the test run resets the connections, and a transfer still stalled after 90 seconds is ended with the product's own abort call; so far the reset has always ended the transfer first, so that abort has not yet been needed in a run. A link that drops packets without a reset keeps the copy waiting until the network stack gives up).
  • Ceph is one node. Fencing a stale writer on another address, the blocklist, the lock-probe failure classes, pool capacity and placement reads run against a real cluster, but with one monitor and one disk: replication, recovery after a host failure, CephFS and disks prepared by the installer's disk tooling are covered on real multi-host clusters, not by these runs. How a host-wide fence affects a host that comes back has not been run on real hosts yet (§63).
  • A Ceph security update is a new release. Because the images install the pinned Ceph only, a fix Debian publishes for Ceph reaches hosts in the next SimpleVirt release, after it has passed the real-Ceph run, not through the package mirror on its own.

63. A host HA fenced at the shared storage is cut off from all of it for a while

When HA restarts a failed host's VMs on another host of a hyperconverged cluster, it first fences the failed host at the shared storage: an entry that makes the storage refuse every client from that host's address. The fence cannot tell one client on that host from another, so it cuts off everything there that uses the shared storage, not only the VMs' disks:

  • the host's Files & ISOs share (a VM still running there loses the ISO it had attached);
  • the host's storage manager and, if that host runs one, its metadata service for the shared filesystem (the cluster carries on with the copies on the other hosts);
  • any VM disk still open there, which is the point of the fence.

SimpleVirt's own storage key may add such an entry but not remove it, so the fence ends only by lapsing: about 10 minutes (SIMPLEVIRT_FENCE_HOST_EXPIRY_SECONDS, default 600) after SimpleVirt-Command stops renewing it, which it does for as long as it treats the host as failed. While SimpleVirt-Command is down the host that applied the fence keeps renewing it itself, so the fence does not lapse because the controller is gone (section 85). A host that comes back sooner stays off the shared storage until then. The Health page shows it for that host ("cut off from shared storage after an HA failover").

Once the entry has lapsed, the host's storage guardian (it runs every minute) reconnects what does not reconnect by itself: it restarts the host's storage manager, once per fence (if the guardian's restart budget is used up it leaves the running manager alone and only logs it), and if the Files & ISOs share still cannot create a file it unmounts it lazily and mounts it again, giving the new mount up to 45 seconds to come up. A share that is still not writable is retried on every pass, and the Health page shows it as being reconnected; only after three passes in a row does it say the share could not be reconnected. The share's mount also carries an option that makes it reconnect on its own after a fence, but the system retries that at most every 30 minutes, so the guardian is what brings it back within a minute or two. Hosts installed before this release get the option written on their first guardian pass after the update, and the share's mount definition is regenerated from it then; it takes effect at the share's next mount, and nothing that is mounted is touched to apply it. The metadata service is left to Ceph: by Ceph's design it restarts itself when a write fails because it was fenced and rejoins as a standby; that has not yet been watched on SimpleVirt hardware.

So the window from a host coming back to it having its storage again is up to the fence's remaining lifetime (at most 10 minutes) plus one or two guardian passes. This has been run with real storage only on a single node, with the fenced client on a second network address: a multi-host failover with a host that comes back, and its share, manager and metadata service recovering, still has to be run on real hardware.


64. Virtual TPM and Secure Boot are Tech Preview

A VM can have a virtual TPM 2.0 (a software TPM the host runs with swtpm) and UEFI Secure Boot with the standard keys enrolled (user guide). What holds today, and what does not:

  • Not yet validated on real hardware. No Windows 11 or Windows Server 2022 install has yet been run on a SimpleVirt host with the virtual TPM and Secure Boot, and none of the moves below has been run with a guest that sealed a disk key (BitLocker) to its TPM. The rendering, the carry of the TPM state, the root helper that reads and writes it, and the gates are verified by automated tests with simulated hosts and temporary directories.
  • HA without SimpleVirt-Command. The copy an HA restart restores is kept by SimpleVirt-Command. A restart made by the cluster services alone while the controller is down starts the VM with a new, empty TPM (and, as before, with the host's own UEFI settings).
  • A restart that could not restore the TPM keeps the old copy, with no console action to use it. Whenever a VM comes up after an adopt that did not install a carried copy of its TPM state (the controller had none to stage, the stage or the install failed, or the cluster services restarted it alone), the host marks it, and SimpleVirt-Command sets its earlier copy aside instead of replacing it with the new TPM's state (up to three such copies per VM, in its HA record, sealed like the current copy, the oldest dropped first); the restart's outcome says so. A VM restored on its own host that keeps that host's newer state counts as carried, so routine returns home never push a kept copy out. There is no console action yet to put a kept copy back on the VM, so recovering the original TPM (for example, to unlock a BitLocker disk without its recovery key) needs a manual restore with support.
  • Restored on its own host, a VM keeps that host's newer state. When a VM is restored on the host it last ran on after that host rebooted (or after a failover fenced it but never restarted it), the host's own TPM state is kept whenever it is newer than SimpleVirt-Command's copy: the copy was last confirmed on that host before its state last changed, or on another host before the VM came to this one (for example, it was live-migrated here and every refresh of the copy from here failed since). Only a copy confirmed after that replaces it, and the host keeps a copy of what it replaces. For a record made before this release, the host's time is compared with the controller's until the controller has seen the VM on its host once.
  • The copy can be up to a minute old. SimpleVirt-Command refreshes its copy of a VM's TPM state at most once a minute. A guest that changed its TPM just before its host failed (for example, turned BitLocker on) is restarted with the TPM as it was before that change.
  • Where the copies live. A VM's TPM state lives on its host (libvirt's /var/lib/libvirt/swtpm/<uuid>), not on shared storage. SimpleVirt-Command's copy is sealed with its database key and so is encrypted in its database and backups; on a controller without a database key (file mode) it is stored unencrypted, like the other secrets (security settings). A host keeps a copy of a VM's TPM state for 90 days when it removes the VM's definition or replaces the state with a newer copy, under /var/lib/simplevirt/tpm-state/retained/ (readable only by the SimpleVirt service account; the newest is <uuid>.tar, and an earlier, different copy is set aside as <uuid>-<time>.tar, never overwritten); there is no console action to put such a copy back. A host never replaces a VM's TPM state without keeping such a copy first: when the copy cannot be written (for example, a full disk), the carried copy is not installed, the VM starts with the state already on that host, and SimpleVirt-Command keeps its own copy, as for a restart that could not restore it. An HA restart onto a survivor that fails after the TPM state was installed (the start is refused, the definition is rolled back) leaves that state in the survivor's libvirt directory; a later adopt of the same VM there uses it or, when a newer copy is carried, keeps it as a retained copy first.
  • Snapshots do not roll the TPM back. A disk-only snapshot keeps the TPM as it is now when it is reverted; a snapshot with memory carries the TPM in its saved state. Reverting to a snapshot taken before the TPM was added removes the TPM from the VM's settings; a copy of its state is kept first under /var/lib/simplevirt/tpm-state/removed/ (the revert is refused when it cannot be), and adding the TPM back restores that copy if the host no longer has the state. Only the latest such copy per VM is kept, for 90 days. Whether libvirt itself removes the state when a definition loses its TPM has not been checked on the shipped libvirt; the copy covers both.
  • Turning Secure Boot on resets the VM's UEFI settings, so the keys are enrolled. Boot entries that existed only there are lost (a copy of each reset is kept under /var/lib/simplevirt/nvram-before-secureboot/<uuid>-<time>.fd; there is no console action to put one back). A VM that this host saw running with Secure Boot on and the enrolled template is not reset. Secure Boot needs the q35 machine type; a VM imported with another one is refused.
  • "Secure Boot off" is stated only where it is safe. A UEFI VM is defined with Secure Boot off only when the operator chose it and the host's firmware descriptors show that libvirt would give the VM a plain UEFI build; otherwise (an untouched checkbox, an API create without secure_boot, a GPU passthrough VM, or a host with no such build) the VM's settings leave the choice to the host's firmware selection, which on the shipped hosts picks the build with Secure Boot and the enrolled keys. A VM defined with Secure Boot off has not yet been started on a real host of this release (the descriptor check is tested with simulated descriptor files).
  • A UEFI VM left to the firmware default (every UEFI VM made before this release) shows, while it runs, what the running guest got, and while it is stopped, what its host saw it boot with the last time it ran there. A stopped VM its current host has not seen running since this release shows "left to the host firmware's default".
  • A broken firmware-state helper is an alarm, not a stall. When the host's root helper (simplevirt-fwstate) does not answer, the first read waits its 10 s timeout; for the next two minutes reads of VM UEFI settings and TPM state on that host fail at once (the controller's copies then stop refreshing), the host raises a warning alarm, and a read after that asks again. Writes (an adopt installing a carried copy, re-adding a removed TPM, a Secure Boot reset), and the reads they make first, still ask the helper and wait the full timeout. A request the helper picks up after its caller has given up is dropped, and an install is never swapped in while an swtpm process runs on that VM's state. Removing a definition while the helper is down tells libvirt to keep the TPM state on the host instead of keeping a copy of it, without waiting for the helper; only on a libvirt too old for that (before 8.9) is the copy asked for as a write, waiting the full timeout.
  • Only TPM 2.0 with the CRB interface is offered; a VM defined elsewhere with a TIS TPM is shown as it is, and a physical (passthrough) TPM is not offered.
  • Every host of a cluster must run this release to run, receive or carry a VM with a TPM: a move to an older host is refused, and SimpleVirt-Command never chooses an older host for an HA restart of a VM with a TPM (it has no swtpm, so the VM could not start there). During a rolling upgrade, a TPM VM whose host fails is restarted by SimpleVirt-Command only on an upgraded host, and stays down when there is none. A restart made by the cluster services alone, while SimpleVirt-Command is down, does not check this: it can choose an older host, where the VM cannot start, and the VM then stays down until it is started on an upgraded host. Finish a rolling upgrade before relying on HA for TPM VMs.

65. Kubernetes cluster lifecycle has edges

The health alarms, certificate renewal, rolling upgrade and worker replacement for provisioned Kubernetes clusters (Kubernetes clusters) have these limits:

  • Verified with simulated clusters only. The probe parsing, the alarm rules, the upgrade and replacement sequences and the renewal script are covered by tests against fakes (stub kubeadm, crictl and curl for the script). A rolling upgrade across the published image versions, a worker replacement and a renewal have not yet been run on a real cluster.
  • An air-gapped upgrade needs an upgrade bundle, and the online mode needs package and image access. By default an upgrade takes everything from a signed upgrade bundle in the Image library, staged on every node first, and downloads nothing (see 145). The online mode installs from each node's own package sources and pulls the control-plane images; a site with no route to pkgs.k8s.io and registry.k8s.io, and no mirror configured on the nodes, cannot use it.
  • An upgrade cannot be rolled back. Once kubeadm upgrade apply has moved the control plane, the cluster goes forward only. The run saves an etcd snapshot on the first control plane before that (/var/lib/simplevirt/k8s-upgrade/etcd-before-<version>.db), and runs the etcd backup when it is on; restoring either is a disaster recovery by hand, not an undo, and loses what changed since. When the run staged a bundle, the local snapshot is taken again after staging, just before the control plane moves; the etcd backup's copy is from before staging, which can be hours older. There is no per-node rollback of the packages.
  • Control planes are never replaced. Replace workers… rebuilds workers only. A control plane's operating system is updated on the node itself (the Kubernetes packages stay held), or by building a new cluster.
  • Calico moves only with a bundle. A bundled upgrade applies the bundle's Calico when you ask, or when the running Calico is not known to cover the new minor; SimpleVirt knows the coverage of Calico v3.28, v3.32 and v3.33 and of the bundle's own Calico, and treats any other running Calico as not covering. The online mode never changes Calico. Calico is never taken back to an older version: a running Calico newer than the bundle's is left as it is, and Check only warns when SimpleVirt does not know it to cover the new minor.
  • A drain gives up after 2 minutes. A PodDisruptionBudget that never allows a disruption stops the upgrade or the replacement at that node.
  • Imported clusters are not checked, and raise none of the k8s alarms.
  • Clusters built from older images have no renewal timer until Renew certificates… installs it.
  • A controller restart in the middle of a run ends it; the card says it was interrupted, and running it again carries on. A node that was cordoned for it is put back in service on the next start.
  • The certificate authority is not renewed. kubeadm cannot renew it; the alarm says when it nears its expiry (10 years after the cluster was built).
  • A node an upgrade broke is not repaired. A node left on the new version but not Ready (a kubelet that does not start, say) stops every later run at it until you bring it back by hand; SimpleVirt does not reinstall its packages. Its node alarms are raised as usual.
  • The renewal timer is paused for at most 24 hours at a time. An upgrade renews the pause between nodes once it has held it for 12 hours; a certificate renewal or worker replacement longer than 24 hours gets the monthly timer back while it is still running, and a renewal that falls due then can restart a control plane's etcd during the run. The timer only renews once fewer than 60 days remain.
  • Machines joined by hand must be on the roster. A node that joined outside SimpleVirt (a bare-metal machine, say) stops an upgrade until it is added to the roster as a machine (Add to roster on its row); the upgrade then reaches it over SSH or by hand, chosen for each run. Debian and Ubuntu machines only. See 146.
  • A pod that appears after Check with no controller or with emptyDir data, on a node not yet upgraded and without leave to delete it, stops the upgrade at that node, which is put back in service.
  • Replace workers deletes pods' local data without asking. Removing an old worker drains it with --force and --delete-emptydir-data, because its VM is deleted next. The dialog lists the pods with no controller and with emptyDir data on the workers it will remove, as a warning; it does not stop for them as Upgrade Kubernetes… does.
  • One run record per cluster. While an upgrade that stopped part way has moved the control plane or left nodes cordoned, Renew certificates… and Replace workers… are refused until the upgrade is run again to the end; while a worker replacement has an added worker and its old one both in the cluster, an upgrade and a renewal are refused until the replacement is run again or the added worker removed, and a replacement with another image is refused until then (the image that run started with must stay in the Image library to finish it; otherwise remove the added worker). A record an earlier release already overwrote is not rebuilt: SimpleVirt then reads the control plane's version before adding nodes, and the upgrade plan carries on from what the cluster runs, but a cordon that earlier record held is not known and stays until you uncordon the node.
  • A refused API answer counts as up. An endpoint that answers HTTP 401 or 403 is taken to be the API server refusing an expired credential, so the API alarm stays quiet; SimpleVirt fetches the current admin.conf on its own in that case.

66. The backup API: what it covers and what is not proven yet

The backup API (in the appliance's documentation) (version 1) lets a backup product copy VM disks off the platform, full or changed blocks only, and write them back. Its boundaries in this release:

  • SimpleVirt runs no backup itself. There is no built-in backup job, schedule, catalogue or retention of backup copies: a backup product, or your own scripts, drives the API and keeps the copies. Restore into a new VM is two calls (create the VM, then a restore session on it), not one.
  • Disks it covers. Disks on file datastores (qcow2 or raw images on NFS, local or CephFS datastores) and on SimpleVirt HCI. A SAN LUN disk is refused (backup_unsupported_storage): back it up with your array. One session covers disks of one kind, so a VM with disks on both SimpleVirt HCI and a file datastore takes two sessions, which are two points in time.
  • Change tracking. Incremental backups need a checkpoint. On a file datastore it is a persistent bitmap inside each qcow2 image, recorded only while the VM runs: a raw image keeps none, and a host not yet updated with the helper that removes them from a stopped VM before a snapshot revert records none (its backups of file VMs are full). A snapshot revert, a storage move, a restore in place and an unclean stop of the VM's emulator (a host crash) all end change tracking; the next backup is refused as incremental (backup_checkpoint_unknown) and must be full.
  • Stopped VMs on file datastores are staged. Their images belong to root, so the host copies them through libvirt to its own system disk first and serves the copy: that needs room on the host's system disk (it keeps its reserve; backup_staging_space otherwise), the copy takes as long as the image's allocated size takes to read, and the VM cannot be started while it is made. A restore of a file VM is staged the same way and then uploaded as new volumes.
  • Multi-disk HCI VMs without an agent are captured one disk after the other, never paused: such a session reports crash-consistent-per-disk.
  • A running file VM's session holds it on its host. Its backup job lives in the emulator, so the VM is not live-migrated (also not by maintenance mode or workload balancing) until the session ends, and the copy-before-write scratch file grows on the host's system disk with the guest's writes during the session. The session claims a tenth of the VM's disk size there when it opens, at least 1 GiB and at most 32 GiB (refused without it). The claim is only working room: a guest that overwrites more during the session grows the file past it, so a large, busy VM needs that much more free space above the reserve. The disk is checked every second: the session is ended when the disk reaches its reserve (at least 8 GiB, 30% on a Ceph monitor host), which stops the copying. The guest's writes fail only if the disk fills completely, and then the VM is paused on the disk error (resumed once there is room): that takes a guest writing faster than the whole reserve per second. Keep sessions short, and keep the system disk well above its reserve.
  • A file restore claims each disk's whole size on the host's system disk for as long as the session is open, since a client may write all of it; a disk larger than the free space above the reserve cannot be restored in place on that host (restore into a VM on another host, or free space first).
  • Checkpoints of a stopped VM that another host may run wait. A checkpoint removal on a VM that is stopped on this host and whose datastore is lease-fenced (an operator's delete, or the removal left by a session that did not finish) runs only while no other host holds the VM's lease; after an HA restart the old host's removal waits (up to 7 days, then it is dropped, and the checkpoint stays in the images as one more checkpoint).
  • A snapshot revert of a file VM with checkpoints needs an updated host. A host still on a release without the backup API cannot remove the checkpoints, and the emulator refuses its revert ("Device has active dirty bitmaps"). In a cluster being updated, revert such a VM on an updated host, and delete a VM's checkpoints before moving it to, or rolling its host back to, an older image.
  • A restart of a host's service aborts its open sessions (and removes what they made); a backup product then starts the backup again. Until the cleanup has reached a VM, a new session on it is refused with backup_cleanup_pending.
  • Verified by tests, not yet on real hosts. The TLS NBD front, the session credential, the changed-extents reader and the restore path are tested end to end against the emulator's own NBD server and client (qemu-nbd, qemu-img), and the root helper against real qcow2 images. The pull-mode backup of a running VM (libvirt's backup job and checkpoints), the HCI snapshot export and rbd diff, the staging of a stopped VM through libvirt, the in-place restore's volume switch, and the guest freeze around a backup are tested against fakes of libvirt, the emulator's monitor and Ceph, and have not yet run on a real host. No backup product has yet been run against the API.

A host's management address can ride a team of ports and can be shared with VM networks, set at install or changed on a running host with an automatic revert. The code is complete and tested with simulated interfaces; a change on real hardware has not been run yet. The edges:

  • Not run on real switches yet. The rendered network units, the imperative fallback, the apply-and-revert sequence and every refusal are tested against a simulated kernel and network service. A live conversion of a cabled host — active-backup failover by pulling a cable, LACP against a switch with and without the LACP group configured, a tagged management VLAN on the bridge, and DHCP keeping its lease across the change — still needs a run on a host with two ports on a real switch.
  • Only the link changes. The address, VLAN, gateway and DNS are kept; change those with Configure Management Network (which keeps the team) and its own keep-or-revert prompt. The current management port always stays in the link, so moving management to entirely new ports takes two changes.
  • A team is refused while VM networks ride one of its ports directly (VLAN networks on the management port, the one-port trunk layout). Sharing alone (no team) is allowed with such networks in place: they keep riding the port, the management switch stays on the port, and an untagged network on it joins the management bridge above the port. VLAN networks already on the port are not moved onto the bridge, so a host with them cannot be teamed until they are removed and created again (once the link is shared and the switch has followed the bridge, new VLAN networks ride the bridge and a team can go under it).
  • The bridge is never taken away while anything but management uses it: a VM network shares it, a switch other than the host's management switch names it, or a VM is attached to it. A service adapter cannot be placed on a network that shares the management bridge.
  • The revert probes only what answered before. A host that could not reach its gateway or SimpleVirt-Command before the change is not reverted for not reaching them after it; only the window applies then. A change that makes the host unreachable from your browser but leaves the gateway and SimpleVirt-Command reachable is reverted when the window runs out, not sooner.
  • DHCP may hand out a different address if the DHCP server keys its reservation on a client identifier rather than the hardware address: the team and the bridge carry the first port's MAC and ask with it. The change is then reverted (the host must keep the address it had), so on such a network the link cannot be changed until the address is static or reserved for the new identifier.
  • The alarm host.nic.mgmt_redundancy fires for a management team on fewer than two ports, and for a host in an HA cluster that manages over one port; a standalone single-port host raises nothing (the HA readiness check still warns about it). A host on an earlier release does not report its management link, so the readiness check lists it as not reported.
  • SimpleVirt-Hypervisor hosts only. The SimpleVirt-Command and SimpleVirt-Containers appliances keep one management port.

Changing a running host's management link (section 62) takes management off the wire while it is applied, and longer when it does not work. The change is gated so this never stalls running VMs' storage or moves, but the interruption itself remains. The edges:

  • Every change blips management. Building a team or bridge, or taking one apart, takes the management address down for the seconds the network service needs; a host's SSH session, an open console in SimpleVirt-Command and the host's heartbeat all see it.
  • A change that does not work is noticed within about 13 seconds of its apply (one port, a bridge, an active-backup team) or about 20 seconds (LACP, which gets 10 seconds to agree with its switch), however many SimpleVirt-Command addresses the host probes (they are dialled at once), and the revert's own apply adds a few seconds, more when the network service has to be restarted. That exceeds the storage lease's 15-second self-fence, so the change is refused outside maintenance mode while running VMs' NFS datastores, or iSCSI sessions their disks go through (any portal of the target, not only the one the datastore names), are reached over the management link, or the distributed storage's monitor or traffic uses it or a monitor is reached through it. "The management link" is everything the change interrupts: the management address and every device stacked on the bridge, the team or the ports, so a storage service adapter on a tagged port group that rides them counts as well. VM disks defined as volumes of an iSCSI datastore, and datastores formatted on an iSCSI LUN, are matched to their sessions too. The host console and SimpleVirt-Command apply the same checks. A question that cannot be answered (libvirt, the mount table or the iSCSI session table unreadable, a volume whose path cannot be resolved, or a route to a storage server, portal or monitor that cannot be looked up while it is not on one of the host's other subnets) refuses as well. Distributed storage that runs on this host still sees its peer traffic interrupted during a change made in maintenance mode; make one host's change at a time. Fibre Channel datastores do not ride the network and are not affected.
  • Moves. A change is refused while a live migration or a cold copy runs through the host, and while a change waits no live migration or cold copy to or from the host is started. The host a live migration leaves asks again after it recorded the move, so a change and a move started at the same moment never both go ahead. An HA restart is not a move and is not held back; a maintenance evacuation started while a change waits does not start its moves until the change is kept or reverted (at most the confirmation window, 10 minutes at the longest).
  • VMs on the shared management bridge lose their network while a change swaps the bridge's port, rebuilds the team in another mode, or takes out of the team the port carrying its traffic now (the team fails over), and until the revert if it fails. The change is refused until the operator accepts that; VMs on other networks are not affected. Taking a backup port out of an active-backup team needs no acknowledgement. In an LACP team every port carries traffic, so removing one moves its flows to the others with a brief loss the change does not ask about. The same acknowledgement covers a VM network or service adapter VLAN stacked directly on a team without the shared bridge when the active port leaves it.
  • A team cannot change mode while anything else rides it. A bond's mode can only be set while it is built, so the change rebuilds the team; with a VM network or service adapter VLAN stacked directly on a team (without the shared bridge) that cannot be done, and the change is refused, naming the device. Move those networks off the team, or share the management bridge and put them on it, first.
  • SimpleVirt-Command's task row records the request, not the outcome. The task succeeds when the host accepted the request; whether the change was applied, kept, refused or reverted is on the host's Management link card (and in the host's journal, simplevirt-mgmtlink).
  • A second change asked for while one waits is discarded, never queued behind it; the outcome says how many were. Ask again once the first is kept or reverted. A keep or revert names the change it is for; one that arrives after that change ended (the window ran out as you clicked) is ignored, so it can never keep a change someone began since. Because it names its change, a keep or revert is never dropped for its age: one clicked while a slow apply (LACP, a DHCP wait) is still settling counts once the guard starts watching.
  • A change request the helper does not take within 30 seconds is never applied. On a host whose management link helper (simplevirt-mgmtlink.path) is missing or not running, the request is refused at once (SimpleVirt-Command: 503, and the card says the host must be updated); a request that still waited longer is dropped when the helper next runs and recorded as not made. A host installed or upgraded from this release's ISO has the helper.
  • Not run on real switches yet. The timing above is computed from the guard's constants and tested on a simulated clock; the actual blip lengths on a cabled host with a real switch (and LACP convergence against switches with slow LACP timers) still need to be measured. The iSCSI check is tested against a simulated session table and block device tree; a run against a real target with multipath has not been made. The refusal of a team mode change with a VLAN on the team, and the storage check of adapters stacked on the link, are tested on a simulated sysfs tree, not yet on a cabled host.

69. Automated fault testing runs on nested clusters, not on real hardware

SimpleVirt is put through scripted faults by an automated test run. A nested SimpleVirt cluster (three hosts, a witness and SimpleVirt-Command, installed unattended from the release's own ISOs) runs on one test machine with one datastore per storage tier: NFS, HCI on the hosts' own disks, and SAN on a software iSCSI target. The test machine pulls a host's power, hangs a host, cuts the management or the storage network of the host running a protected VM, removes an HCI disk, takes the NFS export away for a while, and kills SimpleVirt-Command and the cluster services leader. Each run checks that no VM ever runs on two hosts at once, that a VM that must move is running again within its tier's time budget, that a checksum chain the guest writes to its data disk has lost no acknowledged write, and that the expected alarms were raised. A fuller run, with fault hooks compiled into test builds, runs every night. The boundaries:

  • The first run is still to come, and releases are not gated on it yet. The test machine this needs (nested virtualization and about 50 GiB of memory) is not in place, so no run has passed so far. Until one has, the release check is not enforced: each release's notes say so in a "Fault lab" section ("not run"), and a release that has been run through it says passed or failed there. Once the check is enforced, a release that does not pass it is not published unless it is explicitly waived, and a waiver, with its reason, is stated in that release's notes.
  • Nested is not physical. The test hosts are virtual machines: a power cut is the test machine switching one off, a hang is its processors stopped, a network cut is a firewall rule on the test machine, and a failed disk is a virtual disk unplugged. Real network cards, switches, disk controllers, firmware and timing are not part of it, and recovery times there are slower than on servers.
  • SAN is a software target, not a storage array. Multipath, CHAP and an array's own controller failover are not covered.
  • The BMC power-off is not covered without BMCs. The fault run proves the BMC fence only when the test hosts have a BMC; physical BMCs have not been part of a run yet (§15).
  • Without a BMC, NFS and SAN restarts still need you. In the run, the powered-off confirmation is given only after the test machine has read the host as off; a hung host is never confirmed, and on those tiers the VM is expected to wait for its host rather than move.
  • The test builds never ship. The fault hooks exist only in binaries built for this testing. Every release build is checked for them and the release stops if one has them; the hypervisor, the cluster service and SimpleVirt-Command you install carry none.
  • How "never on two hosts" is checked, and where it can only infer. Every 3 seconds the run reads each test host's own list of running VMs, independently of SimpleVirt, and beside it what the storage says about who may write the VM (its NFS or SAN lease, or on HCI the disk locks and the hosts cut off from the storage). While a host is powered on but cannot be read (a host waking from a hang or rebooting, for the first seconds), the run relies on the storage record for that host; if that record does not rule the host out while another copy runs, the run fails as inconclusive rather than passing. On HCI a host is ruled out when it holds no disk lock the storage still honours (a host cut off from the storage holds none). An NFS or SAN lease does not stop a host from writing by itself, so it rules a host out only when the run read that host as powered off after it last held the lease and the lease has since been taken over at a newer generation; a host that only hung (its processors stopped, which leaves its VMs in place) or lost its network is never ruled out by the lease. What is inferred is that a host just powered back on runs no copy it has not taken the lease or a disk lock for: a second copy that ran only while its host could not be read, without taking the lease or a disk lock, would not be seen. Each run ends only after every host has been read back directly several times in a row. On HCI, hosts cut off from the storage by an address range are read in the form the storage software documents for such entries; that form has not yet been checked against a real cluster's output, and if it differs every sample's storage record reads as unreadable, so the run fails as inconclusive rather than passing.
  • The test hosts have SSH on. The checks above read each test host over SSH, so the test hosts are installed with SSH turned on for the admin (the unattended install option simplevirtinstall.ssh=1, the same as Toggle SSH on the console). Hosts you install keep SSH off unless you turn it on.
  • Not every manual verification is scripted yet. A live migration while cluster services are armed is scripted. Datastore file deletion of a running VM's disk is scripted in part: the refusal is checked, but not with the VM placed on a host other than the one the datastore browser asks first, nor that an unrelated file still deletes, that the delete fails closed when one host does not answer, or that an upload over the disk is refused. HCI recovery is scripted in part: a host power cut, a lost disk and a hung host coming back are run, but the order "host cut off from the storage, cut-off confirmed, then the VM restarted" is not measured step by step, and the cluster is set up through the API rather than the setup wizard. SAN datastores are scripted in part. Upgrades, backup and restore, bare-metal installs and the remaining checks are still run by hand.

70. Object permissions: what they cover and what is later work

A role can be given on one cluster, host, folder, virtual machine, datastore or port group (Administration → Access control → Object permissions), with inheritance down the inventory and a No access override. The edges:

  • The hierarchy is fixed. A VM inherits from its folder, then its host, then that host's cluster; a host from its cluster. Folders are flat and belong to no cluster, so a folder permission reaches only the VMs filed in it. A shared datastore spans hosts and clusters, so only a permission on the datastore itself (or a global role) reaches it; a host-local datastore is also reached from its host and cluster. A port group is named by its name and a permission on it applies on every host that has a port group of that name.
  • A VM follows its host. A VM's host and cluster are where SimpleVirt-Command last saw it running. After a migration or an HA restart onto another cluster, the permissions of the new host and cluster apply; a permission on the VM or its folder travels with it. Moving a VM (live or cold) therefore also needs Migrate virtual machines on the destination host.
  • A VM no host reports has no known place. SimpleVirt-Command keeps showing a disconnected host's VMs from its last poll, so a VM keeps its host and cluster while its host is down and no other host reports it. Its place is unknown only when the controller has never polled the VM's host since it started (for example after a controller restart while that host is down), and for the few seconds between creating a VM and the next poll of its host. Its host and cluster are then unknown: a permission on a host or cluster does not reach it (not even the cluster named in a /clusters/{id}/vms/{uuid} path), and an account with No access on any host or cluster is refused it (it might be there). A permission on the VM itself or its folder still applies, and global roles apply to an account with no host or cluster No access. An account whose only access is a host or cluster permission may therefore see a newly created VM's page refuse for a moment; it opens once the host reports the VM.
  • A leftover copy does not stand for the running VM. When a host still lists a VM that another host runs (the definition left behind by a failover or a cold migration), a /hosts/{id}/vms/{uuid} request naming the leftover's host is decided on the host running the VM. A permission on the leftover's host alone therefore does not reach that VM, not even its leftover copy; a permission on the running host, the VM, its folder or a global role does. When two hosts that both answer run the same VM at once, only a permission on the VM, its folder or a global role reaches it. A host that is down does not count here: its last poll may still say the VM runs there after HA restarted it elsewhere, and while a host that answers reports the VM, the VM is decided on that host (and its cluster), so the new host's Operators keep operating it during the incident.
  • An unreadable permission store refuses access. If the permissions cannot be read (the database of a Postgres controller does not answer), nobody is granted any VM, host, cluster, datastore or network privilege until the read succeeds again, so a No access can never silently lapse. When the role assignments themselves cannot be read, every privilege is refused, administration included; the controller never falls back to treating every account as an Administrator, as it does on a fresh install before the first role is assigned. Refusals then answer 503 and say why, and the console shows a notice (at page load, or at the first action refused for this reason when the outage starts while you are signed in) and checks again every 15 seconds. Sessions that are already signed in stay signed in, but new sign-ins fail while the database is down, local accounts included (on a Postgres controller the local accounts are kept in the database too); such a sign-in is refused like a wrong password. When only the object permissions cannot be read, administration and settings keep working and the Object permissions card reports the error. This holds for global Administrators too, on an install with no object permissions at all: during a database outage nobody can start a migration or an evacuation from SimpleVirt-Command. Running VMs and HA failover on the hosts are not affected. The fail-closed behaviour against a real Postgres outage is covered by tests with a simulated store, not yet by a run against a stopped database.
  • The tree shows what you have a permission on. An account with permissions on some VMs only sees those VMs in the virtual machine list, search and the dashboard counts, but not their hosts and clusters in the host and cluster lists unless it also has a permission there. Alarms are shown by the host they were raised on, events by the host they came from, so such an account sees neither.
  • Some reads stay global. The HA overview, placement, GPU inventory, Kubernetes, the content library, logs and the event feed are decided by global roles, so an account with only object permissions is refused them. Acknowledging an alarm is a global action. An open page keeps the permissions it was opened with for the live task stream until it reconnects.
  • Host pages decide on the host. A port group permission governs seeing that port group and connecting adapters to it; changing a port group or switch, and browsing a datastore from a host's page, are decided on the host or its cluster. A datastore permission is used from the Datastores page.
  • Cluster policy for a VM is a cluster setting. HA restart priority, HA recovery actions and DRS rules name a VM but are decided on the cluster.
  • Storage space is not a separate permission. Choosing a datastore for a new disk, a clone or a storage migration needs no permission on that datastore beyond what the VM route needs; datastore permissions govern browsing, uploads, downloads and datastore management.
  • A clone or a deployed VM starts with no permission of its own. It needs Create virtual machines on the host it lands on, and it is reached afterwards through that host, its cluster or a folder it is filed in.
  • A permission on an object that is removed stays listed (marked no longer exists) until you remove it; it grants nothing. A port group or datastore re-created with the same name or key is reached by the old permission again.
  • API tokens limited to scopes. A token minted before this release with scopes that include vm.create or vm.edit is given network.assign once at the first start, so it keeps creating VMs and connecting adapters. Restoring a backup taken before this release (onto a reinstalled or an upgraded controller) does the same at the restart that follows, for its tokens and, on a controller without Postgres, its custom roles. On a Postgres controller a restore replaces the whole database with the backup's (tables a later release added are dropped first), so object permissions set after the backup was taken are gone and the restart brings the restored database forward again, giving custom roles network.assign as at an upgrade. This Postgres path is tested against PostgreSQL 15, not yet on an appliance. A token minted afterwards gets only the scopes chosen at minting; add Connect VM network adapters to port groups to an automation token that creates VMs.
  • No projects, tenants or quotas. There is no grouping of objects into a project with a resource quota, and no self-service portal; that is later work.

What to do. Use object permissions for teams that own a cluster, a folder of VMs or a handful of port groups, keep administration with global roles, and check what an account can see by signing in as it.


71. Moving to a newer platform base: what is proven and what is not

This release's images are built on Debian 12 with Ceph 16 and PostgreSQL 15, as before. The Debian 13 base (Ceph 18, PostgreSQL 17) can be built and is exercised in tests, but no release image is built on it yet (component matrix (in the appliance's documentation)). The upgrade path an installation takes when a release moves its base is in place:

  • SimpleVirt-Command and SimpleVirt-Containers move their database on the first start of the new version. The previous PostgreSQL major's database is dumped first (the dump is kept beside the database), then moved by running the old major's server from the previous version the appliance keeps for switching back and restoring the dump into the new major (pg_upgrade --link only when no previous version could run the old server). Every table's row count is compared before the new database is used. Anything that stops the move leaves the old database as it was and the appliance does not start on an empty database: the update switches back to the previous version. A switch back and a later update again carry forward what the previous version recorded in between (operations).
  • Hosts move Ceph through the rolling cluster upgrade, and only through it. A single Host's update that would change its Ceph major is refused. See operations.

The boundaries:

  • Proven in tests, not yet on servers. The Ceph steps of the rolling upgrade are proven against a simulated cluster, the root verbs against a simulated ceph command, and the database move against real PostgreSQL 15 and 17 in containers (including a switch back and a second update). A three-host cluster has not been moved from Ceph 16 to 18 yet, nested or physical, and no appliance has booted the Debian 13 base; the first release on the new base is not published before those runs have passed.
  • A host restarts all its Ceph daemons at once. Ceph's documented order upgrades every monitor before any storage daemon. A SimpleVirt host is updated by restarting it into a new image, so its monitor, manager, storage daemons and metadata server come back on the new Ceph together. The rolling upgrade takes the hosts that run a monitor first and checks each daemon of each host, in that order, before the next host. Until every monitor is updated (the controller's own monitor, when it has one, moves with SimpleVirt-Command), the storage daemons of an updated host run beside older monitors still in quorum, which Ceph accepts but does not document as its upgrade order. When the run starts from hosts of the previous release, the manager hosts are not known before the first host is back, so the very first host is picked from the monitor hosts only.
  • Metadata servers of two majors overlap. The file systems are held to one active rank with no standby-replay daemon for the run, and a rank is handed only to a standby on the same or a newer Ceph. From the moment a newer metadata server is active until the last host is updated, an older standby could take the rank if the active one failed. Ceph does not support that mix. The window lasts as long as the remaining hosts take to update.
  • The first host goes before anything can be prepared. Hosts of the previous release cannot run the new Ceph steps, so before the first host the run only reads the cluster: it refuses a file system with more than one active rank (set it to one first), picks a first host among the monitor hosts whose metadata server holds no rank, and holds the file systems to one rank before the second. While the first host runs the new release, a standby-replay daemon of the old one can still follow the active rank; that is not changed until the second host.
  • A stopped run keeps the file systems on one rank. A run that stops after the first host leaves them on one active rank with standby-replay off (safe for a cluster on two majors) until the rolling upgrade runs again and finishes. The run's Ceph status is held by SimpleVirt-Command in memory: after a restart of SimpleVirt-Command it is gone, and no alarm says the file systems are still held; run the rolling upgrade again, which continues and puts them back at the end.
  • Only Command's per-host update is gated. A Host's own web interface can still apply an update staged on it by hand, without the Ceph check. On an HCI cluster, update Hosts from SimpleVirt-Command.
  • SimpleVirt-Command knows the Ceph major of its own release's images only. An image of another release staged on a Host (a newer one from the update channel) carries no record of its Ceph major that SimpleVirt-Command can read (nor does an image whose version the Host did not report when the apply was asked), so on a Ceph cluster its per-host apply is refused with ceph_major_unverified until you confirm that it keeps the cluster's Ceph major (the apply dialog then offers that confirmation; it is audited as host.update.apply.ceph-unverified). SimpleVirt-Command trusts that confirmation: if the image does change the major, the host's Ceph daemons restart on it without the rolling upgrade's gates. When the cluster's Ceph cannot be read at all, the same confirmation is offered only for this release's own image and only when SimpleVirt-Command read the cluster within the last hour (since it last started) all on that image's Ceph major, with no rolling cluster upgrade running or started since; otherwise the apply stays refused. A known change of major, and any apply while the cluster runs two majors, is never confirmable.
  • A standby controller does not change major on its own, and a pair does not move. A paired active controller refuses to move its database (the standby could take over during the move, and the moved database cannot stream to it), and the update switches back at once. Remove the standby, update the active controller, then add the standby again, which copies the database afresh. A standby refuses the move of its own copy.
  • The move needs space and time. The dump and a second copy of the database must fit beside it; the move refuses beforehand when they do not. It has two hours; a database whose move takes longer is switched back and stays on the previous version.
  • A switch back keeps a copy aside. When the previous version ran after a move, the next update moves the database again and keeps the earlier moved copy as <database>.stale-<UTC time>, which takes the space of one more database until you delete it. The newest three copies are kept (PG_STALE_KEEP in the initializer's environment); a fourth switch back removes the oldest once the next move has succeeded (before it only when the move needs that space to start), and the initializer's journal names it. A move that fails keeps every copy, so for a while there can be more than three. When the copies leave too little space for the move, the move is refused (the update switches back) and the refusal lists them.
  • Mixed QEMU versions during the run. A VM started on an updated host gets that host's newest machine type. Moving it to a host still on the older QEMU is refused, by name, until that host is updated too; a restart does not change its machine type. An HA restart is never refused for it: a surviving host with the newer QEMU is preferred, and an older one starts the VM with its machine family's plain type, a slightly older virtual machine version, which a guest operating system can notice as changed hardware. The cluster's own recovery (with SimpleVirt-Command away) places by capacity only; the older host then does the same.
  • The archive starts a new generation at each move. A generation is one PostgreSQL cluster: its tag names the major and the cluster (<tag>-pg17-<cluster>, from the database's system identifier), so a second move after a switch back starts another generation of the same major instead of mixing two clusters. Point-in-time restores of the controller database reach back only to the start of the generation they restore from; a moment before the move is in the earlier generation, which restores only onto a version that runs that major, and a moment of an earlier move to the same major is restored from that move's generation (simplevirt-command pitr picks the one whose newest base is no later than --time). Earlier generations are not pruned any more and stay on the targets until you delete them. While the database's system identifier cannot be read, nothing is archived (the archive reports failing). A controller without a cluster-definition signer (no owner tag) writes no generation tag. A switch back puts the archive's spool back as it was at the update, with the database copy it belongs to: WAL the newer version archived but had not shipped yet stays with the newer version and is not shipped by the previous one (it would land beside, or over, the older database's own segments). That WAL was not in the archive yet, so the newer version's last moments before the switch back are not restorable from it; they belong to a database the previous version does not run anyway.
  • A database server that keeps failing on the new version is not "starting". The update's confirmation counts a database initializer or server in its first start as progress and waits up to two hours for it; a server that failed and is being restarted (Restart=on-failure) is not, so the update switches back at its normal twenty-minute deadline. A server that crashes once during a long first start loses that extension too.
  • The Kubernetes node images are separate. They are guest images with their own base (Kubernetes node images); the platform profile does not change them.

What to do. Nothing, while the base stays Debian 12. When a release moves it, remove a paired standby controller, update SimpleVirt-Command, add the standby again, then run the rolling cluster upgrade, and follow its Ceph status until it says the cluster runs the new Ceph and requires it of every storage daemon.

72. Kubernetes storage and LoadBalancer add-ons

A cluster SimpleVirt builds gets a CSI driver, a cloud controller and LoadBalancer support (Kubernetes storage and LoadBalancer services (in the appliance's documentation)). They run inside the cluster and never call SimpleVirt-Command. The edges:

  • Not yet run on real hosts. The driver, the cloud controller and the install are tested against fakes of the node, of Ceph and of the Kubernetes API. On a test cluster in containers, with a test NFS server, an NFS claim was provisioned, mounted in a pod, written, unmounted and deleted, a node was labelled with its host, and a LoadBalancer service got its address and kube-vip announced it. No RBD volume has run anywhere yet, and nothing has run on a real HCI or NFS datastore or on a SimpleVirt node network. Try them on a test cluster first.
  • The node network must reach the storage. RBD volumes need the Ceph monitors and OSDs on the hosts' storage network; NFS volumes need the NFS server. The install checks the monitors or the export from a control plane and leaves storage out when they do not answer.
  • One CSI controller. The controller runs on a node's network, so it runs as one replica. When its node fails, new claims wait until Kubernetes starts it on another node (about five minutes); mounted volumes are not affected.
  • Node images from this release only. The add-on images, the CSI sidecars and the rbd tool are in the node images of this release. A cluster whose nodes are older cannot pull them with no registry, and the install names those nodes. Control planes cannot be replaced from the cluster's page, so a cluster whose control planes run an older image cannot get the add-ons yet. Whether the rbd kernel module is in each published image's kernel has not been checked by a bake yet: the bake reports it, and the install refuses RBD on a node without it.
  • One node per RBD volume, without an attach step. There is no attach and detach: a node maps an RBD volume only when no other Ceph client has it open, and checks again once its mapping is in place. A pod moved off a node that is cut off from Kubernetes but still reaches Ceph waits until that node lets the volume go or is stopped; Kubernetes' forced detach after six minutes does not apply. A node that lost Ceph is fenced by the image's exclusive lock when another node writes. This has run against fakes only, not on a real Ceph cluster.
  • Hosts of an older release keep the nodes off their storage ports. Only hosts of this release understand the firewall's Kubernetes storage clients. An older host gets the rest of its firewall policy as before, and while its firewall enforces, nodes cannot reach the storage daemons on it. The install names such hosts.
  • Filesystem volumes only. No raw block volumes, no ReadWriteMany on RBD, no per-volume size or snapshots on NFS, no volume encryption, and no topology: every node must reach the same storage.
  • Snapshots stay on their source. An RBD volume with snapshots cannot be deleted until its VolumeSnapshots are.
  • Data outlives the cluster. Deleting a cluster revokes its Ceph client but leaves its images and NFS folders, which an administrator removes by hand.
  • LoadBalancer addresses use ARP. They must be on the node network, and a failover moves an address only when kube-vip on another node notices; there is no BGP. A pool widened in the cluster is read back when SimpleVirt rewrites protected, and at least every 30 minutes while a control plane answers. Until then SimpleVirt keeps new nodes, hosts, adapters and witnesses off only the pool it installed.
  • Node lifecycle is cautious. The cloud controller never deletes a Node, and taints a node out of service only when the node announced its own shutdown and you turned that on. A node that stops answering is left alone.
  • The Ceph key can blocklist any Ceph client. Breaking a lost node's exclusive lock needs the monitors' blocklist right, and Ceph cannot limit it to the cluster's own clients. Anyone who can read the cluster's key (its administrators, and privileged or host-path pods on its nodes) can blocklist the hosts' Ceph clients and freeze every HCI virtual machine's disk on those hosts until the VMs restart. Trust them with the whole SimpleVirt cluster's HCI storage, or give the cluster NFS storage.
  • The LoadBalancer gate is an admission policy in the cluster. A cluster administrator can remove it, and then any Service author can have kube-vip announce any address, a host's included; the next add-on install puts it back. spec.loadBalancerIP is refused on services kube-vip serves, so charts that set it need the annotation lb.simplevirt.com/address instead. A service that named an address before the policy was installed may be announced for the seconds before the cloud controller takes it off.
  • What is checked against a pool, and when. A pool is checked when it is set (create, Install add-ons). Adding a host by IP address, creating a service adapter and setting a witness are refused when the address is inside a pool. A host added by name is not resolved for this check, and an address that changes on its own (a host's IP, a DHCP lease, an adapter changed from the host's console) cannot be refused. Those reach the cluster's protected list after the next firewall pass, up to about 90 seconds later. In that time the cloud controller could still hand the address to a new service. Once protected arrives, a service that holds the address moves to another address of the pool, and the cluster's page names the conflict. A cluster whose control planes do not answer gets the list when they do.
  • The add-ons take over class-less LoadBalancer services. Install add-ons refuses when such services already have an address from something else, unless you choose to take them over. It cannot see another LoadBalancer implementation that serves no service yet. If one is installed and later serves a service without a class, both it and kube-vip would serve that service, and the admission policy refuses its status writes. Give your own implementation's services its loadBalancerClass.
  • Host labels need this release's Guest Tools. A node with older Guest Tools keeps its labels as they are. Only a node VM's Guest Tools are told the host's name.

What to do. Give the cluster a node network that reaches the storage, build it from a node image of this release, and test claims, snapshots and a LoadBalancer service on a test cluster before you rely on them.

73. VM resource controls: what is enforced, and what is later work

CPU shares and the CPU limit are the kernel's CPU weight and quota; the memory limit is the kernel's hard memory limit; a disk limit is the hypervisor's I/O throttle. Reservations are SimpleVirt's own promise. The edges:

  • A reservation is kept by placement, not by the kernel. SimpleVirt never powers on, moves or places a VM where its reservation does not fit, and counts reservations in HA admission control, but the host's kernel is not told to hold reserved memory back from reclaim or to give a reserved VM CPU ahead of others. Raise the VM's CPU shares to favour it under contention, and use Reserve all memory to lock all of its memory in place.
  • An HA restart may break a reservation as a last resort. The host then raises the reservations exceeded alarm. HA first prefers a survivor that keeps the reservation, then one that has the memory for the VM but cannot keep its reservation, and only then one that would be memory-overcommitted. An operator's recovery start (a typed takeover of a VM that runs elsewhere, or a power-on past a host confirmed powered off) does the same: when the host cannot keep the VM's reservation, the VM is still powered on, the start is audited, and the console shows a warning naming the reservation that is not kept. A plain power-on is still refused, but it leads there: when a copy of the VM runs on another host, the console offers the takeover; when the host that last ran the VM is unreachable, the refusal names that host and the console offers to confirm it is powered off. A recovery start never goes past another start or move of the same VM already under way (an HA restart, a live move, another power-on): that is refused until it ends. A power-on made on the host's own page may also break a reservation, which SimpleVirt-Command's check does not see, and a clone or a VM deployed from a template that starts at once (it keeps the source's reservation, and its start is not checked against it); the same alarm is raised.
  • A host older than this release reports no reservations and takes no resource controls: the console says so, and a VM with controls is not created there.
  • A live change libvirt refuses applies at the next power-on. The answer and the card say so; nothing restarts the VM for it.
  • The NFS default applies to new disks only. Disks that exist keep their limits; set them in each VM's Disk I/O limits. It is a setting on each host; the cluster page sets it on every member and says when members differ, and a host that joins later keeps its own value.
  • A disk limit on an HCI disk is the HCI disk QoS, set on the disk image; its current value is not read back. A disk moved onto HCI from another datastore keeps its own limit as well, on top of the QoS: the card shows it on that disk and Remove clears it (it cannot be set or changed there). A disk moved off HCI does not take its HCI disk QoS along; set its limit on the new datastore.
  • No resource pools. There is no grouping of VMs into a pool with shared shares, limits or reservations (cgroup partitions); that is later work.
  • Measured on nested hosts only. The controls were checked against libvirt on nested lab hosts; how closely a CPU limit, shares and a disk limit hold under load on real hardware has not been measured yet.

What to do. Reserve what a VM must have, limit what may not grow, and give NFS datastores a default disk limit before you put busy VMs on them.


74. VM resource controls: what the memory limit check can and cannot see

A memory limit is refused when it is below the VM's memory plus a margin, or, on a running VM, below what its process holds right now plus that margin. The margin is an estimate, and the check sees the VM only at the moment of the change:

  • The margin is SimpleVirt's estimate of what the VM's process holds outside the guest's memory: a sixteenth of the VM's memory (at least 256 MiB), 32 MiB per disk, 64 MiB per HCI disk, and the video memory. A VM whose emulated devices need more (many disks with large image caches, unusual devices) can still reach its limit under load, and the host then stops it. Give such a VM more headroom than the smallest limit the card shows.
  • The running VM's resident size is read just before the change. It can grow after that by up to the margin before the limit is reached; a guest cannot grow past its own memory.
  • Raising or keeping a limit the VM runs with is never refused, even when the VM already holds more than the new margin would allow: it tightens nothing. The Resource controls card sends only the controls you changed, so changing the CPU shares never judges the memory limit again.
  • Adding a disk to a VM with a memory limit is refused while the limit would no longer leave the margin with the new disk counted (32 MiB more, 64 MiB for an HCI disk). Raise or remove the limit first. A VM that gained disks before this check keeps its limit; the card's smallest limit then shows a higher figure than the one it has, and raising it to that figure is advised. A clone or a VM deployed from a template takes its source's memory limit, and is refused when that limit is too low for the copy's disks on the destination datastore (an NFS source copied to HCI, whose disks need more): raise or remove the source's limit, or copy to another datastore. The Windows virtio-driver probe (Optimize) attaches a scratch disk for a while, and is not run on a VM whose limit has no room for one more disk.
  • A VM whose memory is locked takes no memory limit (Reserve all memory, or a PCI passthrough device), and locking the memory of a VM that has one is refused. A USB device passed through does not lock memory and does not block a limit. A limit set outside SimpleVirt on a locked VM is shown and can be removed.
  • A very low CPU limit or disk limit can still look like a hang. The CPU limit is at least a tenth of a host CPU per vCPU, and a disk limit at least 16 IOPS and 1 MB/s, but a guest held near both floors at once can answer its guest agent slowly enough that the opt-in VM heartbeat monitor resets it. Do not combine heartbeat monitoring with limits near the floors.
  • CPU shares across hosts of different cgroup kinds are written back in the new host's terms by its care loop within five minutes of the VM arriving; until then the VM keeps the weight in the other kind's terms. A VM with a migration or block job running waits for the next pass. A shares value set outside SimpleVirt on a VM without SimpleVirt's record is left alone.
  • The Workload Distributor makes one move per cluster at a time; its reservation check and booking happen in one step when the move starts. An operator's power-on and live move, and a "create and start" of a VM with a reservation, are booked the same way, so two of them at the same moment cannot both take the last of a host's reservable CPU or memory. A power-on made on the host's own page is not booked (§73). The cluster-wide HA admission check of CPU reservations reads the hosts' last report and is not booked: two reserved power-ons at the same moment on different hosts can together pass it, and admission then reports the shortfall.
  • The CPU limit caps the whole VM process, not only its vCPUs: the threads that copy a running VM's memory during a live move, and encrypt it, run inside the same limit. A VM limited near the floor moves far more slowly, so an evacuation, maintenance or rolling update drain of such a VM can take much longer, or fail when a move runs past its time limits. Raise or remove the CPU limit of such a VM before maintenance.
  • Checked with fakes and on nested hosts only. The resident-size check, the margin and the CPU weight write-back are covered by tests against a simulated libvirt; how much a real VM's process holds beyond the margin under load, and a live move between hosts of different cgroup kinds, have not been measured on real hardware yet.

What to do. Use the smallest limit the card shows as a floor, not a target: leave room above it for a VM under heavy disk or display load.

75. Central log forwarding: what it covers and what needs a real receiver

Administration → Notifications → Log forwarding and audit sends the logs of the controller and every host to one syslog receiver as RFC 5424 messages over TLS (RFC 5425 octet-counted framing; plain TCP is offered for a receiver on a trusted network that cannot do TLS). The receiver's certificate must be signed by the authority you paste (or a system-trusted one) and name the receiver. Forwarding is off until you turn it on.

What each machine sends, each source selectable: the controller sends simplevirt-command's log, its audit trail and its kernel log; a host sends simplevirtd's log, the cluster services (simplevirt-clusterd), libvirt, the QEMU log of every VM, the kernel, Ceph and its audit trail. MSGID is the source name, so a receiver can route on it; the kernel uses facility kern, the audit trail authpriv, the rest daemon. Audit records are sent byte-for-byte, so a forwarded copy verifies against the chain (§9); every other line passes the secret scrubber first.

How delivery behaves:

  • Each machine keeps the settings. Command pushes them to every host within a minute of a change (and checks every minute after), so forwarding goes on while Command is down and after a restart. A host held after a controller restore keeps what it had until the hold is released.
  • It starts at "now". Turning forwarding on does not send the backlog already in the logs.
  • A receiver that is down loses nothing until the queue reaches its size or free-space limit. Lines go into a queue on the machine's disk (256 MiB by default, 16 to 4,096) before they are sent, and the read positions survive a restart. The oldest lines are dropped past the queue's size, when the filesystem holding it falls below 512 MiB or 15% free, or when the queue would take more than a quarter of the space it would otherwise leave free. On a host that filesystem also holds the Ceph monitor's store, which stops itself under 5% free; the 15% floor keeps a fleet-wide receiver outage, which grows every host's queue at once, well clear of that. On a filesystem that already has less than 15% free (a controller that keeps its backups in its data directory, or a host with a local datastore on the system disk), the queue holds little more than the segment being written, at most 16 MiB, so an outage there loses nearly everything past that even though the queue is far below its size. The receiver then gets a message saying how many lines were dropped, the machine's row says so, and Log forwarding failing is raised once a machine has failed for 10 minutes.
  • Delivery is best effort over TCP. Syslog over TLS has no acknowledgement from the receiver: a line counts as sent once it is written to the connection. A receiver that crashes, or a connection that goes silent, loses the lines still in flight (up to the connections' socket buffers, typically a few MiB); a write that fails partway is sent again after the reconnect, so the receiver can also see a batch twice. Keep the receiver's own storage durable, and compare the audit trail against its chain (§9) when completeness matters.
  • The queue and the read positions belong to the machine. They are left out of controller backups and of the standby's copy of the controller's state; the forwarding settings are carried. A standby that takes over, or a controller restored from a backup, starts sending its own logs from "now": the restore, and a standby installing the copied state when it takes over, also drop the saved position of the audit trail, whose files they replace, so the audit records already in those files are not sent again. Lines already in this machine's queue at the restore stay there and are sent after the restart.
  • Lines the journal no longer holds are not sent. Every appliance keeps its journal on disk, capped at 1 GiB with the oldest entries removed first, so unsent lines survive a reboot. If forwarding falls further behind than the journal still holds (a long receiver outage on a busy machine), or a machine's journal is in memory and it restarts before its lines are sent, those lines of the cluster services, libvirt, Ceph or the kernel are lost, and the receiver is told the journal position was lost. The simplevirtd log, the QEMU logs and the audit trail are files and survive.
  • The controller's kernel log needs the controller's service to read the journal, which the appliance image of this release grants; an older controller image shows the kernel source as unreadable on the controller's row.
  • No client certificate. The receiver authenticates to the machines; the machines do not present a certificate to the receiver. Restrict the receiver to your management networks.

What still needs a real run. Delivery, the queue, retry, the gap message and TLS verification are tested against an in-process TLS receiver. They have not been run against a production syslog-over-TLS receiver, under a fleet's real log volume, or through a long receiver outage on real hardware.

76. Metrics export: what the pages cover and what is not done yet

Every host serves GET /metrics and SimpleVirt-Command serves GET /metrics and GET /metrics/hci/{cluster}, in the OpenMetrics text format (see Monitoring (in the appliance's documentation) for the metric names, the sample scrape configuration and the dashboards). What is worth knowing:

  • Every page needs a credential. A host page takes the fleet scrape token (Administration → Monitoring), a token minted on that host, or a host sign-in; the controller's pages take the fleet token, or an API token or session holding the "Read the metrics pages" privilege. A host that is down when the token is created, rotated or revoked is told on the first poll after it is back; until then it still accepts the old token (or, after a revoke, the revoked one). A controller that has just started, or a standby that has taken over, tells every host the current state once, so a revoke made while a host was down still reaches it. Removing a host from SimpleVirt-Command, or unpairing it, clears the fleet token on it. A host on an older release has no metrics page.
  • The storage cluster's own metrics module has no authentication, so it listens on each manager host's loopback address only (port 9283 is never reachable from the network, in observe mode or enforce mode); SimpleVirt-Command reads it through the hosts' agent API for /metrics/hci/{cluster}. A host on an older release has no relay for it, so the page needs the host running the active manager to be updated.
  • Turning the storage metrics module on restarts the storage manager once. The controller's storage guardian enables the module on existing HCI clusters on its next pass (it re-runs the manager setup). Changing the set of enabled modules makes the active storage manager restart itself; a standby manager takes over where there is one. VM disk I/O does not go through the manager and is not affected; the storage cluster's status, balancer and placement-group reports pause for that moment. A cluster whose module an earlier build left listening on all addresses is moved to loopback with one manager failover, also once; a guardian pass that cannot read the module's address (slow monitors) sets it again but does not fail the manager over. A scraper you had pointed at <host>:9283 yourself stops working after the upgrade; scrape /metrics/hci/{cluster} with the fleet token instead.
  • The storage page skips hosts that are down. SimpleVirt-Command asks the host that answered last first, skips members it currently sees as unreachable and gives each host three seconds. A host that has just gone down and is not yet marked unreachable can still cost a scrape those three seconds.
  • Figures are as fresh as the samplers. A host page is built from the five-second samplers' caches and kept for five seconds; scraping faster returns the same page. VM disk and network figures on a host page are rates over the last sample, not cumulative counters; host adapter and disk figures are the kernel's cumulative counters.
  • Counters reset when a service restarts. The controller's task, HA-event and notification counters count from the controller's start, as cumulative counters do.
  • No push. SimpleVirt does not send metrics anywhere (OTLP push is not implemented); a scraper pulls them.
  • A VM statistics read that stops answering skips samples. The one call that reads every running VM's CPU, memory, vCPU and adapter counters is given one sample interval (five seconds); past that, the sample is skipped and the last readings stay (their time shows their age), and no further call is made until the stuck one returns. While it is stuck, a separate time-limited listing of the running VMs still drops the readings of VMs that stopped or moved away, and the warning is logged once a minute. Disk counters are read per disk with calls that read the VM engine's own counters and never touch the disk's storage; they still go through the VM process, so a VM process that stops answering (stuck flushing to a hard-mounted datastore that went dark) would stop them. Each VM's disk read is therefore given two seconds: past that the VM keeps its last reading, the other VMs are sampled, and that VM is not asked again until its read returns. A VM held that way shows an ageing sample time, not fresh figures.
  • A VM busy in an operation reports what it can. While a VM is in a migration, snapshot or other job, the statistics call returns without its consumed-memory figure; the last figure is kept for that sample rather than replaced by the VM's whole allocation.
  • Not yet run on real hardware. The bulk VM statistics read (including its behaviour inside the host service's sandbox), the host disk and NFS counters and the storage manager's metrics module (that the module and its web server ship in the storage image, that it binds to loopback, and that a standby manager answers with an empty page) have been exercised against fakes, canned records and canned kernel files; their first run on a real HCI cluster is still to come.

77. Guest customization and sealed templates: what they rely on

A clone or a deploy from a template can carry a guest customization (host name, addresses, DNS, SSH keys, administrator password, and on Linux a new machine identity), and Seal as template… makes a generalized template copy of a stopped VM. See Guest customization.

  • The guest has to read the seed. A Linux template needs cloud-init (with its NoCloud datasource, as every mainstream cloud image has). A Windows template needs to have been generalized with sysprep (it then reads autounattend.xml from the seed disc) or to run cloudbase-init (config drive). A template with neither boots as an exact copy and nothing on the seed is applied; SimpleVirt cannot tell from outside the guest whether it was.
  • cloud-init writes the copy's network configuration. A customization is a new instance to cloud-init, and cloud-init writes the network configuration of every new instance. The seed carries one entry for each customized adapter, matched by MAC address; with no adapters in the spec it carries cloud-init's own fallback (DHCP on the first adapter). Either way it replaces what an earlier run of cloud-init wrote (50-cloud-init.yaml and its equivalents), so a template whose static addressing came from cloud-init does not keep it: list the adapters in the spec. Network files the template got some other way (written by hand, an ifcfg file) stay as well, and can conflict with the seed's; use DHCP in templates you customize, or seal them first.
  • DHCP identity on the first boot. The seed's DHCP adapters carry dhcp-identifier: mac, so the copy asks for a lease with its own MAC address rather than an identity made from the template's machine-id (the new machine-id is made later in that boot). netplan and networkd honour it; another network renderer may ignore it, and then an unsealed copy can be handed the lease of its running source until the restart at the end of its first boot. Seal templates, or give the copy a static address, where that matters.
  • After customization, cloud-init reads only the SimpleVirt seed. The customization writes /etc/cloud/cloud.cfg.d/99-simplevirt-customization.cfg (datasource_list: [ NoCloud ]), so a later boot without the seed does not reset the host name or keys. A guest that also needs another cloud-init datasource must remove that file.
  • Linux passwords on older cloud-init. The password is set in the forms every cloud-init release reads (passwd on the user, and chpasswd's list beside its users). The list form is left out for a hash scheme an older cloud-init does not recognize (yescrypt $y$, bcrypt $2b$, given through the API), so such a hash needs cloud-init 22.2 or later on an existing login. SimpleVirt-Command itself always hashes with sha512-crypt ($6$).
  • Linux identity reset restarts the guest once. With reset_identity (the default) the guest restarts at the end of its first boot so every service starts with the new machine-id and DHCP identity.
  • The seed disc is taken away by time, not by a signal from the guest. The host removes it from the VM once the VM has been seen running for 10 minutes (Linux) or 45 minutes (Windows), or has run at least 3 (15) minutes and stopped. A guest whose first boot takes longer than that (a very slow Windows specialize pass) loses the disc before it is read. Until it is taken away, a Windows Administrator or domain-join password is readable on the disc from inside the guest. A VM that is never started keeps its seed until it is. If the disc cannot be ejected from the running VM, it stays until the VM next stops, and is gone from its saved definition already.
  • The seed volume is deleted 30 minutes after the disc is removed, by the host running the VM. The wait lets the copies of the VM's definition kept elsewhere (SimpleVirt-Command's HA definition cache, a recovery plan) catch up. A host that has the VM defined but does not run it never deletes the volume, so a VM that stops right after its first boot keeps its seed volume until it next runs (deleting the VM with its disks deletes it too). A definition that still names a seed whose volume is gone never stops the VM from starting: an HA restart drops the disc from the definition it is given, every start drops it from the saved definition first (this covers a revert to a snapshot taken while the disc was attached), and on a file datastore the disc is also marked optional for libvirt. The exception is a revert to a memory snapshot taken in that window: the saved memory image expects the disc, so once the seed volume is gone that revert can fail (it does on HCI storage); revert to a disk-only snapshot, or take snapshots after the first boot.
  • On HCI storage the seed is checked with the Ceph cluster. Whether an rbd seed image is gone is asked of Ceph itself, not of a libvirt pool on the host, so a host with no pool for that Ceph pool, or with the pool briefly inactive, still decides correctly. When the cluster does not answer (within 15 seconds), the seed is kept in the definition, and the start or HA restart then needs the image to be there: on rbd libvirt does not allow the disc to be optional.
  • No HA restart on an armed cluster until the seed is gone. A VM whose definition still carries the customization record (the seed is attached, or detached and not yet deleted: about 40 minutes for Linux and 75 for Windows after the first start) gets no recovery manifest, and its HA protection card says so and who would restart it. The manifest cannot carry the seed, so a recovery from it would lose the first boot's customization and leave the seed volume behind. On a cluster whose cluster services are armed (a cluster created with this release is armed automatically), the hosts restart only VMs that have a manifest, and SimpleVirt-Command stands down for that cluster, so nothing restarts such a VM if its host fails in that time: it stays down until its host is back and it is started. On a cluster that is not armed, SimpleVirt-Command HA restarts it as usual, from its full definition. The window can last longer: the seed is removed and deleted only while the VM runs on its host, so a VM stopped during its first boot keeps the record until it has run long enough, and a seed volume that cannot be deleted (the datastore refuses, or the host cannot prove it still owns the VM) is retried on every pass, logged on the host each time, and the VM stays without a manifest until the delete succeeds. A copy being sealed as a template is never given a manifest either. While a clone or a deploy is still making a VM, the host does not stamp its disks' datastore identities in the background; the clone stamps them itself after the customization record is written, and a seal only once the copy is a template, so no copy is briefly protectable before its record appears.
  • HA during a rolling upgrade. A host that does not have this release yet does not drop a seed whose volume is gone. If SimpleVirt-Command restarts a customized VM from a definition cached before the seed was deleted (it was out of touch for more than 30 minutes), such a host refuses it for a missing disk and the restart is tried on another host; upgrade the hosts before relying on HA for customized VMs created on them.
  • The Windows answer file is written for 64-bit Windows, sets OOBE to skip its pages, and sets the language and region (windows.locale, default en-US) for input, system, user and display language. A template in another language must be given its own locale, because a display language the template does not have installed is not added by naming it. The built-in Administrator gets the password; a client edition template must already allow that account.
  • Windows computer names from long VM names. With no host name in the spec or the dialog, a VM name longer than 15 characters gives a computer name made from its first characters and four characters derived from the VM's id, so two alike-named VMs do not share a computer account on a domain join. Give the VM a host name when the computer name must be a particular one.
  • Seal as template needs the guest agent (SimpleVirt Guest Tools or qemu-guest-agent) in the VM, and runs inside the guest: it starts a copy with its network disconnected, generalizes it and shuts it down. No offline disk editing is done on the host. The host's heavy-copy slot is given back once the disks are copied, so other clones, template deploys (Kubernetes node provisioning included) and conversions do not wait for the seal. While the copy is being sealed, start, stop, restart, suspend, migrate and delete of the copy are refused. If the host service restarts during a seal, the half-sealed copy (network cut, not a template) is stopped and deleted with its disks by the host on its next care pass, and the task ends with the host restart; seal the VM again.
  • Who can change specs. Using a spec needs only vm.create; creating, changing and deleting the shared specs needs customization.manage (Administrator; not Operator). A saved domain-join password is kept on an edit only while the domain and the join account stay the same. Each change is audited with the settings it changed, never a password.
  • A Linux or Windows password is never stored in clear by SimpleVirt-Command: a Linux one is kept as its sha512-crypt hash, a Windows one sealed with the controller's secret key (in clear if the controller has no key configured, as for its other secrets).
  • Not yet run on real hardware. The seed contents (meta-data, user-data, version 2 network-config, autounattend.xml, the config drive), the seed disc image, the detach and the delayed delete after the first boot, the start-without-a-gone-seed paths and the seal sequence are tested against fakes, and the spec store against a real Postgres. A first boot of a real Linux clone (including a Debian 11 guest with cloud-init 20.4), a sysprepped Windows Server 2022 template reading the answer file without stopping at an OOBE page (including a domain join), a cloudbase-init template, an HA restart of a customized VM from a stale definition after its seed was deleted, the Ceph check of an rbd seed against a real cluster, and a seal of real Linux and Windows guests have not been run on real hosts yet.

78. Hardware qualification and the day-2 runbooks: what has run on real hardware

SimpleVirt has no hardware compatibility list yet. Hardware guidance (in the appliance's documentation) says what hardware is expected to work and how to lay out SimpleVirt HCI disks and networks, and Runbooks (in the appliance's documentation) give the day-2 procedures step by step. What is not covered:

  • No platform has been qualified. SimpleVirt has run on a small number of test servers at one site and on nested clusters. No server model, network adapter, storage controller or drive has been through a qualification run (install, teaming, storage disks, BMC fence, migration, HA drill), so none is named as supported by model. The checks in Qualify a platform yourself (in the appliance's documentation) are the ones such a run would make.
  • A RAID controller's volume is offered like a drive. The disk picker cannot tell a RAID volume, or a drive behind a write-back cache, from a plain local disk. Setting the controller to pass-through is the operator's choice.
  • Cluster-services certificates set up outside SimpleVirt-Command are not renewed online. SimpleVirt-Command renews the certificates of the cluster services it set up, in place (section 85, Renew certificates (in the appliance's documentation)). Cluster services set up with simplevirt-clusterd provision are renewed by re-issuing with it, or by taking the host out of the cluster services and adding it back. For a SimpleVirt HCI storage member that means decommissioning it first, which moves all its data off and back. On a cluster with exactly as many storage hosts as copies (three hosts with three copies, for example) no member can be decommissioned, so that way is closed until one more storage host is added (Fewer storage hosts than copies (in the appliance's documentation)). A host whose certificate has expired cannot start its cluster service.
  • Disks that held a removed host's storage have no in-product erase. They are not offered while they carry the old partitions; erase them on the host, or use blank drives.
  • Third-party security tracking stops at the Debian tracker. Every bake checks each image's packages against the Debian security tracker and fails an image behind a published fix (Security policy (in the appliance's documentation)). The Kubernetes node images built on Ubuntu are not covered by it. Software the images carry outside Debian packages is not in that check: the SimpleVirt binaries are scanned separately for known Go vulnerabilities, and upstream binaries and container images an image carries are not scanned. The dedicated security address and its encryption key are still to be published in the security policy; until then reports go to support@simple-virt.com.
  • The runbooks have not all run end to end on real servers. Replacing a failed HCI disk, decommissioning and re-adding a host, renewing cluster-services certificates (online, or by re-adding a host), restoring SimpleVirt-Command onto a fresh appliance and riding out an NFS outage are built from flows exercised by automated tests, nested clusters and the test servers; each still needs a full run on real hardware.

What to do. Run the qualification checks on the hardware you buy before production, use pass-through controllers for SimpleVirt HCI, and rehearse the runbooks you will need on a test cluster.


79. Licence acceptance and install media: what the installer does not do yet

The licence agreement (version 1.0; /usr/share/doc/simplevirt/LICENSE on every installed host and controller) is accepted by installing or using SimpleVirt, as its first section says. The product does not yet ask for that acceptance or keep a record of it:

  • No licence screen in the installer. Neither the interactive installer nor an unattended answer file shows the agreement or asks for an explicit acceptance; there is no accept setting in the answer file.
  • No acceptance record at first sign-in. SimpleVirt-Command and the hosts do not show the agreement on first sign-in, and record no date or user that accepted it.
  • No self-check of the install media. The installer does not verify the ISO or USB stick it boots from before it writes the system disk. A damaged copy shows up as a failed install or a failed first boot.

What to do. Read the agreement before you install. If an install fails part-way, download the image again and write a fresh copy.


80. Configuration maximums: what is measured and what is not

Configuration maximums (in the appliance's documentation) publishes how large a fleet is supported to be. Real hardware has run three hosts. Every figure above that comes from the scale harness, which runs SimpleVirt-Command against simulated hosts, or from design:

  • Measured against simulated hosts only. 64 hosts and 5,120 VMs met every service level, but the simulated hosts run no VMs, storage or cluster services, and the harness keeps fleet state in the file store rather than the bundled PostgreSQL. Database load, a real host's agent at 320 VMs and an HA failover at that size are not measured.
  • Cluster size is designed. 16 hosts per cluster is not measured with real cluster services: a quorum of 16 voting members, and SimpleVirt HCI storage on more than three hosts, have not run.
  • Soft maximums warn, they do not refuse. Past one, the add or join succeeds and the controller.scale.maximum_exceeded alarm says so. Datastores per host are stated only; nothing counts them.
  • The snapshot maximum counts hand-taken snapshots only. A hand-taken snapshot past 128 asks first (Take anyway in the dialog; Take it anyway, then revert in a revert that keeps the current state; a Take anyway list in a bulk snapshot; exceed_maximum in the API), so the maximum is not a hard bound. The revert's own before-revert-* snapshots count as hand-taken, so frequent reverts that keep the current state reach it sooner. Snapshots a schedule takes do not count and are never refused: they are bounded by the schedule's own retention, keep last at most 100, or at most 1,000 each of hourly, daily and weekly, so a VM with such a schedule can keep up to 3,000 scheduled snapshots, a size not measured. A VM that already kept more than 128 hand-taken snapshots before this release keeps them; its next hand-taken one asks first.
  • The scale alarm counts what it can read. VMs on a host that is offline or not answering are left out until it answers again, so during an outage the VM figures read low rather than counting restarted VMs twice. The alarm clears only below 95% of a maximum it went past. A raised alarm for a VM figure is held, not cleared, while any host has not answered since SimpleVirt-Command started; a host that stays off after a restart keeps such an alarm raised until it answers or is removed (the readout's held list says which figure holds it and why).
  • Some calls are not simulated. The simulated hosts answer what the inventory poll, the HA pass and VM power-on make (the cluster-services status among them, as a healthy quorate cluster under SimpleVirt-Command's authority), not migrations, snapshots, console or storage operations; their throughput at scale is not measured. Controller CPU is not measured: the simulated hosts share its process.
  • Controller sizing above 16 hosts is designed. The 4 vCPU and 8 GiB recommendation for up to 64 hosts is not measured with PostgreSQL. The standalone simulator (simplevirt-fakehost) lets a real controller with PostgreSQL be run against 64 simulated hosts, but no such run is published.

What to do. Stay within the published maximums for a supported fleet. Above three hosts, treat the cluster and HCI figures as designed until a hardware run is published, and keep an eye on the alarm list.

81. Shared-LUN datastores (Tech Preview): what they do, and what they do not do yet

A shared-LUN datastore is made from one or more blank LUNs of an iSCSI or Fibre Channel datastore: the LUNs become one shared volume group, locked with lvmlockd and sanlock, and every VM disk on it is a volume in that group (Shared-LUN datastores). It is a Tech Preview (support status (in the appliance's documentation)): everything below is built and covered by automated tests that simulate the hosts' LVM, lock daemon and storage, and none of it has run against a real iSCSI target or Fibre Channel array yet.

  • The fence is the one every SAN VM has. sanlock runs without the host watchdog (that device belongs to the NFS lease fence's deadman), so a host that loses its lock lease is not reset by it. HA restarts a VM on a shared-LUN datastore only once its failed host is proven powered off (a BMC read-back or your confirmation, as in §32), and SimpleVirt-Command never powers one on while another host that may run it cannot be read, whether or not the cluster has HA turned on (it reads the VM's disks from its host before every power-on, and refuses the power-on when that host cannot say). The volume's exclusive lock is a second line under that rule, not the fence: it keeps a host that is still up and holds a VM's disks from losing them to another start.
  • A VM on it does not start by itself when its host boots; start it from SimpleVirt-Command, as for a whole-LUN VM (§32).
  • An HA restart waits for the failed host's lock lease. After the power-off proof, the survivor waits up to 90 seconds in all (one wait for every disk of the VM, not one per disk) for the failed host's lock leases to time out before it can open the disks, and everything a start does for its shared-LUN disks stays inside 110 seconds, so SimpleVirt-Command always hears the host's own answer before it stops waiting for the power-on. The lease has usually run out while HA was proving the host off; when it has not, that start fails with the reason ("active on another host"), as any failed HA restart does; if HA has not started the VM by then, start it a minute later. These lock requests run in a queue of their own on each host, so they never wait behind a disk being zeroed or an iSCSI login.
  • A VM stopped on one host and started on another. The host where a VM stops lets go of its volumes within a few seconds of the stop (or of the VM being undefined there, as a cold move does), and a start, snapshot, revert, grow or copy on another host waits for that. If the host agent missed the stop (it was restarting at that moment), it lets go on its reconcile passes, one to two minutes later; a start on another host in that window waits up to 90 seconds and then fails with the reason, and works a minute later.
  • Every new disk is zeroed before a VM can read it, and that takes time. A volume's space may have held a deleted disk, so every byte of a new disk (and of the space a disk grows by) is zeroed first. On an array with write-zeroes offload that is quick; without it, it runs at the array's write speed, minutes per hundred GiB. It runs apart from the request: a create, add-disk or grow answers within about a minute, and when the zeroing is not done by then the answer says so and it goes on in the background, marked on the volume itself. Until it is done, the VM does not start on any host (a start finishes the last 30 seconds of it, else says how far it is), a new disk is not plugged into a running VM (that happens when the zeroing ends), and the disk is not snapshotted, copied or moved live. A zeroing that stops (the host agent restarted, the host failed) goes on from where it was recorded, on whichever member host takes the volume's lock first, within a minute. When the host agent restarted in the middle, a running VM sees a disk it was adding only from its next power-on. A deleted disk's data stays in the volume group's free space until that space is zeroed for a new disk; to destroy it now, remove the datastore and erase its LUNs on the array.
  • A disk grows only while its VM is shut down. The new space can only be added to the volume before it is zeroed, and the hypervisor reads a disk's size again whenever the guest asks (a reboot inside the guest, a rescan), so a running guest could read the grown space while it still holds a deleted disk's data. A grow of a running VM's disk is refused with that reason; shut the VM down, grow the disk and start it again (the start waits for the zeroing as above). A grow and a start of the same VM on one host refuse each other while either is under way ("try again in a moment"), so the VM cannot start between the grow's check that it is shut down and the grow itself.
  • An HA restart waits for a disk still being zeroed. When a VM's host fails while one of its disks (one just added to the running VM) is still being zeroed, the restart on a survivor waits out the failed host's lock lease and goes on with the zeroing there, but the VM starts only once it is done: on an array without write-zeroes offload, the VM can stay down for as long as the zeroing takes. The HA tab shows the VM as not restarted because a disk "is still being zeroed", with how far it is, and HA keeps trying (this does not count toward its give-up limit), so the VM starts on its own once the zeroing ends.
  • A stale zeroing mark is never zeroed over a disk in use. Every change of a volume's zeroing mark replaces whatever marks the volume carries, and its removal is confirmed by a read, so an answer lost on the way back from the host's storage helper cannot leave a mark behind. A volume a running VM on the host has open is never zeroed: its mark is cleared instead. A zeroing is started from a mark only once the host holds the volume's exclusive lock, and from the mark read again after the lock was taken: a mark read before (a zeroing that finished meanwhile, on this host or on another that then ran the VM and wrote to the disk) is never acted on.
  • Leftover volumes are listed, never deleted on their own. A volume nothing uses (a create cut off between making its volume and defining its VM, a disk removal whose volume LVM kept because another host had it active, which the removal then says) takes space until it is deleted. The datastore's page lists a disk volume as left over once every host was read and no member names it in a VM, holds it for an operation or has it active, and it is over 15 minutes old; it is deleted only when you ask, after every host is read again. The members are the recorded ones and every host that reports the datastore itself (a SimpleVirt-Command restored from an older backup may not have recorded one), and while any host cannot be read nothing is listed. A member host deleted from SimpleVirt-Command afterwards shows as "no longer registered" and keeps the list empty until Remove from LUN… drops it from the datastore (nothing is asked of it; its lock id stays reserved). Snapshot volumes are never listed: a snapshot a failed operation left is deleted by its name from the VM's snapshots.
  • A delete reads every host first. Deleting a VM with its disks, or removing a disk with its volume, through SimpleVirt-Command is refused while another host's VM (running or not: a stale copy left after a failover or a cold move, or the live copy) names one of its shared-LUN volumes, another host has it active, or a host cannot be read. The host's own console checks only that host's definitions (and LVM refuses a volume active elsewhere); delete shared-LUN VMs from SimpleVirt-Command.
  • Snapshots reserve space and can overflow. A snapshot of a disk is an LVM copy-on-write snapshot that reserves a quarter of the disk (at least 1 GiB) for the data that changes while it is kept. Once that space fills, the snapshot is lost (the disk is not affected): the snapshot list marks it invalid, and san.shared.snapshot is raised once a snapshot is 80% full. A snapshot holds no memory (disk only), and a running VM's is application-consistent only when its guest agent freezes the file systems.
  • Reverting consumes the snapshot. A revert, with the VM shut down, merges the snapshot back into the disk: the disk reads as it was at once, and the snapshot is gone. Take a new one to keep that point.
  • A VM whose disks have snapshots does not move live. A copy-on-write snapshot can only be active on one host, so the move's shared lock is refused with the reason; delete or revert the snapshots first, or move the VM powered off. A disk with snapshots cannot grow either.
  • Copies stay on the same datastore. A clone or a deploy from a template copies every disk into new volumes of the same shared-LUN datastore, with the source shut down. Copying to another datastore, guest customization, sealing, cloud-init and OVF seeds, a create from a content-library image, imported disks and moving a disk onto or off the datastore are not available yet.
  • A VM's disks are all on SAN storage or none. A file, NFS or HCI disk may not sit next to a SAN disk. Shared-LUN volumes and whole LUNs may be mixed in one VM (they share the fence), but such a mixed VM cannot be cloned or made into a template, and HA does not restart it (HA reads every SAN disk of a VM against one SAN datastore); keep a VM's disks on one kind to have both.
  • A failed hand-over leaves a shared lock. If a live migration's final step (the source lets go, the destination takes the lock exclusively) fails, the VM keeps running on the destination with its disks locked shared, and the task says so; power the VM off and on once to take the exclusive lock again.
  • Host lock ids are kept by SimpleVirt-Command. Each member host gets a sanlock lock id that is unique across the hosts SimpleVirt-Command knows and never changes while the host is a member. No new id is given out while a host that may hold one cannot be read. Two controllers managing hosts on the same LUNs could hand out the same id: give the LUNs of a shared-LUN datastore to one controller's hosts only.
  • Removing it leaves the LUNs' old contents. Removal is refused while any disk is on the datastore; it wipes the LVM labels, and the LUNs' claims go. The rest of each LUN keeps what it held, so the blank check may refuse a LUN for a whole-LUN disk until it is erased.
  • Hosts updated without their system image cannot join. The lock daemons ship in this release's host image; a host whose SimpleVirt service was updated by binary alone answers that its storage helper lacks the request.
  • sanlock's own watchdog daemon stays off. Starting sanlock would also start its watchdog daemon, which would take the host watchdog from the NFS lease fence's deadman. The host image masks it; a host where it is not masked has it masked before sanlock first starts, a host where it cannot be masked is refused, and if it ever comes up with sanlock it is stopped at once and the datastore refused.
  • One global lock across shared-LUN datastores. The lock manager keeps one "global lock" in one of the shared volume groups, for making and removing them. A new shared-LUN datastore is made only once every other one's lock runs on the host making it, so it gets none of its own; when a host still finds two (two datastores made on different hosts), it turns off the duplicate in the one whose name sorts last. Removing the datastore that holds it moves it to another one started on that host; when there is none, the removal says to run lvmlockctl --gl-enable on another shared-LUN datastore's volume group on one of its hosts before making or removing another.
  • Not yet run against a real target. Everything above is checked with simulated LVM, lock daemons and storage, and the hosts' request queue with a real shell. A lab test that drives the host's real LVM, lvmlockd and sanlock on loop devices exists; it has not been run yet, and it uses plain loop devices, not a loop-backed iSCSI target, so it proves nothing about iSCSI paths. A run against a real iSCSI target and a Fibre Channel fabric is still owed: create the datastore on two or three hosts; a lock lease timing out under a powered-off host and the HA restart after it; a live migration under load; snapshots filling up; a path failure under a running VM; the lock daemons and the NFS lease fence's watchdog running together on one host (and the watchdog daemon staying masked through an in-place update); the exact messages the lock manager prints for a lock held by another host, a lockspace still starting and a missing volume group, and the lockspace fields it reports (create_done, create_fail, sanlock_gl_enabled), which SimpleVirt reads; two datastores made on different hosts and then joined by one (the duplicate global lock), and removing the datastore that holds the global lock; zeroing a large disk on an array without write-zeroes offload, with the host agent restarted in the middle; an HA restart while a disk added to the VM is still being zeroed; a grow refused on a running VM and done shut down; and a VM shut down on one host and started on another at once.

82. Importing VMs from other platforms: what the conversion covers

An OVA import and a disk import install the virtio drivers in the guest (user guide). What that does not cover yet:

  • Not yet run on real exports. The conversion has been built and tested against simulated conversions and real disk images of every supported format, not yet against real exported Linux and Windows VMs. Until it has, check an imported VM's first boot before you rely on it. Still to run on real exports: Linux guests from SCSI and IDE (including a RHEL-family guest), Windows 10, 11 and Server 2016, 2019, 2022 and 2025; that the conversion's OOM score can be raised under the host service's sandbox; and the licence to redistribute the virtio driver set.
  • SATA does not always boot. When the drivers cannot be installed, the disks land on SATA. A guest installed on SCSI or IDE may have no SATA driver at boot either: a RHEL, Rocky or Alma Linux guest (its initramfs is built host-only, with only its old controller's drivers) stops at "cannot find the root device", and a Windows guest whose SATA driver is switched off at boot stops with INACCESSIBLE_BOOT_DEVICE. The template keeps that bus. To recover a Linux VM, boot its rescue entry and run dracut -f --regenerate-all; to avoid it, run dracut -f --no-hostonly (Linux) or install Guest Tools (Windows) in the source VM before exporting it.
  • A busy host refuses the import. SimpleVirt-Command sends an import to the host with the most free memory above 3 GiB among those that mount the library's datastore; you cannot choose the host. When no host has 3 GiB free, or the chosen host has no room for the conversion's staging or cache, the import is refused and nothing is imported. That includes a guest whose disks are all on SATA or whose controller the OVA does not state: every guest not entirely on virtio needs the conversion. Retry once a host has the room (move or stop a VM). Too little memory is refused when the upload starts; no room for staging or cache, or a write that did not finish in 15 minutes, is refused only after the upload, which then has to be sent again. A cluster whose every host stays below 3 GiB free can only import guests already on virtio.
  • Windows needs the service helper. Installing drivers in a Windows guest needs the rhsrvany helper on the host, which the host image carries. A host without it (an image build that could not fetch it logs so) imports Windows guests on SATA and says why. Linux imports are not affected.
  • Windows versions. Drivers are installed for Windows 10, 11 and Server 2016 to 2022 (the Guest Tools driver set). The conversion tool of this release (virt-v2v 2.2 with libguestfs 1.48) picks the driver build by the version it identifies: it takes Windows 11 for Windows 10 and Server 2025 for Server 2016, so those guests receive the Windows 10 and Server 2016 builds of the drivers. Server 2025 has not been verified with that build; check its first boot. Older Windows versions are imported on SATA.
  • Network adapter. Only the disk bus changes. A Windows VM still deploys with the e1000e adapter it drives in-box; move it to virtio through Guest Tools. That needs the template to be cataloged as Windows: the guest OS the conversion finds wins, but when the conversion could not inspect the guest at all (it failed, the host lacks the tool, or the import ran on a host from before this release), an import left on Auto / other has no guest OS and deploys as a non-Windows VM (a virtio adapter, a UTC clock). Choose Windows for a Windows disk in that case, or set the template's OS before deploying.
  • Templates imported before this release keep deploying as they did: the boot disk's bus is chosen by the OS family (Windows on SATA, everything else on virtio), whatever bus their record names. The same holds for an OVA imported through a host from before this release. Only an import that a host of this release converted pins the boot disk's bus.
  • First conversion is slower. On first use a host builds the conversion VM from its own packages (about 300 MB in /var/lib/simplevirt/v2v-cache). A host whose /dev/kvm SimpleVirt cannot open converts without hardware acceleration, which is much slower; installed hosts get that access the next time the SimpleVirt host service starts.
  • One disk per disk import. A guest whose operating system spans several disks needs an OVA import.
  • No incremental sync from a running source. An import copies an export once. Connecting to a source platform and syncing a running VM before a short cut-over is not built yet.
  • Mixed-version clusters. A deploy carries the boot disk's recorded bus; a host from before this release ignores it and chooses by the OS family as before (Windows on SATA, everything else on virtio). Import disk… is refused unless a host that mounts the library's backing datastore runs this release.
  • The conversion shares the host with its VMs. It runs inside the SimpleVirt host service's own resource group, not a group of its own: its memory is not capped (its conversion VM takes about 2.5 GB), so it starts only with 3 GiB free and is the first process the kernel stops under memory pressure; its CPU use is bounded by confining it to at most two cores rather than by a lower CPU weight; and its disk IO runs at the lowest best-effort priority, which only a disk scheduler that honours priorities applies (most NVMe disks use none), so a large conversion can slow the disk IO of VMs on the same disks. Import onto a quiet host when that matters.
  • Software RAID on the host. The conversion tools bring the Linux software RAID tool onto the host; the host image switches off all of its automatic assembly, monitoring and checking, so a guest's RAID seen on a whole-disk VM disk is never assembled or written by the host.

What to do. After importing, deploy one VM and watch its first boot on the console. If a guest that was imported on SATA should run on virtio, install Guest Tools in it; Windows then moves to virtio.


83. Upgrade testing: what is proven automatically and what still needs a run

Upgrades are tested from the previous release, not only as fresh installs. What runs, and where:

  • The controller database is upgraded from each release's own data. For every release a controller can be upgrading from, a test starts a PostgreSQL database at that release's schema, fills it with a copy of that release's data shapes (a three-host HCI lab, anonymized), migrates it to the current build, reads it back through the current build's own stores, takes it back down to the release's schema and up again. It runs on every change. The data is representative, not a customer's: a field database with shapes no release ever wrote is not covered.
  • The current SimpleVirt-Command is run against the previous release's host software, built from that release's source, on a real libvirt: adding the host, its version standing, creating and deleting a VM through SimpleVirt-Command, and the newer features refused with a sentence that names the host's release. It runs on every change. It covers one host and the calls listed; HA, live migration and storage between hosts of different releases are covered by the nested-cluster run below, not by this test.
  • The hypervisor and SimpleVirt-Command appliances are installed from the previous release's installer image and upgraded in place to the new one, in a virtual machine: then switched back, made to fall back on its own, powered off while the new version is extracted and again just after the switch, and reset during every trial boot. It needs a test machine with KVM and the previous release's images kept in a release archive; the release workflow refuses a release without them. SimpleVirt-Containers is not part of this run, nor of the release check (§84).
  • A whole nested cluster of the previous release is upgraded through Lifecycle (SimpleVirt- Command first, then the hypervisor image on every host and the rolling upgrade), with protected VMs writing a checksum chain the whole time: what an operator sees must be unchanged, every version must be exactly the new one, no VM may restart or run twice, and none may stop writing for more than a minute, whether its storage stopped answering or the VM itself was paused (an I/O error stop, for example, judged against the test's own clock, since a paused VM does not see the pause). Pauses are added up over the upgrade, so brief ones within that minute pass. One host is then switched back. It needs images signed by a trusted key, so it runs on the release build, under the same enforcement as the fault-lab release check (§69). SimpleVirt-Containers is not part of that nested cluster.

None of the test machines these runs need exists yet, so no N-1 to N upgrade has been run automatically end to end so far, for any appliance: the database and version-skew tests run today, the installer and nested-cluster upgrades are written and wired into the workflows and fail the run, rather than pass it, when their machine or the previous release's images are missing. Upgrades on real servers (their firmware, disks and NICs) are outside all of it; follow the Upgrade guide (in the appliance's documentation) and keep the previous version until the new one has confirmed itself.

84. SimpleVirt-Containers upgrades are not tested automatically

The automatic upgrade runs of §83 cover the hypervisor and SimpleVirt-Command only. The SimpleVirt-Containers appliance shows its version only to SimpleVirt-Command (through its integration token), and the installer-image test cannot sign in to it, so after an upgrade, a fall-back or a power cut the test has no way to tell which version came up. The test refuses to run an upgrade of that appliance rather than report a result it did not check, and the release check does not include it. Its fresh-install check confirms only that it installs, boots, and that its programming interface answers behind its web server; its version is not checked there either.

Until it has a version the test can read, upgrade a SimpleVirt-Containers appliance from SimpleVirt-Command's Lifecycle page as documented, check the version Lifecycle shows afterwards, and keep a backup of the appliance from before the upgrade.

85. Kubernetes clusters without SimpleVirt-Command: the edges

A cluster SimpleVirt builds keeps running, and stays usable with kubectl and its own credentials, when SimpleVirt-Command or SimpleVirt-Containers is disconnected or deleted (Using a cluster without SimpleVirt-Command). What remains:

  • Not yet run on real hosts. The break-glass signing runs the real script with the real openssl against a test CA, the renewal script runs against stub crictl and kubeadm, and the address check, the monitor following, the cordon marks and Install add-ons' question to the running controller about its add-on build are tested against fakes. None has run on a SimpleVirt node network, a real kube-vip control plane or a real Ceph cluster yet. In particular the ARP probe's packet socket inside the controller pod, and kube-vip coming back with the renewed certificate, need a run on real hosts.
  • Existing clusters take each part on as a choice of yours. Nothing changes on a running cluster by itself. A cluster created before this release has no break-glass kubeconfig until you choose Issue one on its page, and its control planes get the renewal that restarts kube-vip with Renew certificates….
  • Existing clusters keep their nodes' add-on build. A cluster has no registry, so Install add-ons runs the newest add-on image every node carries. On a cluster made from an older node image that is the old build: this release's manifests then run it (the cloud controller moves onto the node network), but without the address check and without the CSI driver following the Ceph monitor map. Install add-ons asks the running controller and says so on the cluster's page. Control planes are not replaced, so getting this release's build means importing its signed add-on archive on every node yourself, which needs a login on the nodes; SimpleVirt does not copy the archive to the nodes (Add-on image on existing nodes). Workers with no login can be replaced with Replace workers…, but a cluster created with no login on its nodes (the default) cannot bring its control planes to the new build, so it keeps the old one, with no address check and no monitor following, until SimpleVirt can deliver the archive itself. An image rebuilt at the same release number also needs the add-on pods restarted by hand.
  • A break-glass credential cannot be revoked on its own terms. Kubernetes has no revocation for client certificates. Each break-glass credential has its own ClusterRoleBinding, and deleting that binding is what takes its rights away; the certificate stays valid until the cluster CA expires, so a binding of the same name made again would give them back. Rotating the cluster CA is the only way to make every issued certificate invalid, and SimpleVirt does not do that.
  • Until it is downloaded, the break-glass kubeconfig lives in SimpleVirt-Command. The one issued when a cluster comes up is held in Command's database until someone downloads it, and a cluster from before this release has none until someone chooses Issue one. If Command is lost before that, the cluster is reached only with the year-long admin kubeconfig. The cluster's page asks quietly, and after a week the alarm k8s.break_glass.not_downloaded is raised. Whether a download reached the browser is judged by the server's write: a response the network accepted but the browser then dropped counts as handed out; Break-glass kubeconfig issues another.
  • The break-glass kubeconfig names the endpoint of the day it was issued. On a cluster with one control plane that is the control plane's own address, so after control planes are added the file needs a new server line or a new credential.
  • A node with no login cannot be read from its console. The default cluster gives its nodes no login, so the renewed admin.conf on a control plane can be read only through the guest agent, which is what SimpleVirt-Command does. Keep the break-glass kubeconfig, or give the nodes an SSH key when you create the cluster. A login cannot be added to a running cluster from SimpleVirt.
  • The address check sees only what answers. A device that is switched off when an address is handed out, and later comes back with it, is not seen. While SimpleVirt-Command is gone, nothing rewrites protected, so keep such devices' addresses in reserved yourself. IPv6 pool addresses are not probed, and an address on no subnet of the node the controller runs on is not probed either.
  • A node that never met the current monitors needs the monitors written in. The CSI driver follows the Ceph monitor map from any monitor it knows. A node that joins after every monitor's address changed, and whose installed list names none of the current ones, cannot reach Ceph until rbd.monitors in the ConfigMap simplevirt-csi is edited or the add-ons are installed again.
  • The bootstrap token never expires. The kubeadm bootstrap token a cluster is created with has no expiry and sits in the nodes' first-boot data on the datastore, and worker joins skip the CA check. It needs nothing from SimpleVirt-Command, but Add workers… and Replace workers… join new workers with it, so deleting it in the cluster breaks those. Join command mints a fresh, short-lived, CA-pinned token when the control plane answers; use that for a node you join by hand.

86. Cluster-service certificate renewal, a witness added later, kept storage fences and correcting a stale plan's owner

Certificate renewal. For cluster services set up from SimpleVirt-Command, it renews each member's certificate (the witness included) once fewer than 120 days remain, checking every hour, and Renew certificates… on the Cluster services panel renews every member now. One host at a time gets a new key and certificate from the same cluster CA; the host's installer checks it against the installed configuration and CA and puts it in place, and the running cluster service loads it within a minute. Nothing restarts, so quorum, the arm state and protected VMs are not touched. What remains:

  • Cluster services set up with simplevirt-clusterd provision are not renewed: SimpleVirt-Command does not hold their CA key. Re-issue those by hand as before (section 14).
  • A host on an earlier release cannot take a renewed certificate and is named on the panel and in the alarm cluster.services.certificate_renewal; a host whose cluster service is from an earlier release takes it but loads it only at that service's next start (the panel says "installed", and it is not renewed again meanwhile). Each renewal keeps the previous certificate and key in /var/backups/simplevirt-clusterd/renew.<time> on the host; only the newest two are kept.
  • The cluster CA itself (valid ten years) is not renewed.
  • Tested with simulated hosts and real certificate files on one machine; a renewal on real hosts has not been run yet.

Adding a witness later. Add a witness joins a standalone host as the witness of formed cluster services that have none, exactly like adding a host: every existing member's cluster service restarts once to accept it, so on two hosts each restart needs the short quorum gap accepted (section 50). Such an addition is refused while protected VMs run on a cluster with quorum. Only a registered, standalone SimpleVirt host can be the witness: there is no lightweight witness that runs on SimpleVirt-Command, and no small witness-only image. A witness is a full SimpleVirt install on a machine outside the cluster. It can be small, since it runs no VMs.

Storage fences kept while SimpleVirt-Command is down. The host-wide storage fence HA applies to a failed host (section 63) lasts 10 minutes and was kept alive only by SimpleVirt-Command. Now the host that applied or last refreshed it records it (ceph-fence-holds.json in its data directory) and, once SimpleVirt-Command has not been heard from for 90 seconds, re-applies it itself (checking every 20 seconds) with the same refusals: never its own address or a host SimpleVirt-Command last named as healthy. It extends only an entry it reads as still in force at the storage cluster; one that lapsed is never added back. While it keeps one, the host's dashboard shows a warning naming the address. So a failed host that comes back during a controller outage stays off the shared storage until SimpleVirt-Command is back, which is the safe side.

A release cannot remove the entry. The storage keyring SimpleVirt uses by default may add blocklist entries but not remove them, so after a release the entry stays listed until it lapses on its own, up to 10 minutes after its last refresh. The read-before-extend check therefore stops only an entry that has lapsed, never a released one. What stops a host from re-applying a released entry is the release reaching that host, or that host hearing from SimpleVirt-Command.

If the blocklist cannot be read (a storage cluster with slow operations, say), nothing is re-applied blind, except an entry the host last saw in force that is within a minute of lapsing by that sighting. A sustained read failure therefore never lets a kept entry lapse early. Once the entry is past its lapse by the host's last sighting, it is not added back.

The host stops keeping it:

  • as soon as SimpleVirt-Command is heard from again (any request from it, or, with a controller pair, a fresh renewal of the pair's lease in the cluster services). The entry still has most of its 10 minutes, which leaves SimpleVirt-Command time to resume its own refreshes. If SimpleVirt-Command goes silent again within 90 seconds (a crash loop), the host keeps the entry again; after a longer return it does not;
  • when SimpleVirt-Command releases the fence. When a failed host returns, SimpleVirt-Command sends the release to the returned host, then to every other member. Those sends run outside the cluster's HA checks, all members at once, so a slow storage cluster never delays failover detection. A member that was unreachable, or whose release failed, gets it again as soon as it is online. A release sent again after a while carries when it was made: a member that holds a newer fence of the same address (the host failed again and was fenced afresh in the meantime) keeps that fence and does not remove the entry. A fence or refresh request that names the address as a healthy host's releases it too;
  • when the entry is gone from the storage cluster;
  • when the host is unpaired or paired again, from SimpleVirt-Command or from its console. Every hold and ceph-fence-holds.json are dropped then, and a host that is not paired keeps nothing;
  • after 7 days (SIMPLEVIRT_FENCE_HOST_HOLD_MAX_SECONDS, at least one hour).

Following a released fence. SimpleVirt-Command keeps a record of each released address (ha_fence_releases.json in its data directory) until the entry is gone. Once every member has confirmed the release, or once the entry should have lapsed (its last refresh's lapse plus a minute), SimpleVirt-Command asks every online member what it sees, once a minute. If the entry is gone, the record ends.

From the release until then, HA does not restore VMs at the returned host. That includes a VM a failover fenced but never restarted elsewhere: it waits for the entry to be read gone instead of being started at its host while its storage address is still blocked (with the default storage key the release cannot remove the entry, so this is usually until it lapses, within 10 minutes). If no member can read the storage cluster (older hosts), the restore waits until the entry should have lapsed and one read past then, and is never held for good. If the entry is still in force past its lapse:

  • the alarm ha.fence.lingering names the returned host, its address, the members that report keeping it and the members SimpleVirt-Command cannot reach, which may keep it;
  • members that report keeping it are sent the release again;
  • HA does not restore VMs at that host until the entry is gone.

The alarm clears when the entry is gone. A record ends early if the host fails again and is fenced afresh, or leaves the cluster.

After a restart of the host's own service, SimpleVirt-Command's silence is counted from the restart, so a host that was down for a while does not act on an old contact time.

What remains:

  • A host cut off from SimpleVirt-Command on the management network only. Such a host may still reach the storage cluster while SimpleVirt-Command (a single controller) and the other hosts carry on. It cannot tell that from SimpleVirt-Command being down. If SimpleVirt-Command then decides the failed host is back, its release cannot reach the cut-off host. That host keeps the entry in force until it hears from SimpleVirt-Command again, is unpaired, or the 7 days pass. Meanwhile the returned host stays off the shared storage, and VMs that use distributed storage on it cannot reach their disks.

    SimpleVirt-Command now detects this: the ha.fence.lingering alarm names the cut-off host, and HA holds restores at the returned host. New VMs placed on that host by hand are not refused; the alarm is the warning. Restoring the cut-off host's management connection stops the re-applying within 20 seconds, and the entry then lapses within its 10 minutes. With a controller pair, the cluster services' lease covers this case.

    The cut-off host does not drop the entry because the cluster services show the returned host as healthy. A host that was only partitioned may still run the old copy of a VM that HA restarted elsewhere. Only SimpleVirt-Command's settle proves that copy is gone, because it removes the copy before it releases the fence. Dropping the fence on peer health alone would let both copies write to the same disk.

  • Command silent again right after a release. A member keeps re-applying a released entry only in one narrow case. All of these must hold: it missed the release (unreachable, or the call failed); SimpleVirt-Command refreshed the entry through it within the last 90 seconds before the release; and SimpleVirt-Command then goes silent for more than 90 seconds (an upgrade restart, say) before any request reaches that member. When SimpleVirt-Command is back, the member stops at once and the record above sends it the release again. Until then the returned host's distributed-storage VMs cannot reach their disks, and the entry lapses within 10 minutes of the member's last re-apply.

  • A narrow race. The host checks the blocklist, then re-applies the entry. A release made through another host in the few seconds between the two can be overwritten by the re-apply. The next check finds SimpleVirt-Command back and stops, and the entry then lapses within its 10 minutes.

  • A release on its way while the host is fenced afresh. SimpleVirt-Command checks for a newer fence of the returned host right before each resent release, and the member keeps a fence it noted more than 5 seconds after the release (measured against SimpleVirt-Command's clock through the request, so clock skew does not count). One case is left: the newer fence was applied through a different member, and the resent release reaches a member that holds no newer fence while it is already on its way. On a deployment whose storage key may remove blocklist entries, that member removes the new entry. SimpleVirt-Command's next refresh of the new fence (within its lifetime) applies it again. With the default storage key nothing is removed.

  • If the host that kept the fence goes down too, nothing keeps it, as before.

  • Tested with a simulated storage cluster and simulated hosts. A controller outage during a real failover, a management-only partition and a release under storage slow operations still have to be run on real hardware.

Correcting a stale plan's owner. A stale recovery plan for a VM that runs on a host the plan names neither as failed nor as its destination can be settled with Correct owner (typed VM name, audited as ha.recovery.correct_owner) once SimpleVirt-Command has held it unchanged for 30 minutes (section 5). The correction needs every host to answer, the storage to show that host as the VM's only writer, no storage fence SimpleVirt-Command applied still in force, and the planned destination's proof that it never took the VM; otherwise nothing changes. VMs without storage evidence of their writer (no RBD images, and no renewing heartbeat lease) are not corrected. Tested with simulated hosts and a real cluster-service leader in one process.

87. Sign-in, sessions, URL import and downgrades: what is enforced and what is not

SimpleVirt-Command ends a browser session after 30 minutes without use (auth.session_idle_timeout) and always 12 hours after sign-in (auth.session_ttl); a page left open does not count as use, only typing, clicking or scrolling in it (or in a VM console opened from it). Administration → Sign-in and sessions locks an account after repeated failed sign-ins (10 in 15 minutes by default, from any address), can require two-factor sign-in, can send HSTS, and lists every signed-in session with Sign out and every locked account with Unlock. A TOTP code signs in once. Directory sessions are checked against the directory again every 15 minutes. Import from URL never fetches from loopback, link-local or metadata addresses, the fleet's hosts and BMCs or the controller, on any connection it opens. Neither appliance stages an image older than the one it runs. The edges:

  • Lock counters, the record of used TOTP codes and the sessions themselves live in memory. A controller restart signs everyone out and lifts every lock; a TOTP code used just before a restart could sign in once more within its 90-second window. The policy itself and the addresses each account has signed in from are stored with the rest of the controller's identity settings (the database on a Postgres controller, so a controller HA standby has them; files in the data directory otherwise), and a Postgres controller re-reads the policy every 30 seconds, so a change made on its HA peer applies here within that.
  • Lockout spares the addresses an account has used, and only those. A lock caused from addresses the account never signed in from does not apply to one it signed in from in the last 90 days (up to 16 per account); failures from such an address lock only that address. So someone typing wrong passwords keeps new addresses out, never the operator's usual workstation. An operator signing in for the first time from a new address while someone keeps the account locked waits for the lock to lift, asks another administrator to Unlock, or uses the console's operator reset, which exempts the reset account from lockout for 30 minutes after the controller restarts. Addresses are as the controller sees them: everyone behind one NAT address shares it. Two consequences follow. Each trusted address keeps its own failure count, so a guesser who shares one (an office NAT, a jump host) gets the full threshold of tries there on top of the account-wide one: up to 17 times the threshold per window for an account with 16 trusted addresses, instead of once. And where a load balancer or proxy in front of the controller rewrites every client to its own address, all sign-ins share that one address: a lock caused through it locks out everyone who comes through it, as an account-wide lock would. Pass the client address through (or reach the controller directly) where that matters. Lock records and trusted addresses are kept per sign-in name; a name longer than 64 bytes is kept under a shortened form that still tells it apart from every other name. For such a long name, addresses trusted before this release are not carried over: the account trusts its address again after its next successful sign-in from it.
  • Require two-factor does not protect an account until it has an authenticator. An account without one signs in with its password alone into a session that can only set one up, and whoever does so first chooses the authenticator. Have every local account set one up before relying on the policy; there is no administrator-issued enrolment code.
  • Require two-factor applies to browser sign-ins. An API token keeps working without a second factor (it was created by a signed-in session). A directory account must then sign in through single sign-on: a directory password alone is refused, and with no single sign-on set up directory accounts cannot sign in until it is turned off. A single sign-on session is trusted to have met the provider's own second factor; the controller does not check how the provider signed the person in.
  • Directory re-checks need a search account. A directory configured with a bind template only (no account to search with) cannot be asked about anyone, so its sessions keep the groups of the sign-in until they end. A directory that cannot be reached leaves the groups standing for an hour, then the session runs without them until a check succeeds. Single sign-on sessions are not re-checked: the provider is asked only at sign-in.
  • HSTS is opt-in and only with an installed certificate. The controller's own generated certificate never sends it, because a browser under HSTS refuses to continue past a certificate warning. Hosts never send it: they serve their own generated certificates.
  • An open VM console closes with its session within about 5 seconds of the session ending (signed out, idled out, ended by a directory re-check or past its 12 hours). A console's keystrokes count as use, so a console in use does not idle out. Only keyboard and pointer input count: a console that is only watched (an installation, a boot, a scrolling log) for longer than the idle timeout closes with its session and needs a new sign-in. The VM keeps running. Raise auth.session_idle_timeout if operators watch consoles for long stretches.
  • On a host's own web UI, sessions have the same idle timeout, but there is no session list, account lockout (beyond the per-address throttle) or require-two-factor policy there.
  • Import from URL… may still reach the private networks unless library.url_import.refuse_private_networks is set (with allow_networks for an internal mirror); a host of an earlier release downloads without the host-side check until it is updated, though SimpleVirt-Command still refuses a URL that names, or resolves on the controller to, a refused address. Hosts and BMCs registered by name are looked up together within 3 seconds per request; one whose name does not resolve in that time is not in that request's list (the downloading host still refuses its own addresses).
  • There is no staged downgrade. An older installer image is refused on SimpleVirt-Command and on hosts; Revert to the kept version is the way back, and once that version was discarded, there is no supported way to an older build short of reinstalling. The SimpleVirt-Containers appliance still checks only its image's min_from_version. No release so far sets an anti-rollback floor of its own; the mechanism is in place for one that must.
  • A Revert to a build older than 1.1.0 needs the new configuration keys removed first. Such a build refuses auth.session_idle_timeout and library: in the kept configuration file and does not start; the shipped files leave both commented out, and upgrade (in the appliance's documentation) says so.

88. Host workflows across a controller restart, and the inventory poller

Maintenance, planned outages, updates, evacuations and rolling upgrades after a restart. Entering and leaving maintenance, a planned reboot or shut-down, a host update (applied directly to an empty host or after an evacuation), a revert to the previous version, an evacuation and a rolling cluster upgrade each keep a small journal (host-workflows.json in the data directory) of how far they got. An accepted update or revert keeps its record until the host is back from its reboot (its HA update-shield ends), not only until the host accepts it. When SimpleVirt-Command restarts, or its standby takes over, the new process gives back the HA shield of every host the last one had asked to go down before the poller and HA start, with the time that shield was first armed (so its 30-minute backstop is not extended), and then settles each workflow in a task named after it, "(after a controller restart)": a host already in maintenance has its drain finished, a host already rebooting, updating or switching back is followed until it is back (the task says on which version), and a rolling upgrade continues once the cluster is resilient again (it stops instead when the host that was in flight came back on the old build). A restored shield is never decided before the new process has polled the host once: until that first poll it holds (within its backstop), so a host still rebooting is not read as failed or as having skipped its update on what the controller had not seen yet. Following a restored shield back never ends a newer one: if you start a new update on the host meanwhile, its shield is left to that update, and the restored task ends as superseded by a newer update (the host's state from then on is that update's, followed by its own task). A workflow that had not reached the host yet is ended, not repeated: the host is left out of maintenance (or not rebooted, shut down or updated), nothing is shut down, VMs already moved stay where they are, and the task says to start it again. What is not covered:

  • A step that was being asked of the host at the moment of the restart (the request in flight) cannot be told apart from one the host never received. A reboot says so ("whether it rebooted is not known") and asks you to check the host; an update whose host is still up on its old version four minutes later, without announcing a reboot, is reported as not taken.
  • The standby copies the state files every five minutes, so a workflow started less than five minutes before a takeover may be unknown to it, and one that ended in that window may be settled again. A maintenance, reboot, shut-down, update or evacuation settled again only reads the host and reports what it shows, which is already the end state. A rolling upgrade found in the standby's copy is never continued automatically, because the old active may have stopped it on purpose in that window: the task says it was not continued, and you start the rolling upgrade again from Lifecycle (hosts already on the target are skipped).
  • A controller backup does not carry the journal: a restore never resumes old work.
  • The workflows still cannot be paused, cancelled or scheduled, and the planned reboot still waits a fixed 15 minutes for a host to return before it fails.

One unreadable VM on a host. A VM whose state the host cannot read no longer fails the host's whole VM list. The host reports it as unreadable, SimpleVirt-Command keeps showing the state it last read for it only as data (the VM list and the VM page show it as Unreadable, with the host's error and the state last read in the tooltip; a VM it never read shows as unknown) and keeps its last HA definition, every other VM on the host is read as usual, and the warning alarm vm.unreadable names the VM and the host's reason. Whatever state was last read for it, an unreadable VM counts as occupying its host: a planned reboot, shut-down, maintenance enter or update stops at its last check and names it, exactly as when one such VM failed the whole list, an evacuation reports it as not movable, and load balancing never picks it. The host console's restart and shut-down screens and the host's health summary count it as "state unreadable", never as stopped. While a VM stays unreadable, SimpleVirt refuses to put its host in maintenance (in either mode: maintenance that shuts VMs down cannot stop a domain its host cannot read, so it is refused before anything moves rather than left waiting), to update or revert the host, and an evacuation leaves it where it is; each refusal names the VM. A planned reboot or shut-down is refused too, unless you accept that it stops that VM (the dialog's choice to accept the outage for the VMs still on the host, or acknowledged_vms or allow_running_vms in the API): the host then goes down and the VM with it, as for any VM you accepted. The remedy is on the host: run virsh dominfo <name> to see why libvirt cannot read the domain, then repair it, or undefine it if it is not wanted. This is deliberate: the VM may be running, and every one of those workflows would stop it. An older host still fails the whole list as before, and an older SimpleVirt-Command connected to a newer host sees such a VM only as in an unknown state.

The inventory poller. Polls are bounded per host (a few seconds per call). A host whose last poll failed, timed out or came back stale is polled from a pool of its own, never smaller than the old shared pool of 16, so hosts that hang cannot starve healthy ones; a host that answers correctly but slowly stays in the healthy pool. A host's VM list carries an inventory generation: an unchanged host answers the 5-second poll with "not modified" and a changed one with only the VMs that changed (see §92 for what this does and does not save). An older host is read in full on every poll. The metrics page reports each host's last poll duration, how long ago it was polled and its number of unreadable VMs (simplevirt_command_host_poll_duration_seconds, simplevirt_command_host_poll_age_seconds, simplevirt_command_host_unreadable_vms).

89. The HA isolation and storage-loss responses

Both responses are off by default (leave running, leave paused) and act only on the evidence described in the user guide. What they do not do:

  • Isolation is judged by the host itself, from the management network. A host calls itself isolated when SimpleVirt-Command has not reached it for the detection time and none of the other members' management addresses, nor the isolation addresses, answers a TCP connection (every one is tried at once, within 3 seconds). Storage addresses are not tried: the response is for a host cut off from management whose storage still works, which is the one case where another host can restart its VMs. A host that lost its storage path too has nothing to act on (no beacon reaches it), and a storage loss alone is the storage-loss response's.
  • A host acts only on positive evidence that a restarter is on the other side. Every member writes a small contact beacon on each heartbeat-lease NFS datastore it mounts and in each HCI pool the cluster's VMs use, and advances it every 10 seconds only while SimpleVirt-Command reached it within the last 15 seconds (or, with the cluster services armed, while their quorum granted it). An isolated host stops a VM only when another member's beacon on every datastore the VM's disks are on advanced during the isolation, the last time within 30 seconds. So when a switch failure cuts every host off, or SimpleVirt-Command fails at the same moment as the network, no host stops anything. A cluster whose SimpleVirt-Command is down and whose cluster services are not armed has no restarter, and its isolated hosts leave every VM running.
  • SimpleVirt-Command's own VM is never stopped by an isolation response, whatever the setting.
  • A VM HA would not restart elsewhere is never stopped by an isolation response, whatever the cluster setting or its own override: a VM whose HA restart priority is disabled, and, while SimpleVirt-Command drives the restarts, a VM a Required rule pins to that host (or that runs where its pinned host is gone or cannot take it). Stopping one of those would only take it down. SimpleVirt-Command sends the members their policy again at once when a restart priority or a placement rule changes; a pinned VM whose pinned host goes offline or into maintenance is covered at the next policy check, within a minute. While the cluster services are armed they restart a pinned VM elsewhere, so the pin does not exempt it then.
  • VMs on local disks, a SAN LUN or NFS without heartbeat leases have no beacon and are left running; the host's status says why.
  • Beacons are hidden files and objects. On NFS a .simplevirt-ha-contact.<host> volume of 512 bytes per host at the export root (the datastore browser will not delete it); on HCI a .simplevirt-ha-contact.<host> object per host in each pool, written with the host's own storage key. They are written only while some VM's isolation response is set, and are left in place when it is turned off.
  • Shut down never forces a guest off. A guest that does not stop within 5 minutes keeps running and is reported as not stopped. A guest that finishes shutting down after the isolation ended, or after the 5 minutes, is still followed up: its lease is freed, the host reports it shut down, and SimpleVirt-Command restarts it. A not-stopped entry is watched for 30 minutes and then acknowledged; the host ends its own watch after those 30 minutes too, even while it cannot reach SimpleVirt-Command, so a guest that finishes its shutdown later than that (for example one you shut down from inside it days later) is never taken for the isolation's stop and is not restarted by HA: start it from its page if you want it back.
  • What a host stopped is kept until SimpleVirt-Command handles it. The host keeps each VM it stopped in a book on its disk, across its own restarts, for up to 7 days; SimpleVirt-Command reads it on every poll, restarts on that host a VM nobody restarted elsewhere (only once every member can be read, it was not stopped by a user and its restart priority is not disabled; a VM with no recorded power intent, as on an install from before power intents or a VM started from the host console, is restarted, because the host's entry shows it was running), raises ha.vm.isolation_stopped naming it, lists it on the HA tab and then acknowledges it. Before that start it reads every other member fresh (the poll can be seconds behind a start the failover just made; a member where it reads as running, paused, shutting down or suspended runs it, and one where it reads as crashed or unknown holds the start), waits while an open or just-closed failover episode restarted the VM elsewhere and that host's poll does not show it yet, and for an HCI VM refuses while another host's client holds its disks. While the cluster services hold the HA authority, SimpleVirt-Command reports such a VM but does not start it: start it from its page if they did not. With HA off it reports and acknowledges the entry and starts nothing. During the post-restore hold it starts nothing on a host, or from a definition, it has not read live since the restore.
  • In "ask first" (confirm) mode an isolation stop leaves the VM down until you approve. The isolated host's policy is the same in both modes, so a VM it stops is restarted elsewhere only once the restart plan is approved, or on its own host once the isolation ends.
  • The policy has a lifetime. A host drops its isolation policy if SimpleVirt-Command has not refreshed it for 24 hours, and when it is unpaired. SimpleVirt-Command sends each member its policy at once when the responses or a VM's override change, HA is turned on or off or its mode changes, or the cluster services are armed or disarmed; and it sends a host whose report shows another policy (a reinstalled host, one that lost its file, one that left its cluster) the right one within a minute of reading it. A host SimpleVirt-Command cannot reach at that moment keeps its old policy until it can, or until the 24 hours run out.
  • A freed lease is now its owner's proof. A survivor takes an NFS lease that its owner wrote freed (which it does only for a VM it confirmed off) once it has been quiet for the steal window, without a BMC or an operator confirmation. This is what lets the other hosts restart a VM an isolated host stopped, and it also applies to any other VM its owner stopped cleanly and HA wants running.
  • The storage-loss response runs only while SimpleVirt-Command drives HA for the cluster; the armed cluster services do not run it. It handles VMs on heartbeat-lease NFS (held paused by their lease) and SimpleVirt HCI (paused by a storage error); a VM on NFS 4.1 with server locks, a SAN LUN, or with a passthrough device stays paused, and so does a VM whose restart priority is disabled or whose power intent is not running. Each loss is its own case: a VM restarted after one loss is handled again when it later loses its storage, on any host; one whose power-off could not be proven is left as it is for as long as that pause lasts.
  • In "ask first" (confirm) mode the storage-loss response only reports. It never powers a paused VM off or restarts one in that mode: the case on the HA tab says HA asks first, and the VM resumes on its own when its storage is back (or you power it off and start it elsewhere). A VM it powered off before the mode changed is not restarted automatically either; start it from its page.
  • Several VMs losing their storage at once are spread out. Within one pass each restart reserves the VM's memory on its chosen host, so a VM that would no longer fit there is left paused until a later pass finds room, rather than being powered off for a host that cannot take it.
  • It acts only on a loss proven to be its host's alone. Every member must be readable, no VM on any other member may be paused on the same datastore, the datastore must not refuse writes (full, over quota, read-only), and the host chosen to restart the VM must show live I/O there just before: a fresh lease write and read-back on NFS, and for HCI a fresh storage reading with no inactive placement group, no full or near-full pool or disk, and no slow requests. An NFS server reboot, a full or slow Ceph pool, or placement groups peering therefore never power a VM off: those VMs resume on their own when the storage is back. On HCI an idle VM is not paused by an outage (it sends no I/O), so the pause count alone cannot tell a cluster-wide outage there; the storage reading is what covers it.
  • An NFS VM's pause must have drained, and the datastore's APD window must be closed. HA powers off only a lease-paused copy whose pause its host confirmed drained (qemu stopped, its I/O drained and flushed, with direct I/O in lease-evidence mode) and whose APD window has run out, so no write queued in the host's NFS client lands after another host started the VM. A copy whose pause did not drain, or that is inside its APD window, stays paused; a host of an earlier release does not report the drain and its VMs stay paused.
  • The power-off is the one step that cannot be undone. HA reads the VM as still paused by a storage error immediately before it, but a VM its host resumes in the instant between that read and the power-off is powered off. The stop is recorded on the host first, so a SimpleVirt-Command restart resumes the restart elsewhere; if no host can take the VM any more, it stays powered off and its case says so; start it from its page. A resumed restart (or any retry) starts nothing until every member is readable and has been read since SimpleVirt-Command started, the VM reads as stopped (or not defined) on the host that stopped it (shutting down, suspended, crashed or unknown holds it: its process may be alive), every member is read fresh and shows the VM nowhere, the post-restore hold does not cover the host or the definition, and the VM is still meant to run with its restart priority not disabled; for HCI no other host's client may hold its disks. A stop whose power-off could not be proven has its record removed from the host, so it is never resumed. A case whose host leaves the cluster (removed or unpaired) before the restart is closed with that outcome and leaves the HA tab after an hour; start the VM from its page.
  • A paused case is kept in memory. A SimpleVirt-Command restart starts each still-paused VM's delay again.
  • Real hardware. Both responses are tested with simulated hosts only. A real management-network isolation (with and without a separate storage network), a real export loss, an NFS server reboot and a full Ceph pool, and the beacons' rados and NFS writes on the appliance, have not been run.

90. Restart orchestration: what the cluster services apply

SimpleVirt-Command applies every orchestration setting to the restarts it drives; the armed cluster services apply all of them but the guest-ready condition. SimpleVirt-Command seeds each protected VM's pacing to the cluster services with its restart priority: the VMs it is restarted after, its start delay, the wait set after its tier (a tier's own wait, else the cluster's) and the dependency wait limit. When the cluster services restart VMs on their own:

  • A lower tier starts once the higher tier has recovered (its VMs run again), then waits the pause set after that tier; a higher tier that cannot recover holds the lower ones at most 3 minutes, after which they start without that pause. The "next tier starts" choice is not read: the cluster services never wait for the guests to report in.
  • A VM waits for the VMs it is restarted after while they are still being recovered, at most the dependency wait limit; a VM that waits for a dependency does not hold the lower tiers, so a VM that depends on a lower-priority one starts after it. Then it waits its start delay.
  • A host of an earlier release ignores the pacing (and reads Highest and Lowest as Medium); while such a host leads the cluster services, restarts follow the tiers only.
  • There is no separate disaster-recovery plan with its own start order: a stretched cluster's site loss is restarted through the same two paths and the same pacing.

In the restarts SimpleVirt-Command drives:

  • Waves are per failover pass. VMs restarted in one pass are ordered by tier, then by dependencies. A dependency restarted in a later pass (held for proof, say) holds its dependents for at most the dependency timeout, counted from when the dependent was first held.
  • Pacing is per tier. Each tier can set its own "next tier starts" condition and wait; a tier that sets none follows the cluster's. A VM restarted after a dependency in a lower tier is paced with that lower tier.
  • Guest-ready reads the guest agent and Guest Tools only. A guest with neither waits the whole ready timeout. It says the guest's agent is up, not that the application inside is ready.
  • While a tier waits, the next one has not started: a long ready timeout or wait delays the lower tiers by that much on every failover.
  • Turning HA off keeps these settings. The failure responses, the pacing and every VM's overrides are kept, unused, while HA is off and apply again when it is turned back on.

91. Finer privileges, agent token rotation and host certificate renewal

Access control has an Auditor role and two privileges split off coarser ones: audit.view (the audit archive, its export and integrity check, and the fleet event log, which needed host.manage before) and k8s.delete (deleting a Kubernetes cluster or removing its workers, which needed vm.delete). The built-in Operator no longer deletes Kubernetes clusters. An upgrade gives the new privileges once to every custom role and scoped API token that reached them before, so nobody loses access; one an operator later removes stays removed. A custom role an earlier release let you call "Auditor" keeps its name and bindings next to the built-in one. What remains:

  • Backup, restore, the controller certificate, Command updates and the Containers link stay reserved to an account holding every privilege (full control). They are not split into delegable privileges, because each of them hands out the controller's keys or software.
  • One host's own audit tail (/api/v1/hosts/{id}/events) and the host logs still need host.manage: they are proxied from the host, are object-scoped, and audit.view is a controller-wide privilege. The built-in Auditor therefore does not read a host's own tail.
  • The upgrade gives audit.view only to roles and tokens that held host.manage. One that held only admin.users reached only the audit integrity check, which still answers it, so it is not widened to the whole archive; give it audit.view by hand if it should read the archive.
  • A Kubernetes node's VM is deleted through the VM delete only by a caller who also holds k8s.delete, so the Operator cannot take a cluster apart one VM at a time. Powering a node VM off, editing its hardware or detaching its disks stays under the ordinary VM privileges the Operator holds: those are recoverable, but they can still take the node out of service.

Each host's agent token (the credential the controller authenticates to the host with) is rotated every 30 days, and on demand (POST /api/v1/hosts/{id}/agent-token/rotate). The host accepts the new token before the controller stores it and keeps accepting the one it replaced for 7 days, so requests in flight, a standby controller catching up and a restore of a recent backup keep working. The pairing itself, and everything recorded under it, is unchanged.

  • Only the controller that uses a host's current token can rotate it. A controller holding the token a rotation replaced (restored from a backup taken before the rotation, a standby that took over without the latest database, or anyone with a copy) may rotate from it only while the current token is idle: never used since the rotation (a controller that crashed between the host accepting a new token and saving it, which then heals itself on its next hourly check), or not used for 24 hours (the controller that held it is gone; a live controller reaches each host every few seconds). While the current token has been used within 24 hours the host refuses (409 current_token_in_use, audited on the host), and the controller holding the replaced token raises host.agent_token.superseded naming the date the host stops accepting it and the time it moves the host to a fresh token by itself if the other controller stays silent (critical inside 48 hours). If the other one is the live controller, retire this one.
  • A restore heals by itself, a day after the lost controller's last contact. The hosts it rotated after the backup keep accepting the restored controller with the replaced token for 7 days from their rotation, and the restored controller moves each to a fresh token once the lost controller has been silent for 24 hours (checked within 5 minutes of that time). That fits inside the 7 days whenever the backup was taken less than 6 days before the loss (every host rotated after it was then rotated less than 6 days before the loss) and the restored controller is running before those 7 days end. This holds only for a host rotated at most once after the backup: a rotation from the current token makes the token it replaced the only one still accepted, so a second rotation after the backup (the scheduled one plus one on-demand POST /api/v1/hosts/{id}/agent-token/rotate, or two on-demand rotations) leaves the backup's token rejected on that host at once, even when the backup is a day old. A host rotated more than 6 days before the loss and after the backup stops accepting the restored controller before it can heal. Either way its alarm says so, and the host must be removed from SimpleVirt-Command and added again (it comes back as a new host record), which is also the case for a backup older than 7 days below. Take a backup after an on-demand rotation to keep a restore able to heal.
  • The takeover times are read on the controller's clock. The host sends its own clock reading with its credential state, and the controller moves the host's times onto its clock before it judges whether the 24 hours have passed, so a host clock that runs behind or ahead does not make it ask early or late. A host still on an earlier build of this release sends no clock reading; if its clock runs behind, the controller may ask early and be refused, and after a refusal it asks again only at the next hourly check, never every 5-minute pass.
  • A controller that cannot reach a host for 24 hours can lose it to a holder of the token its last rotation replaced, inside that token's 7-day grace: the host cannot tell a controller that is gone from one that is cut off. Such a holder is a restored or standby controller of the same deployment, or someone with a copy of the controller's database; the controller that lost the host is then refused and has to add it again.
  • A host that was powered off for more than 24 hours comes back with an old last use of its current token. For 15 minutes after its service starts it refuses a takeover from the replaced token anyway, and the live controller reaches it within seconds and records a fresh use, so a drill spare or stale standby cannot take it in those first minutes. If no controller using the current token reaches the host within those 15 minutes (the live controller is itself down or cut off at that point), the holder of the replaced token may take it, as above.
  • While the controller observes after a restore it still moves a host off a replaced token on its own before that token's grace ends, and follows renewed certificates; it does not rotate on schedule or renew certificates until the observation ends. It waits 24 hours from the rotation even for a current token that was never used, so a spare controller restored for a drill never takes a host from the live controller in the minutes before that one uses or saves its new token.
  • A controller backup older than 7 days after a rotation holds tokens the hosts no longer accept. Restoring it leaves those hosts rejecting the controller's credentials, and each must be removed and added again. A scheduled daily backup is always inside the window.
  • A host from before this release keeps its token until it is updated (it answers that it cannot rotate, and nothing is changed).
  • Rolling a host back to a release from before rotation after its token was rotated changes the pairing id the older release works out (it derives it from the token). The controller addresses the host stored under the pairing are then ignored until the controller pushes them again (every 10 minutes while it reaches the host), so for that long the host's console shows no controller address and a management-IP change is not announced. Nothing else about the pairing changes.

Each host's HTTPS certificate (the one the controller pins) is now made for 825 days and renewed by the host itself 60 days before it ends, without a restart. Every replacement, including the host Certificate tab's Regenerate and Replace, is endorsed by the key of the certificate it replaces, and the controller follows that endorsement to the new certificate on its own (audited as host.certificate.follow), so no re-pin is needed. The alarm host.https_certificate.expiring warns 30 days before a host certificate ends (critical inside 7).

  • The host certificate is still self-signed per host, not issued by a controller authority. The pin, carried across renewals by the endorsement chain, is what the controller trusts; browsers that open a host's own page directly still warn.
  • A certificate an operator installed is never renewed automatically: installing its successor is the operator's job, and the alarm says when.
  • Hosts installed before this release keep their ten-year certificate until it nears its end or someone uses Renew certificate (POST /api/v1/hosts/{id}/certificate/renew).
  • A controller more than eight renewals behind a host (the chain keeps the last eight) cannot follow it, and the host needs the existing Re-pin certificate step.
  • A renewed certificate is followed on the poll that sees it, and the host.certificate.mismatch alarm waits for that attempt (at most two minutes), so a healthy renewal raises nothing. Only a certificate that cannot be followed raises it.
  • The standby controller's own view of the hosts (which it uses only to ask for the controller lease) refreshes from the active controller every 30 seconds. A host whose certificate changed since (including while the active controller is down) is followed by the standby itself through the same endorsement chain on its next lease request, and the new pin is saved in its pair record. Its token is the one the active controller last shared, which the host accepts for 7 days after a rotation; a standby cut off from a dead active controller for longer than that cannot ask for the lease and is promoted from its console instead. Each lease request asks every arbiter host at most once within its 4 seconds (a host that closed a kept-alive connection under the request, as it does when it swaps its certificate, is asked once more after all the others), so a powered-off host costs that request at most its 3-second connect or handshake timeout. With two arbiter hosts that both stall, or one stalled host followed by one that is slow to answer, the request can still run out; the next one starts with the host that answered last.
  • A certificate swap interrupted by a power loss is finished or undone at the next start of simplevirtd (the new pair is written beside the old one first). Only damage beyond that (both pairs unreadable) makes the host regenerate a certificate; it is endorsed by the old key whenever that still loads, and otherwise needs the existing Re-pin certificate step.

92. Controller self-monitoring, inventory generations and the boot restore of host networks

Controller self-monitoring. /readyz reports database (ok, slow over 1 s, failing), disk (ok, low under 10% or 2 GiB free, critical under 3% or 512 MiB), inventory_poll (ok, lagging, stalled, not_started) and alarm_engine (ok, stale, missing). Only failing, critical, stalled and stale make it answer 503. The disk is the filesystem holding SimpleVirt-Command's data directory. On the appliance the bundled database's files are normally on that filesystem too; a database on another disk, or an external one, is not measured. /readyz also reports memory (ok, high, critical, unknown) and stays ready for all of them: being not ready would free nothing. Memory is SimpleVirt-Command's own resident size (its database's memory is not counted) against the service's memory limit, or the machine's memory when the service has none (the shipped service sets none), so on the appliance the alarm says the controller has grown to half, then three quarters, of the machine; a slower leak shows on the metrics page (simplevirt_command_memory_resident_bytes) before then. The controller.disk.low, controller.database.*, controller.poll.lag and controller.memory.high alarms are evaluated on the alarm engine's one-minute pass, so they appear up to two minutes after the condition starts (warnings wait for one confirming pass). An alarm engine that has stopped cannot raise an alarm about itself: that shows only in /readyz, in the heartbeat, which carries it, and in a restart by the watchdog. The watchdog (WatchdogSec=120s) restarts SimpleVirt-Command when its inventory poller loop has not ticked for 2 minutes, whatever the database is doing, or when no alarm pass has finished for 15 minutes and the database answers a ping promptly. The poller's read of the fleet gives up after 5 seconds and uses the last fleet it read, so its loop keeps ticking through a database that hangs; a poller loop that stops is stuck in SimpleVirt-Command itself. Until the fleet has been read once, a read that fails leaves the poller's cache and the saved last-known inventory as they are, so a host that is down at controller start keeps its dimmed VMs. When the database does not answer within 5 seconds, or takes over 1 second, a stuck alarm pass is taken as the database's doing and the controller is not restarted for it, because a restart would not fix it. The alarm pass's database calls are not all bounded: through a database that hangs, the alarm pass can wait in one of them, so no new alarm (the database one included) is raised until the database answers. /readyz and the heartbeat report the database as failing and the alarm engine as stale meanwhile. A restart of SimpleVirt-Command never stops, pauses or moves a VM.

Inventory generations. The host still lists every VM from libvirt on each poll. The generation saves the transfer, the decoding and the copying of an unchanged list on the controller, not the host's own libvirt reads. A running VM's live usage (CPU, memory, disk and network rates and their sample time) is resampled every 5 seconds, the poll interval, and the generation follows it, so a host with at least one running VM changes generation on nearly every poll and answers "not modified" only while no VM's usage moved. What the delta then saves is the rest of each running VM's summary: a VM whose usage alone changed is sent as its short usage record, a VM that changed in anything else (state, name, disks, adapters) as its whole summary, and a stopped VM not at all. A host whose VMs are all stopped answers "not modified". A restarted simplevirtd starts a new generation series, and SimpleVirt-Command then reads that host's list in full once. A delta that does not match what SimpleVirt-Command holds is never applied: it reads the whole list again.

Boot restore of host networks. simplevirt-netrestore.service runs simplevirtd net-restore once per boot, after systemd-networkd and before network-online.target, libvirt, Ceph and simplevirtd. It re-creates the recorded teams, port groups and service-adapter addresses from /var/lib/simplevirt/host-nets.json. Its limits:

  • The port groups' traffic policies (MAC spoofing, rate limits) live in libvirt's persistent network definitions. libvirt brings them back with its networks; simplevirtd re-asserts them when it starts, and the boot restore does not touch them.
  • The restore uses the simplevirtd program, but not its service. A host whose simplevirtd program cannot run at all (a damaged installation) gets nothing from it; revert to the kept previous version in Lifecycle and updates, or reinstall with Upgrade.
  • An existing host gets the unit with the update that ships it, and it first runs at the reboot that update makes. Nothing changes on the running host, and the networks it already has are left as they are.
  • A config.yaml that simplevirtd refuses (an unknown key, a typing error, a value that does not validate) does not stop the restore: it says so in the journal and reads only data_dir from the file, or uses /var/lib/simplevirt when the file is not readable YAML or names no absolute data_dir. A host whose state is under another directory and whose configuration is not YAML at all is restored from the default directory, which has no record, so nothing comes up.
  • It refuses to run as root and while simplevirtd runs (simplevirtd holds a lock, /var/lib/simplevirt/host-nets.lock, for its whole life, and re-applies the recorded networks itself when it starts). To run it by hand, stop simplevirtd and run systemctl restart simplevirt-netrestore.service. A simplevirtd started while such a run is in progress starts at once and takes the lock when the run ends, so for that run (at most a minute) the two are not kept apart.

93. SimpleVirt-Containers appliance secret key rotation

Secret key rotation. The appliance console's Rotate the secret key, Re-encrypt stored credentials and Remove previous secret keys drive the Containers backend's simplevirt-containers-admin credential-keys and rotate-credentials, which only SimpleVirt-Containers' main branch has. A rotation is refused, with appliance.env unchanged, on an appliance whose backend predates them, and make appliance-containers-iso refuses to build from such a tree. The actions are tested against a stand-in for the admin tool that prints what main's prints; they have not yet been run on an appliance installed from an ISO built from main. A stored item that no configured key opens (for example one a lost key encrypted) stays unreadable under any key: the actions list it, say that re-running will not change it, and do not let it hold back removing a previous key. It has to be entered again where it is used.

94. Live-migration time limits, VM-host rules, passthrough and vCPU placement

Time limits. A live migration is no longer cut off at a fixed 30 minutes. The source host measures a transfer's progress by the data it has carried so far, which only grows (libvirt's remaining figure is no measure: it falls at the end of each pass over the guest's memory and jumps back to what the guest dirtied meanwhile). It stops a transfer that carries no data for 15 minutes (a dead link, a wedged job), or one that runs past a limit sized from its data and the speed it achieves: 30 minutes plus four full copies at that speed, at most 24 hours. Neither applies before the move's old limit (30 minutes, or longer for a bandwidth-capped move), so no move is stopped sooner than before. While libvirt reports no progress figures for the move, the old limit applies. A guest that changes its memory faster than the link carries it keeps carrying data and never finishes: it is stopped at the size-and-speed limit, which for a small VM on a fast link is just past 30 minutes, and for a large VM on a slow link is hours. On a host whose libvirt reports no "processed" figure, a new low in the remaining data counts as progress instead, and a converging busy guest may then be stopped as stalled 15 minutes after its first pass, but never before the old limit. A move waiting for an outgoing slot on its host, or for an inbound slot on its destination, waits as long as the moves ahead of it make progress, and gives up only when none did for 30 minutes, or after 24 hours. The source renews its hold against a libvirtd restart every minute for the whole move, including while its progress figures cannot be read, and each renewal lasts 10 minutes, not the rest of the move: the hold is kept in a file a restarted host service adopts, so if that service stops mid-move the hold lapses within 10 minutes of its last renewal (a move stopped before its first renewal, in its first minute or while it waits for its VM's snapshot work, holds it to its old limit plus 5 minutes, as before), and certificate and access-list changes are no longer deferred for hours by a move nothing follows any more. A host on an older release keeps its own fixed 30-minute limits until it is updated. These limits are tested against simulated progress figures; a run on real hosts with a busy guest is still to be done.

VM-host rules. A rule pins a VM group to any host of a host group, or keeps it off all of them (Workload Distributor → VM placement rules, or POST /api/v1/clusters/{id}/drs/rules with name, vm_uuids and host_ids). A rule is checked when it is written: its hosts must be members of the cluster and its VMs VMs of the cluster now. A VM is covered by one rule; a second rule for it is refused, so put the VMs that share a placement in one rule. Host groups are part of the rule, not named objects shared between rules. A host that leaves the cluster (removed, or assigned to another cluster) is taken out of every rule naming it, and a rule left with no host is removed (audited as cluster.drs.rule.prune); this also runs when SimpleVirt-Command starts, which cleans up rules left behind by a host removed before this release. That pass runs only on a complete read of the hosts: when the database does not answer in time, or holds host rows this SimpleVirt-Command cannot decrypt (a restore onto an appliance with another key), it changes nothing and is retried every 30 seconds; a cluster whose member list reads empty is never pruned. A VM deleted through SimpleVirt-Command leaves its rules (a group keeps its other VMs; a rule left with no VM goes), unless it is still defined on another host, or another host's VM list cannot be read at that moment; a rule left that way raises the vm.hostrule.orphaned warning once no host lists any of its VMs. A VM deleted on its host directly keeps its rules the same way. A rule may name a VM no host lists while any member of the cluster cannot be read (it may be that member's VM), so a pin can be added during an incident. vm.hostrule.violated names a VM running where its rule forbids (critical for a Required rule), and vm.hostrule.unsatisfiable a rule no member of the cluster satisfies (a keep-off rule naming every host). The cluster services do not read VM-host rules (§35).

Rolling back SimpleVirt-Command with group rules. A release before this one reads a rule only by its first VM and its first host: after a rollback, a group pin reads as its first VM pinned to its first host, its other VMs are unpinned, and HA on that release keeps that one VM down if that one host fails. Before rolling back, delete the group rules (or replace each with one-VM rules), and recreate them after updating again.

PCI passthrough. A VM with a passed-through PCI device is never planned as a live move. The Migrate wizard offers a cold move (power it off first) to a host with a matching free device; evacuation and maintenance report it as one that moves only powered off and name that host, and move it powered off only when you choose to relocate VMs that cannot move live. With no host that has a matching free device, it stays where it is, with the reason.

vCPUs. Create, migration (live and powered off), evacuation, maintenance and the Workload Distributor refuse a host with fewer logical CPUs than the VM's vCPUs, or without (online) every host CPU the VM is pinned to. SimpleVirt-Command's HA refuses only a survivor with none of the pinned CPUs online, and treats the rest as preferences: it restarts a VM on a survivor with all of its pinned CPUs and enough logical CPUs when there is one; otherwise it still restarts it on a survivor with only some of the pinned CPUs (the VM's threads run on those) or overcommitted (QEMU starts it; the guest's vCPUs share fewer host CPUs), as it did before, with an ha.placement.cpuset_partial or ha.placement.vcpu_overcommit log line. Should the host's virtualization layer refuse to start a VM on a partial pin, the start fails and HA tries another survivor as for any failed start; that case has not been run on real hosts. The cluster services' recovery checks neither (a recovery manifest carries no CPU pinning, and it cannot prefer one survivor over another): a pinned VM may be restarted on a host that lacks its pinned CPUs, then fails to start there and is retried on another host. All of them count the vCPUs a VM starts with (<vcpu current>), not the maximum it can be raised to.

This changes what happens to an existing VM that already has more vCPUs than a smaller host of its cluster has logical CPUs, or is pinned to CPUs a smaller host lacks: it can no longer be moved onto that host, live or powered off, evacuated or rebalanced there, so a maintenance drain of its host has to place it on a larger host. When there is none, lower the VM's vCPUs (or change its CPU pinning) so it fits the smaller host; only HA still restarts it there after a failure. The ha.vm.vcpu_overcommit warning names each running VM of an HA cluster whose vCPUs exceed the logical CPUs of every other host, so this is visible before a failure or a drain. A host that reports no online CPU list (an older release) is judged by its CPU count alone. Changing a VM's vCPU count on its own host is not checked against the host.

95. Cancelling tasks, pausing and scheduling host workflows, and the rolling upgrade on any storage

What can be cancelled. A running task offers Cancel in Recent Tasks (or POST /api/v1/tasks/{id}/cancel) only while it can still stop cleanly, and the task then ends Cancelled saying what was left as it was:

  • a live migration, until its host switches the VM over (the source aborts the job and the VM keeps running there; a move the host finished first is reported finished);
  • a storage move, until the VM is switched onto its new disk (a live move aborts its copy at once; an offline move stops when its one copy call returns, because a volume copy cannot be stopped part way; either way the partial copy is deleted and the VM keeps its original disk);
  • a clone, until its finished copy is being started (the copy and every disk it made are removed);
  • a deploy from a template, and a library import from a URL (the request to the host ends, and the host removes what it was writing; a library item that never became usable is removed);
  • an evacuation, an Enter maintenance, a planned reboot or shut down and an update applied after an evacuation, until the host is asked to act: the moves still running are cancelled through their own tasks, the VMs that already moved stay where they went, and the host is not put into maintenance, rebooted, powered off or updated. When the workflow relocates VMs powered off ("cold_relocate"), a cancel stops it before the next VM is shut down: the VM being relocated is finished (it is already off, and is started again on its new host), the others keep running where they are, and the task names the VMs that were relocated.

A task ends Cancelled only when the cancel is what stopped it. A failure that comes after a cancel was accepted stays a failure, with "after a cancel was requested" in its text, and is notified as task.failed: above all a live migration whose source reports, after the abort, that the VM may be running on both hosts, or whose outcome is unknown. A cancelled evacuation, Enter maintenance, planned reboot, shut down, update or rolling-upgrade host follows only the moves it started itself (a later move of the same VM by balancing or by hand is neither cancelled nor waited for). It waits up to 3 minutes for each of its moves still running to end: it ends Cancelled only when every one of its moves ended cancelled or finished its move (that VM is counted with the VMs that moved), and otherwise fails naming each VM whose move failed, before or after the cancel, or was still running at the end of the wait, so check where those VMs run. A deploy cancelled after its host had finished it (the answer was in flight) ends saying the cancel came too late and that the VM is there: started, or powered off when the deploy was asked not to start it. One asked to start whose new VM is there but not running fails naming it: the deploy may have finished with its start cut short (so the host kept it powered off) or the host may still be removing it, and the controller cannot tell which; check the host a minute later. For a deploy asked not to start, a host still removing the copy twenty seconds after the cancel is read as a late cancel: the task names the VM, so check the host and delete it if it is still there and not wanted. A VM of the same name that was already on the host before the deploy (read from the host as the deploy starts) is never taken for the deploy's result. The controller reads the host about ten and twenty seconds after the cancel. A library import from a URL that lands just as it is cancelled is removed by its host; if the host's answer was already on its way when the cancel arrived, the volume can stay on the datastore with no library item: delete it from the datastore's file browser.

Not cancellable: a cold migration, a single VM's cold relocation once it has started (its VM is already shut down), an OVA or disk import uploaded from the browser (stop the upload in the browser instead), maintenance exit, a revert, a Kubernetes operation and anything the controller does on its own. A host on an older release has no cancel route for a storage move or a clone; the cancel is refused saying so. A cancel during a clone copy on a libvirt-copied disk ends the copy by closing the connection; libvirt may still be writing the volume for a moment, and a volume it would not let go is named in the task.

Pause. Only a rolling upgrade pauses: it holds before its next host (a host already being upgraded is finished first). The pause is recorded the moment it is given, also while a host is being upgraded, so it holds across a controller restart at any point; the Updates tab shows it at once. An evacuation or an Enter maintenance does not pause, because all of its moves are handed to the hosts at once and queued there: cancel it instead.

Schedules. POST /api/v1/scheduled-workflows (and the cluster's Settings → Updates tab) starts an Enter maintenance, an evacuation or a rolling upgrade at a set time, up to 90 days ahead, as its author. An unattended maintenance or evacuation only ever moves VMs: shutdown mode, "shut down the VMs that cannot move", cold relocation and the storage-safety override are refused when scheduling. A scheduled maintenance refuses when a VM cannot move; a scheduled evacuation moves the VMs that can and leaves the others running where they are, naming them, as any evacuation does. When it comes due the author is checked again as a request would be: a local account must still exist and be the same account, an API token it was made with must still be valid, a directory account must still be found in the directory (its groups are read again; a directory that cannot be reached refuses the start), and a single sign-on provider must still be configured. Then the author's privilege is checked against the permissions as they are then. A directory set up with a bind template cannot look accounts up, so its authors keep the groups they had when they scheduled. A schedule that came due while the controller was not running, while it could not prove it is the active controller of a pair, while it was holding after a restore from a backup (until Resume), or before the scheduler of the controller that is active now started (a restart, a standby taking over), is marked missed and never started late: resuming after a restore does not start a schedule whose time passed during the hold. Schedules are not part of a controller backup: a restore keeps the schedules the controller has, so it can never bring back one cancelled after the backup was taken. The scheduler checks every 15 seconds, so a schedule starts up to 15 seconds after its time.

The rolling upgrade on NFS, SAN or local storage. A cluster with no SimpleVirt HCI storage now has a rolling upgrade (POST /api/v1/clusters/{id}/rolling-upgrade, and Settings → Updates), gated on its hosts instead of storage resiliency: every member reachable with the image staged, at least two members, every running VM of every member able to move (decided when the run starts and again before each host), every other member online and not in maintenance or an outage of its own. A VM whose disk is on a host's local datastore cannot move live, so such a host refuses the run: shut those VMs down or move them first. Whether a cluster is HCI is read fresh from its members at the start; a member that cannot say refuses the start.

The rejoin wait. A planned reboot, and every host of a rolling upgrade, waits for the host to come back for the cluster's planned reboot wait (default 15 minutes, 5 to 240) or twice the longest reboot seen for that host, whichever is longer, capped at 240 minutes. The longest reboot is learned only from reboots SimpleVirt-Command followed. The HA update-shield of such a reboot follows the same wait: once the host has gone down, HA does not treat it as failed until 30 minutes after the shield was armed or the host's wait (plus 4 minutes for it to go down) after it went down, whichever is later. On a cluster whose controller-independent HA is armed, the planned-outage window announced to the hosts is extended to the same instant (a fixed time, so it still lapses on its own if SimpleVirt-Command goes away), and the window is announced again after a controller restart while the host is down; both HA authorities therefore wait out the same wait. A planned shut down is not expected back: its shield, and the window announced for it, keep the plain 30 minutes from when the shield was armed, after which a host that stays off reads as down, the host-down alarm is raised and HA recovers the protected VMs left on it. A host shut down by a release before this one, and still off when the controller is updated, is protected as a planned reboot was then (its record does not say it was a shut down). A longer wait therefore also delays HA's response to a host that really died during its planned reboot, by up to that wait. After a controller restart the wait can be counted again from the first moment the restarted controller sees the host down, never past the longest a shield can last (30 minutes plus the host's wait plus 4 minutes from when it was armed). A shield armed before a long evacuation still ends 30 minutes after it was armed if the host has not gone down by then.

Needs a real-hardware run. The cancels, pauses, schedules, the standard rolling upgrade and the learned rejoin wait are verified with simulated hosts only. Not yet run on real servers: a live migration aborted part way under load, a live storage move aborted on NFS and on HCI storage, an offline storage move and a clone cancelled on each datastore type (including the libvirt volume copy still writing after the cancel, and a cancel landing as a live move switches over), a deploy cancelled mid-copy and just as it finishes, a URL import cancelled as it lands, an Enter maintenance with cold relocation cancelled between VMs, a rolling upgrade paused mid-host across a controller restart, a planned reboot of a slow-booting host past 30 minutes with HA armed (with and without the controller-independent HA armed), a planned shut down of a host left off past 30 minutes, an evacuation cancelled while one of its moves ends split, and a rolling upgrade of an NFS or SAN cluster with real reboots.

96. Restarts by the cluster services: BMC policies, UEFI settings and host rules on the hosts

SimpleVirt-Command now hands every host of an HA cluster what the cluster services need to restart VMs as it would, while it is down: the BMC settings of the cluster's hosts whose BMC is Ready, a copy of each UEFI VM's UEFI settings, and each VM's Required host rule (in its recovery manifest, §35). The edges:

  • Every host holds every Ready BMC's credential of its cluster. It is sealed under a key of the cluster's own (not the controller's BMC key), and the host keeps that key beside it in its data directory (cluster-fence/, readable by the SimpleVirt service only), so anyone with root on a host can power off the cluster's other hosts through their BMC. The fencing table says, per host, how many other hosts its copy can power off. A host whose BMC stops being Ready (a failed or changed test) is dropped from every copy within a minute; a host SimpleVirt-Command cannot reach keeps its old copy until it can.
  • A host that dropped its copies gets them back once it answers again. SimpleVirt-Command cannot see a host clear its copies (an unpair at its console does), but the host stops answering it while that happens, and SimpleVirt-Command stops trusting what a host held while it does not answer: the fencing table shows that host's last confirmed copy as "Unconfirmed (host away)", and the first pass after the host answers again (each minute) sends the BMC set and every UEFI copy once more. So a host whose connection to SimpleVirt-Command flaps is sent the set (one request) and a confirmation per UEFI VM (the UEFI data itself only when the host says it lacks it) each time it comes back; the copies go to a store of their own, never to a VM's live UEFI settings. A host that dropped them without ever missing a poll would get them back only at the next confirmation: the BMC set within 15 minutes, the UEFI copies within 6 hours.
  • A host that leaves drops the copy, unless it never answers again. Removing a host from SimpleVirt-Command unpairs it, and an unpaired host (also one unpaired from its own console) deletes the BMC settings, their key and the UEFI copies it held. A host moved out of its cluster, whose cluster was deleted, or left as its cluster's only host is sent an empty set within a minute. A host removed while it is down is unpaired, and so cleared, when it comes back within 90 days (the removal retries until then); a host that never runs again keeps the files on its disk, so wipe its disks before you reuse or dispose of it.
  • The hosts' power-off has fewer checks than SimpleVirt-Command's. A host powers a failed host off only for a recovery the cluster services planned, only when the cluster confirmed that host unreachable on both networks, never itself, and only after the BMC reports that host's own system identity; for an NFS VM only once its lease is quiet and held by that host. It does not check, as SimpleVirt-Command does, whether the failed host still runs VMs no restart would cover, so those stop with it.
  • SAN VMs are restarted by the cluster services on BMC proof alone. A LUN has nothing of its own that stops two hosts writing it, so the cluster services start a SAN VM only after the host that restarts it has powered off, through each one's BMC (identity checked, Off read back), every host that may still write the disks, each one seen down by the cluster on both networks and never itself, and then waited 5 seconds for writes in flight. Every host that may still write them includes, besides the failed host, any host an earlier attempt of the same outage was sent to and that failed part-way: before a restart is sent, the host it goes to is recorded in the cluster's replicated state, so a later plan (after a change of cluster leader too) always knows it may have started the VM. A host of that set that comes back is not powered off: it is asked, and the VM stays with it if it runs it there; if it does not, it is barred from starting the VM and is no longer waited for. The cluster services take a SAN VM only while its host has a Ready BMC and every host runs this release (§5); a host without one cannot have its SAN VMs restarted without SimpleVirt-Command, and there is no operator confirmation on this path. If a host's BMC stops being Ready after its SAN VMs were handed over, those VMs wait for that host to come back (or for its BMC) while the cluster services hold HA authority: fix the BMC test, or disarm to hand recovery back to SimpleVirt-Command, which takes your confirmation.
  • UEFI settings are as of SimpleVirt-Command's last copy. It reads a VM's store at most once a minute and sends a changed copy to the other hosts on its next pass (each minute), so a change made in the last two minutes or so before SimpleVirt-Command went down can be missing. A host drops a copy SimpleVirt-Command has not confirmed for 30 days, so a VM whose controller has been down that long restarts with default firmware settings.
  • Hosts of an earlier release get none of it. BMC copies and UEFI copies go only to hosts of this release, and host rules travel only when every host of the cluster runs it (§35).
  • Proven by tests only. The push, the identity checks before a power-off, the NFS steal with BMC proof, the SAN restart with its start ticket and bar, the UEFI copy and the host rules are tested with fake hosts and BMCs; none has run on real servers, a real array or a real BMC yet.

What to do. Keep every host updated, keep each host's BMC test passing on the fencing table, and treat root on any host as able to power off its cluster's other hosts.

97. Kubernetes etcd backup: what it covers and what is not proven

A Kubernetes cluster SimpleVirt builds can take scheduled etcd snapshots and keep them on the datastore its storage add-on uses (etcd backup and restore (in the appliance's documentation)). The control planes take them on their own, without SimpleVirt-Command. The edges:

  • Off the cluster, not off SimpleVirt. Snapshots are kept on the same SimpleVirt NFS export or HCI storage as the cluster's volumes. Copy them somewhere else as well (the cluster's etcd-backups folder, or its sv-etcd- RBD images) if losing that storage must not lose them. There is no S3 or other target yet.
  • The storage add-on comes first. A cluster without it, or on a local or SAN datastore, cannot turn the backup on.
  • Secrets are in the clear in every snapshot, as in etcd. Whoever can read the export folder or the RBD namespace can read them.
  • Restoring several control planes is partly by hand. The restore makes one control plane the only etcd member; the others are reset and joined again (Add control planes, or kubeadm join by hand without SimpleVirt-Command). The restore refuses while another control plane's etcd still answers from this node, and while another control plane's etcd ports (2379, 2380) or API server port (6443) still accept connections from this node (an etcd that lost its quorum is not healthy but was not reset either; --ignore-listening-peers overrides this once you have checked those hosts yourself), and, when the local etcd cannot say how many members it has, until the operator says whether this is the only control plane (--only-control-plane) or the others were reset (--rejoin-others). It learns the members from etcd itself when it answers, and otherwise from the member list each timer run keeps on the node, etcd's manifest, the control-plane nodes the Kubernetes API lists and the nodes that took snapshots; it checks each one it has an address for with etcdctl run from the node's etcd image (so also when the local etcd is down), and refuses when that check cannot run. A control plane none of these names (added since the last timer run on this node, while the API is down too) is not checked, and one known only by the name on its snapshots is counted but not checked.
  • A network partition looks like dead control planes. "Answers" means answers from the control plane the restore runs on. If a partition cuts that node off from the others while they still hold etcd's quorum, nothing of theirs answers from here, the restore goes ahead with --rejoin-others, and the cluster then has two etcds and two API servers on two states (both of which may claim the API's virtual address). Before --rejoin-others, check from outside that node (each control plane's console or BMC, or another network) that every other control plane is reset or powered off.
  • After a restore, restart the controllers and the kubelets. The restore raises etcd's revision and marks the skipped history compacted, so watches start over instead of waiting on revisions that already passed; the runbook still restarts the controller manager, the scheduler and every kubelet, so nothing keeps state from before the restore. An etcd image older than 3.5.13 cannot raise the revision: the restore refuses it unless given --no-revision-bump.
  • Room on etcd's disk. etcd writes each snapshot on its own data disk before it is copied off. A snapshot is skipped, and the last run says why, when that would leave less than the database's size plus a fifth (at least 512 MiB) free.
  • A slow NFS server fails a run, it does not hang it. The export is mounted soft (unless the add-on's settings name other options), so a dead server fails the run after about a minute, and the last run on the cluster's page says why; a copy that fails part-way is never kept, and its partial file is removed (when the server lets it be). A run that saved its snapshot but could not remove the older ones counts as a backup: the card says OK with a warning that older snapshots were not removed, and the next run tries the removal again, so until then more than the kept number stay on the datastore.
  • A control plane added outside SimpleVirt gets no timer until the backup is set again from the cluster's page. Backups go on as long as one control plane with the timer is up.
  • Two control planes can take a snapshot at the same moment; both are kept, and retention counts both.
  • Updating SimpleVirt-Command does not replace the program on the control planes. It is put there when the backup settings are saved and when control planes are added; save the settings again after an update to give every control plane the new program.
  • The node program needs python3, which every SimpleVirt node image and cloud image carries, and the etcd image the control plane runs, for etcdutl.
  • Proven by tests only. The backup, retention, the checksum on fetch and the restore with its roll-back run against fakes of kubectl, crictl, mount, rbd and ctr; no snapshot has been taken or restored on a real cluster, NFS export or Ceph pool yet.

What to do. Turn it on for every cluster that matters, copy the snapshots off SimpleVirt storage too, and rehearse a restore on a test cluster before you need one.

98. API contract: what the request contract covers

Every API error now has the envelope {error, code, hint, request_id}, every response names its request id, the main mutable objects take If-Match, creates and moves take Idempotency-Key, a VM has a uuid address that follows it, and the task history is queryable (API reference (in the appliance's documentation), error codes (in the appliance's documentation)). The edges:

  • If-Match covers a VM's configuration and a cluster's stored settings. A VM's version is taken over its configuration (CPU, memory, disks, NICs, boot, firmware, reservations, name, description); a change to a setting kept elsewhere (its snapshot policy, its monitoring, its HA restart priority) does not move it. A cluster's version is its whole stored record, so any change to the cluster (a rename, HA, the workload distributor's rules and groups, a formation step) moves it. Datastores, networks, folders, hosts, settings and roles have no version yet. Writers that send If-Match are serialized; a change that does not send it (an older client, the controller's own engines) can still land between the check and the write of one that does.
  • Idempotency keys live in the controller's memory for 24 hours. A controller restart, or a failover to the standby controller, forgets them, so a retry after that is carried out again. Keys are per caller; at most 5000 are kept. A key on a VM route belongs to the VM's uuid, so a retry after the VM moved (a migration, an HA restart, a rebalance) is still replayed, by either address.
  • Some 202 answers name no task, because their work is not one task with an end: requests handed to an engine or a host that acts on them later (an HA stale-plan correction, a watchdog reset test, a host address resync or approval, a migration CA rotation step), desired state a reconciler converges (a cluster switch change, a datastore mount on the members), and work tracked by its own object (a cluster services formation, a library upload import, update and SimpleVirt-Containers jobs, a WAL base backup, a Kubernetes etcd backup, a site maintenance's per-VM results).
  • The request id stays on this side of the host. The controller does not send its request id to the hosts it calls (it does send it to SimpleVirt-Containers), so a host's own audit record of a proxied change has the host's id, not the controller's; a relayed host refusal carries both (host_request_id).
  • The fleet event filter covers the merged tail: the newest 250 audit records of the controller and of each host, and the newest 500 alarm changes, at most 2000 together. Older controller history is the audit archive, which takes the same target and type filters; older host history is each host's own log.
  • Task history is 30 days with a ceiling of 20,000 tasks; the audit archive remains the permanent trail. A running task is never pruned, by age or by the ceiling. On the database-backed log the pruning runs at most once a minute (or after 200 new tasks), so the log can hold up to 200 tasks over the ceiling for that long.
  • The Tasks and events tab of a VM, a host and a cluster lists the object's tasks by its id (a VM's uuid, a host's id: every task on the host, its VMs' included, a cluster's id) over the 30 days of task history, and its events over the merged tail above only, so on a busy fleet a VM's events from a few days ago are no longer in the tab while its tasks are; the controller's older events are in the audit archive (Tasks and events → Audit archive, filtered by the VM's uuid or the host's id), a host's in its own log. A VM's and a cluster's events are those whose target names its id; a host's are those it recorded in its own log and those whose target names it (about). An alarm change is listed by the ids it is about: a cluster's alarms on the cluster's tab, a host's (a shared datastore's included, carried by the host that saw it) on the host's, and a VM's on the VM's when the alarm names the VM by uuid (a crash, a lost guest heartbeat, high CPU or memory, an old snapshot, an unreadable VM, an HA isolation stop, a VM running where its host rule forbids, a held snapshot schedule). An alarm about a rule rather than one VM (a broken affinity rule, a host rule that cannot be met) is on its cluster's tab only, and the controller's own alarms are on no object's tab; all of them are in the fleet feed and on the Alarms page. A VM task is listed by the VM's uuid, which a task learns when the VM has one: a create or a provision that failed before the host made the VM has none and is listed only on the host's tab. A task recorded before tasks carried an id (rows from an older release) has none either; the dock's Tasks and events still has both. A cluster's Recent activity card shows its own tasks and, from the newest 200, its member hosts'. The events, and the CSV exports of both lists, need the audit read privilege (audit.view).
  • Lower-level failure codes come from the failure's sentence. When a handler relays a hypervisor or storage-cluster error without a code of its own, the envelope names the failure from its words (hypervisor_vm_not_running, storage_full, ...; error codes (in the appliance's documentation)). A failure worded in a way the list does not know keeps the generic code of its status; the codes are for branching, and the sentence remains the full account.
  • SimpleVirt-Containers keeps detail and its own codes. Its API answers the same envelope (error, code, hint, request_id) with FastAPI's detail kept beside it, and its codes are its own catalog (the error-codes.md guide shipped with it), not this one. The controller sends it its request id, so a relayed console refusal and the console's log lines name the controller's id; the console's audit log entries do not carry a request id, and its Copy details is on its error notices only, not on an error a dialog shows in place.
  • No OpenAPI document yet, so the routes and their codes are described in the API reference by hand.

What to do. Send If-Match on every change a script reads first, and an Idempotency-Key on every create, clone, deploy and migrate it may retry; branch on code, never on error.

99. Controller scale: what is cached, what is still re-read, and what is measured

SimpleVirt-Command now writes and reads its database far less at fleet scale: an HA pass that changed nothing writes nothing, the poller no longer rewrites every host's identity on every poll, the host and cluster lists are answered from memory while nothing has changed, API reads are conditional and compressed, and the "Show all" VM table draws only the rows near the screen. The edges:

  • On a live fleet the VM and host lists change on every poll, so they are compressed, not answered 304. Each VM row carries its host's last-seen time and each running VM its live CPU and memory use; each host row carries its last-seen time and its CPU and free memory. The poller refreshes those every 5 seconds, so a re-read of GET /api/v1/vms or GET /api/v1/hosts a poll later is a new answer: it is sent in full, gzip-compressed (about a tenth of the plain size). A 304 Not Modified with no body is what the reads whose content does not move per poll get when nothing changed, such as the cluster list, folders and settings.
  • A single VM or cluster read is never answered 304. Those reads carry the object's version as their ETag, which is what If-Match checks on a change. The version does not cover live state such as power or CPU use, so a matching If-None-Match still gets the full (compressed) body rather than a 304 that could hide a state change.
  • The fleet lists are still built in full on every request. A 304 saves the transfer, not the controller's work: the list is built, filtered for the caller's permissions and hashed each time, so many open browsers still cost the controller CPU. There is no change feed for the inventory yet (tasks and HA events have their event streams).
  • The console reads the whole VM and host lists. ?limit=, ?offset= and ?sort= on those two endpoints are for API clients and scripts. The console needs every row anyway: the fleet summary, the unreachable-host banner, the counts and the inventory tree are drawn from the whole fleet, so it reads it all and sorts and filters it in the browser.
  • What a poll redraws. Every answer is parsed again. A poll in which nothing a row shows has changed touches no part of the VM table (only the live usage figures move in place), and the inventory tree updates only the rows that changed. With Show all on a list longer than 300 VMs, only the rows near the screen are drawn (about 40 rows past each edge), and a scroll draws the next ones. Two consequences: the browser's own find-in-page sees only the drawn rows (the table's search box searches every VM), and the Home and End keys move to the first and last drawn row, then further as the table scrolls. A shift-click selects every row between the two clicks, drawn or not, across folders too. The spacers that stand in for the undrawn rows use one row height, measured when the table is first drawn and again after the window is resized; where some rows are taller than others (a long name that wraps), the scrollbar is a close estimate rather than exact. The card view, and the tree's open branches, keep every row in the page; the tree's rows are only laid out and painted near the screen.
  • The read cache is per controller process and checked on every read. Each read of the host or cluster list costs one small query (the registry change counter); an answer is served from memory only when nothing changed since it was read, so it is never older than a full read. The counter is checked together with the version of the row that holds it, so restoring a backup (which puts back an older counter value) cannot make an old answer look current. Other tables (folders, Kubernetes clusters, CPU records, fence policies) are read as before.
  • HA state saves are compared row by row in memory. The controller remembers what it last wrote; an unchanged row is skipped. Every 15 minutes, and after every start, the whole state is written again regardless, and a table whose row count does not match is rewritten in full.
  • The pool size is one setting (database.max_conns, default 32, kept between 2 and 90; see config.command.example.yaml). It applies to every connection pool the controller opens from its configuration: the active server, the standby of a controller pair, the user commands and the break-glass password reset. It is not adjusted to the database's own max_connections.
  • The console keeps at most 16 MB of answers per tab for its conditional re-reads (at most 64 of them, none over 4 MB); a larger answer is simply read in full every time.
  • Measured on a development machine, not on an appliance. At 64 hosts / 8 clusters, one host and cluster list read went from 3.9 ms to 0.6 ms (unchanged) and 1.6 ms (changed). Saving the HA state of 2,000 protected VMs went from 1.1 s and 1.2 MB of database log per pass to 24 ms and no log when nothing changed. A 2,000-VM list went from 444 KB to 44 KB compressed; on a live fleet that is what every 5-second re-read of it costs, because it changes every poll. These are benchmarks against a local PostgreSQL in a container, not a run against 64 real hosts.

100. Workload Distributor: smoothed load, placement at power-on and several moves at once

What it does. The distributor weighs each member by its CPU and memory averaged over the last 5 minutes of polls (recorded about every 15 seconds), with the CPU ready time of its VMs counted as CPU demand, and makes or recommends a balancing move only after the averaged gap has stayed over the threshold for three checks in a row. In Recommend mode it lists a plan of up to five moves; in Automatic mode it runs up to Moves at once (1 by default, up to 8) between hosts no other move uses. A VM can be set to Manual, Partial or Full automation. When a stopped VM is powered on in a cluster whose distributor is on, it may first be moved, definition only, to a member with more room (Automatic mode), or the answer says which member the distributor would choose (Recommend mode). A new VM created on the cluster, a template deployed and a powered-off VM cloned with Best host in the cluster are placed by CPU, memory and vCPUs, not free memory alone. An evacuation ranks its destinations by the same score and the VM's preferred rules (§133). The number of live migrations arriving at one host at once and the number one host sends (automatic from its migration link: 2, 3 or 4; or 1 to 4), and a cluster-wide limit (none by default, up to 32), are settings on the cluster's Networks tab.

What it does not do.

  • The averages live in SimpleVirt-Command's memory. After a restart of SimpleVirt-Command the window starts empty: the first checks weigh fewer samples, and the three-check count starts again.
  • After a live move the averages of its two hosts start again. Samples from before the move would keep showing the load it removed for minutes, so they are dropped when it ends; until the window fills again (5 minutes) those hosts are weighed on fewer samples. Until each has three fresh readings (about 45 seconds after its figures include the move) no balancing move is made from or onto it, and the status says it is waiting for them; relief of a host with more memory promised than it has, and moves back into line with a required rule, are not held.
  • CPU ready time needs a host that reports it. A host on the per-VM statistics path (an older libvirt) reports none, so its load is its CPU use alone.
  • No cost model for a move. A move is weighed by the loads it changes, not by how long it takes or how much it carries; a large, busy VM is moved like a small one when it improves the balance most.
  • A plan is applied one step at a time. Steps after the first are weighed as if the ones before them were made. While an applied move runs, and until both of its hosts have reported afterwards, no other move starts in the cluster (with Moves at once above one, none that shares a host with it), and the plan is then weighed again, so a later step may change or go. Applied out of order, or after the cluster changed, a step can be refused.
  • Placement at power-on moves only a VM whose disks are on storage both members mount, and only from a host that can free a stopped VM's storage lease (this release). A VM on one host's local storage, or with a PCI device passed through, powers on where it is. A recovery power-on (taking over a copy, or after confirming the owner is off) is never re-placed.
  • Only a full clone of a powered-off VM is placed. A clone of a running VM, a linked clone, a clone from a snapshot and a sealed copy are made on the VM's own host, even with Best host in the cluster. Kubernetes nodes are placed by their own spread rules, not by this score.
  • Power-ons placed at the same moment are booked one after another. Each placed VM's memory is booked on its new member until that member reports it, so a bulk power-on spreads out; a member that filled up meanwhile is not chosen, and that VM powers on where it is defined.
  • A second power-on of a VM being placed is refused. While the distributor moves a VM's definition before powering it on, and until the start on its new member has been answered, another power-on of the same VM (a retry after a timeout, a double click, a page refreshed fast) is answered 409 and moves nothing; the first one powers it on. A start sent to the host directly, past SimpleVirt-Command, is caught before the old definition is removed: the host itself never removes the definition of a running VM, and SimpleVirt-Command checks the old host once more just before, so the answer says the VM was started there. Either way the move is taken back and the VM stays defined, and running, on its old host.
  • A power-on of a VM that is still shutting down does not stop its restart. When a move gave up waiting for a guest to shut down, SimpleVirt-Command watches it and starts it again where it was once it is off. A power-on sent meanwhile is refused (the VM is not off yet) and leaves that watch in place; only a move that actually goes ahead ends it.
  • Automatic migration limits follow the reported link speed, not measured throughput. A host's migration path (its migration adapter, else management, down to the physical ports) gives 3 moves at once from 10 Gbit/s and 4 from 25 Gbit/s when it shares no port with management or storage, and 2 otherwise or when a port's speed is not reported. A congested or lossy fast link still gets the higher number; set the limits by hand for it. The reading is kept 2 minutes. How long an evacuation takes is not measured or predicted. A move waiting on the cluster limit keeps waiting while any move in the cluster makes progress, and gives up after 30 minutes in which none did.
  • The sending limit reaches hosts of this release only. A host from before it keeps its own migration: { max_outgoing: N } (2 by default), and SimpleVirt-Command does not send it the cluster's number (it would refuse the move). A host that sets max_outgoing in its own configuration sends no more than that, whatever the cluster says.
  • Proven by tests only. The averaging, the three-check gate, the plan, several moves at once, the automation levels, placement at power-on and of clones, and the migration limits (automatic and set, sending and arriving) run against fakes of the hosts and the poller. No cluster has been balanced, nor a VM placed at power-on, nor an evacuation run with more than two moves at once, on real hosts with them yet.

What to do. Leave Moves at once at 1 until you have watched the distributor on your cluster, and raise it on clusters of four or more members. Set a VM that must stay where you put it to Manual, or give it a VM-host rule.

101. Live compute and storage migration: what is checked and what is not proven

What it does. A live move that changes both host and storage copies each disk into a datastore you choose on the destination: the source sends libvirt a destination definition naming that datastore for every disk, under the disk's own volume name, and libvirt creates each volume there and mirrors the disk while the VM keeps running. The precheck refuses, before anything moves, a disk that is not a datastore volume, a shareable disk, a target that is not a local directory or NFS datastore, a target that is the storage the disk is on already, a file of the disk's name already in the target, a target without room for what the copy writes, and install media or a read-only disk the destination cannot reach (neither is copied). The source applies the same rules to the disks it copies, and refuses a disk that is in the VM's saved settings but not in the running VM (it would not be copied, and the VM could not boot from it on the destination). With Delete the source disks once the VM runs on the destination, the source volumes are removed only after the move has finished, the VM is confirmed running on the destination from the copies, its definition is gone from the source, and every member that mounts that datastore has said no VM it defines uses them.

What it does not do.

  • A disk with a backing image is flattened. The copy holds everything the guest sees in one image, so it can take up to the disk's full size; the precheck warns when the target's free space is below that.
  • SimpleVirt HCI images, SAN LUNs, block devices and bare file paths are not copied live. Move them over shared storage, or move the disk to a file datastore first.
  • A VM with snapshots on file storage is refused, as before: the copy carries only what the guest sees. Migrate it cold, which copies the images with their snapshots.
  • The source disks of a cold move with a copy are still kept; remove them from the datastore browser.
  • A source host older than this release cannot take a chosen datastore. The Migrate wizard says so and offers no datastore picker for it; each disk then goes into the destination's datastore of its own datastore's name, as before, which the precheck requires. An API request naming that same datastore is sent as the old move; one naming another datastore is refused and says to update the source first.
  • A disk attached to the saved settings only (not to the running VM) stops a live move with disk copy; power the VM off and move it cold, or detach that disk first.
  • Proven by tests only. The destination definition, the precheck and the removal of the source disks run against fakes of libvirt and the hosts. No live move with disk copy into a chosen datastore, and no source cleanup, has run on real hosts yet.

What to do. Try one move on a test VM first. Leave the source-disk box unticked for a VM you cannot restore, and remove the source disks yourself once you have checked the VM on its new host.


Failover order, failback and ARP monitoring apply to active-backup teams only. A switch that teams in active-backup can prefer its first uplink (the others stand by in the order they are listed when the team is built), choose what happens when that uplink comes back (return at once, only when it is faster, or stay where traffic is), and monitor its upstream path by ARP. The load-sharing and LACP modes carry traffic on every member at once and take none of this.

  • ARP monitoring replaces link polling; the kernel runs one or the other. A member whose link drops stops answering too, so link loss is still caught, within about two intervals instead of 100 ms. The interval is 100 to 5000 ms.
  • Each target must be on a network of this switch where the host has a service adapter address. The kernel asks a target only when the host routes it out of the team or out of a VLAN on it. A target reached any other way (the management gateway, a server behind another switch, an address with no host address in front of it) is never asked, and the team would mark every member failed. The host checks the route to every target first and refuses the change when one does not lead through the team.
  • A new ARP monitor is kept only once it has held. When monitoring is turned on, the kernel keeps the member carrying traffic and treats each target as just answered, so a team looks healthy for about two intervals whether or not anything answers. The host therefore watches the team for four intervals plus a second (at most 21 seconds): if it stops carrying traffic, moves to another member, or counts a failure, the monitor is undone (back to link monitoring, or the ARP monitoring it had before) and the edit is refused with the reason. An edit that also changed the team's members puts the old members back.
  • A team is always built on link monitoring. At boot, when a switch gets its first network and after an uplink or teaming change, the team comes up on link monitoring and the declared ARP monitoring is armed in the background once the team carries traffic and its targets route through it (after the service adapters are back), with the same check. When it cannot be armed, the team stays on link monitoring and the switch view says ARP monitoring is declared but not in force on that host.
  • If every target stops answering later, the whole switch goes down. After the check, a target that dies, or a router that stops answering ARP, makes the kernel fail every member in turn: every network on the switch, storage networks included, stops carrying traffic (VM I/O stalls, storage disks on those networks drop out) until a target answers again. Name several targets on different devices, and prefer link monitoring on a switch whose upstream path you cannot watch from two places.
  • A change that can take an ARP target's route away suspends ARP monitoring first. Removing or re-addressing a service adapter, changing its gateway or routes, or moving its network to another VLAN, when a team's ARP target is routed through that adapter's network, first puts the team on link monitoring; once the change is over the monitor is armed and proven again. When no target is reachable through the team any more (the adapter was the only route to it), it stays on link monitoring and the switch view says ARP monitoring is declared but not in force. Change the targets, or put an adapter back on their network, to bring it back. Any other way the route can go (an operator's own route added on the host's shell) is not watched.
  • A new preferred uplink is checked before it is kept. Making a standby uplink preferred moves traffic to it at once. The host probes the addresses it reaches through the switch before the write and again after it; when one that answered stops, the team goes back on the uplink it was on, with the preference and failback it had, and the edit is refused. An uplink whose upstream port lacks a VLAN that no probed address is on is not caught.
  • Clearing the uplink order removes the preference in place (a netlink request; iproute2 has no way to say "none"). Traffic stays on the uplink carrying it, except when the order moved it less than ten minutes before (SimpleVirt-Command reverting a failed edit): then traffic goes back to the uplink it was on. That holds only for an order an operator's edit set on a team that had none: an order changed to another uplink since, or one written while the team was being built (at boot, on a re-home), moves no traffic when cleared. The memory of the earlier uplink lives in the host agent's process, so an agent restart in between also leaves traffic where it is. If the kernel refuses the request, the edit is refused and the team keeps its order.
  • With per-host uplinks, the team policy is still one setting of the switch. The switch wizard refuses to go on while teamed hosts' pickers disagree on distribution, order, failback or ARP monitoring. On a switch with an order, a host whose team prefers another uplink than its first declared one shows as differing (lds.drift), and Remediate applies the order.
  • Which standby takes over when more than two uplinks are teamed and the preferred one fails is the kernel's choice; it follows the order the members joined the team.

A storage or migration service adapter can have a gateway and static routes. The routes send traffic for other storage or migration subnets out of that adapter, and a policy routing table returns traffic that reached the adapter from another subnet the same way. What it does not do:

  • It never takes the default route, a route that covers the management network, the default gateway, the address of SimpleVirt-Command or the address of whoever makes the change. The host refuses those, and after applying routes it checks that the default gateway and those addresses are still reached the same way; if not, it removes the routes and refuses the change.
  • Routes are IPv4, at most 32 per adapter, all through the adapter's one gateway. A Logical Distributed Switch adapter takes one gateway for every host or one per host, and the same routes on every host.
  • A host-local adapter gets them through the API (gateway, routes on the service adapter); the host's own Networking page does not offer them yet.
  • A destination the host already has a route to, one SimpleVirt did not install for this adapter (an operator's route to a monitoring or backup subnet, another adapter's route), is refused rather than replaced. Remove that route from the host first, or route a different subnet.
  • A host on an older release refuses an adapter that declares a gateway; the switch view shows it as differing until the host is upgraded.

Every Logical Distributed Switch change is rolled out one host at a time and judged by what the host can still reach. Before a host is changed, SimpleVirt-Command asks it which addresses it reaches through the switch (the storage servers of its datastores, its adapters' gateways and the switch's ARP monitoring targets) and which answer; after the change it asks again, for every address it depends on, so an address the change re-routes (now reached through the management network, say) still counts as answering. The host passes when it still answers SimpleVirt-Command and everything that answered before answers again within 15 seconds. Otherwise the host is put back on what it ran before, the rollout stops there, every later host is left unchanged, and the alarm switch.rollout_failed is raised. The alarm clears only when a later rollout of the switch reaches every attached host (an attach, which changes one host, does not clear it), or when the switch is deleted. A re-home or team member change on the host itself does the same check before it answers, and puts its previous uplinks back when an address stopped answering, not only when a link stays dark. Limits:

  • An address that did not answer before the change is not held against it, and a host on an older release that cannot answer the question is changed as before, without the check.
  • An address the change itself takes away is not held against it either: the old gateway of an adapter the change removes from the host, re-addresses onto another gateway or gives another gateway, and an ARP target the change replaces or removes (all of them when it turns ARP monitoring off). That holds only once the host no longer depends on the address at all; one it still needs for something else (a datastore server, another adapter's gateway, another switch's ARP target) must still answer. The new gateway or target has nothing to compare with, so it is not judged by the rollout: the host's own ARP monitor proof checks a new target.
  • During a VLAN change, other cluster members' addresses on the network whose VLAN moved stop answering until every host has moved, so they are not held against the change. A gateway or a storage server on that network still is. A VLAN change therefore splits the hosts already moved from those not yet moved for the length of the rollout (each host's change and two short probes, more on a large cluster): on the storage network of SimpleVirt HCI the storage daemons on the other side are marked down and storage can lose quorum when about half have moved. An edit that moves a network carrying service adapters (declared on the switch, or created on a host itself on that network) or VMs, or a network on a host whose VMs or adapters could not be read, is refused with 409 until it is confirmed (confirm_disruption=true, the same confirmation as a re-home), and the switch wizard warns in its review step. Make it in a maintenance window.
  • A host that stops answering SimpleVirt-Command after its change can only be put back if the previous settings still reach it. The management network itself is never part of a switch change (the management NIC is never an uplink a change can move), so this is a safety net, not an expected path.
  • A host that does not answer SimpleVirt-Command is skipped, not failed. Nothing is changed there and the rollout goes on with the other hosts; a "Distributed switch not changed" task names it. Once it is back, the switch view shows it differing from the switch, and Remediate brings it in line (showing first what it would change there). Until then that host carries the old settings: a VM moved onto it by HA or a migration meanwhile gets the old VLAN of a changed network, and a new network is missing there.
  • An edit puts a failing host back on the switch as it was declared before the edit. A Remediate, and a host that is attached and already carried the switch, are put back on what the host reported running just before its change (uplinks, teaming, MTU, team policy, networks and their VLANs and policy, SimpleVirt-Command's adapters with their addresses and routes). A host that had no copy of the switch before has nothing to go back to: a failure stops the rollout and raises the alarm, and the host keeps the new settings.
  • A host proves a re-home, a team member swap or a new ARP monitor before it answers, so SimpleVirt-Command waits up to 130 seconds for each host's answer before it counts that host as failed.
  • The check pings with normal-size packets, so a raised MTU that the upstream switch drops for large frames is not caught by it.
  • A rollout of a large cluster takes longer than the parallel push it replaces: each host adds its change and two short probes.
  • A rollout runs in SimpleVirt-Command's memory. It keeps its progress on the switch, so when the controller restarts, or its active role moves to the standby, part-way through, the hosts it had not reached keep the old settings and the alarm switch.rollout_failed is raised naming them, about 15 minutes after the rollout last moved on. A change of the same switch made before then (an edit, an attach, a Remediate) takes those hosts over: it keeps them in its own progress, and any it does not change itself raise the alarm when it ends. The rollout itself is not resumed: Remediate brings those hosts in line.
  • A switch whose networks carry no gateway, datastore server or ARP target gives the check nothing to probe: only "the host still answers SimpleVirt-Command" is judged there.

What needs a real network to prove: ARP monitoring against a real gateway on tagged networks, including how long a real kernel keeps a team carrying after monitoring is turned on for targets nobody answers (the check above assumes at most four intervals) and the route check against the kernel's own choice of which targets to ask; clearing a preferred member through netlink and moving traffic back with active_slave on a real team; failback timing on real NIC failover; routed NFS and migration through a real router; and the rollout check against a real upstream switch with a missing VLAN. The behaviour is covered by tests against a simulated kernel that models that grace (and a team that flaps when its standby members see other traffic) and simulated hosts.

103. Clones, linked clones, hot-add and export: what holds and what does not

CPU and memory hot-add. A VM grows while it runs only up to the maximum it was last powered on with. A maximum set or changed on a running VM is saved and takes effect at its next power-off and power-on; until then Edit settings says so. A VM created before this release has no maximum and keeps working exactly as before: give it one, then power it off and on.

  • Memory is hot-added as memory modules of the difference, in steps of 128 MiB, at most 16 times between two power-ons; the saved definition always holds the grown size as plain memory, so every slot is free again at the next power-on. Memory and vCPUs are never removed from a running guest: a shrink is saved for the next boot.
  • Whether the guest uses what was added is up to its operating system. Current Linux brings hot-added vCPUs and memory online on its own when its memory auto-online setting or a udev rule does (most distributions ship one); an older kernel needs them brought online by hand. Windows Server uses them depending on its edition; Windows client editions only after a restart.
  • A memory maximum gives the VM one guest NUMA node. A VM with a NUMA layout of its own (more than one cell) is refused a memory maximum rather than having its layout replaced.
  • An HA restart rebuilds a VM with its maxima. A survivor host on an older release rebuilds the definition without them, so the recovery manifest it computes differs and it refuses the restart of that VM. So SimpleVirt-Command gives a VM headroom (Create VM, Edit settings) only while every member of its cluster reports this release (a member that has not reported yet counts as older), and names the older members otherwise; removing the headroom, or a maximum no larger than the size, is always allowed. Not covered by that refusal: a VM that already had headroom when an older host joined the cluster, and a copy (clone, template deploy) of a VM that has headroom, which keeps it. Such a VM loses HA failover to the older members until they are updated; keep every host of a cluster on the same release.
  • Memory added to a running VM is a new promise of host memory (the start admitted only the memory the VM booted with), so it passes the host's memory fit check like a power-on: refused with nothing changed when the host cannot hold it, unless the operator confirms (force_overcommit) or the host allows overcommit; memory a VM locks must be free.
  • vCPU hot-plug and memory modules were exercised against libvirt definitions and a modelled libvirt in tests, not on a real guest: a hot-add on real hosts with a Linux and a Windows Server guest, and a live migration of a VM that has hot-added memory, still need a run on real hardware.

Hot clone of a running VM. The copy is made from one point in time across all the VM's disks while it keeps running. On file storage that point is a push-mode backup job of the emulator, which needs libvirt's backup support on the host and is refused while a backup session of the VM is open; it writes into the clone's new volumes on the destination datastore (file storage only), so the destination needs room for the whole disks. On SimpleVirt HCI the point is an RBD snapshot of every disk, removed once the clone stands alone. The guest is frozen for that instant when SimpleVirt Guest Tools or a qemu-guest-agent answers (quiesce: required refuses otherwise); without a freeze, an HCI VM with several disks is copied one disk after another (each crash-consistent on its own), never with the guest paused for it. A hot clone starts with the same guest identity (host name, addresses) as the running source unless guest customization is given. A hot clone stays on the source's host. One point-in-time copy of a VM runs at a time: a second clone or export of the same VM, and a backup session of it, are refused while one runs.

While a hot clone or an export copies a running VM on file storage, that VM cannot be live-migrated: the copy is a backup job in the emulator, and libvirt refuses to move a VM that has one. SimpleVirt refuses the move up front and says a clone or export holds the VM, so a maintenance enter, a balancing move or a host drain reports that VM as not moved; cancel the clone or export task, or let it finish (a copy of a large VM can take hours), then move it. A copy that fails or is cancelled aborts its backup job and waits up to two minutes for it to end before its files are removed; if the end cannot be confirmed the task says so, and the job, if it still runs, ends by itself. It aborts only its own job: a backup job of the VM that started after it (one begun outside SimpleVirt, since SimpleVirt starts none while the copy holds the VM) runs for a shorter time than the aborted one had, and is left alone.

Linked clones. A linked clone is made of a template, on the template's own datastore, or of an HCI snapshot.

  • On file storage its disks are qcow2 overlays backed by the template's disks, each naming its base relative to the datastore's directory, so a clone opens on every host that mounts the datastore, whatever name the datastore has there (HA restart, migration). While any overlay names a VM's disk as its base, that VM is not deleted with its disks, not powered on, not reverted to a snapshot, not moved to another datastore (offline or live) and not turned back into a VM, and its files are not deleted or overwritten from the datastore browser (an upload of the same name, on any host) or deleted from the volume list. This is checked for every VM on file storage, not only for one this host marks as a template: the mark is a record on one host, the overlays are on the storage.
  • How the overlays are found. The host process (which runs as an unprivileged user) lists the base's datastore directory itself, so clones made on other hosts of a shared datastore are found and no libvirt datastore lock is held. libvirt makes every disk image readable only by its owner (root, or the emulator's user while its VM runs, or the export's user on a root-squashed NFS export), so in practice the host process can open almost none of them. Every overlay SimpleVirt makes therefore gets an empty record file next to it, written just before the overlay (.simplevirt-link.<hash of the base>.<hash of the clone>; written through libvirt where the host process may not write the directory). The record's name says whose overlay the file is, and listing the directory is enough to read it. libvirt is asked only about the few files a record names as overlays of the base in question (their volume description confirms the backing file), never about every image. For a file the host process can read, its header decides and the record does not count. A file with a broken header (a failed copy or upload left under its final name) names no base, so it blocks nothing, itself included. A record goes away with its overlay. One left behind (its overlay removed outside SimpleVirt) is removed by the next delete-type check once it is ten minutes old, and can be deleted by hand once its overlay is gone. While the overlay is there, removing the record by hand is refused.
  • What a check can miss. An overlay made outside SimpleVirt (qemu-img create -b on a host) has no record, so it is found only if the host process can read its header. Every linked clone SimpleVirt makes carries one.
  • Delete, overwrite, move, revert and unmark (a strict check): a recorded overlay that this host's libvirt has not listed yet (another host made it) makes libvirt re-read the datastore once. A recorded overlay libvirt still cannot confirm refuses the change rather than allowing it. A directory read that fails outright (permission denied) is done through libvirt's re-read of the whole datastore instead. A directory that does not answer within 15 seconds (a hung NFS server) refuses the change, without that heavy re-read against the same stuck storage. Only one read of a directory runs at a time, however many operations ask: a later caller waits for it, so a hung server holds one thread, not one per retry.
  • Power-on. A power-on is refused only for a clone found by its header or its record. It never asks libvirt to re-read the datastore: a recorded clone this host's libvirt has not listed (or cannot describe) counts on its record alone, so a power-on of the base sees a clone another host made. A directory that cannot be read, or a read that takes longer than 15 seconds, leaves the check out, with a warning in the host log. A power-on of a VM on file storage lists its datastore directory and tries the first 4 KiB of each image there (most of those reads are refused at once for lack of permission). It reuses another power-on's reading of the same directory up to 5 seconds old. A power-on of a VM that is no base asks libvirt nothing. (An HA restart does not go through this check.)
  • SimpleVirt-Command's in-use question tells each host how to look. A download does not look for linked clones at all, since they do not mind it. The orphan report lets each host reuse its reading of the datastore for 30 seconds across all candidates, and the reclaim asks again afresh before it removes anything. A delete or overwrite always reads afresh.
  • Uploads. An upload over a file is checked before its data is read and again as the new file replaces the old one. A linked clone another host makes of the file between that last check and the replace (a few milliseconds) is not seen, since there is no lock across hosts.
  • A running linked clone holds its template's disks open for reading. That is no reason to refuse a copy of the template: another linked or full clone, an export or a deploy of it is refused only while something holds a disk open for writing (QEMU's write lock, or a lock manager's lock on a running disk).
  • A template is not cold-migrated to another host (its template mark stays on its host, so it would arrive as an ordinary VM): deploy it to the other host instead, or unmark it first.
  • A powered-off linked clone on file storage cannot be cloned, exported or offline storage-migrated by copying its files: an image that names a backing file is never copied by name (that rule keeps a crafted image from pulling a host file into a copy). Power it on and clone or export it running, or make it independent by migrating its storage while it runs. A cold migration to another host copies its files the same way and is refused likewise.
  • On SimpleVirt HCI a linked clone is a copy-on-write child of a protected snapshot of the template made for it (svlink-…), or of the snapshot it was cloned from. Ceph refuses to remove a snapshot a child depends on; SimpleVirt refuses the delete of such a snapshot, and of a VM whose disks have such children, before anything is undone, and a live or offline storage move of such a disk. The snapshot made for a linked clone is removed once its last clone is deleted, and when a create that made one fails after it; a volume delete of the base (the content library's delete of a node image) removes the ones no clone depends on any more before it removes the image.
  • Kubernetes nodes are linked clones of their node image by default (a cluster's first nodes, a worker scale-out and a control-plane replacement), where that is as movable as a full copy: when the node goes on the image's own datastore and that datastore is shared NFS storage or SimpleVirt HCI. On a host-local directory datastore, on another datastore than the image's, on a SAN datastore, or on a host from before this release, a node is a full copy as before. While nodes use it, the node image is not deleted (datastore browser, volume delete, or the content library's delete), on file or HCI storage, nor overwritten by a datastore browser upload of the same name (file storage). A powered-off node on NFS cannot be moved to another datastore offline or cold-migrated by copying its files (see the next point); move it while it runs, or replace the node. A node made from the image this way reads its unwritten blocks from the image, so many nodes booting at once read one file or image.
  • Linked clones were tested against a modelled libvirt and modelled Ceph commands; QEMU's image locks on a base held by a running overlay, and an overlay opening through another mount name, were tested with the real qemu-storage-daemon and qemu-img; the directory reading was tested on real files the test process cannot read (mode 0), a directory it cannot list or write, and a modelled hung directory. A run on real NFS (with and without root squash: the record written through libvirt there, and libvirt's description of an overlay owned by the emulator's user) and real Ceph (making, booting, live-migrating and deleting clones between hosts that mount the datastore under different names, and the base refusals) still needs real hardware.

Templates cluster-wide. A template's mark is kept by the host that holds it, and SimpleVirt-Command lists every template of a cluster in one place (the cluster's Deploy from template…, and GET /api/v1/vms?cluster_id=…&template=true). A template (or a powered-off VM) is deployed or cloned onto another host of its cluster when that host mounts every one of its datastores, matched by the datastore's storage identity; an unstamped datastore is never assumed shared. A deploy is placed automatically by default: on a member that passes the checks a VM created on the cluster passes, mounts every datastore of the template and runs a release that copies templates, preferring one where the VM fits in free memory, then the least loaded; the template's own host when no other qualifies. The target host reads the disks over the shared storage; before the first byte and after the last it checks no host holds them open for writing (an RBD watcher, a QEMU or lock-manager write lock), and the controller reads the source again once the copy is made and removes a copy whose source was powered on meanwhile. A template on a host that is down cannot be deployed until it is back, since only that host holds its mark and definition. A template with a passed-through host device, a SAN or shared-LUN disk, or a network the target lacks is refused. A linked clone, a clone from a snapshot and a hot clone are made on the source's own host. The copy's data disks are attached in the same definition only when the copy is made on another host; on the template's own host they are attached right after, as before.

Export to OVF/OVA. The package is an OVF 1.x descriptor, a SHA-256 manifest and every disk as a streamOptimized VMDK, written onto a file datastore of the VM's host (not an HCI or SAN datastore). It describes CPUs, memory, one SATA controller holding every disk and an E1000 adapter per network, the choices every importer and guest supports; the firmware is written in a SimpleVirt extension marked not required, so another importer may need UEFI set by hand, and a virtual TPM, Secure Boot keys, CPU pinning, passthrough devices and resource controls are not carried. Each disk is converted on the host's staging disk (held to its free-space reserve) before it is written, so the host needs room for the converted disks; a running file-storage VM is first copied into temporary volumes on the destination datastore. A powered-off file VM is read in place and must stay powered off for the whole export, or the export is thrown away. Download the package from the datastore browser. The conversion was tested with a modelled converter: an export of a real VM, imported back into SimpleVirt and into another platform, still needs a run on real hardware.


104. Moving all of a VM's disks, datastore maintenance and space balancing

What it does. Migrate → Storage only can move one disk or all disks, one after the other, under one task, with an optional copy-rate cap in MiB/s. When a disk fails or the move is cancelled, the disks already moved are moved back, so the VM ends on its original datastores; the task says where each disk is. A datastore can be put in maintenance (the datastore's Maintenance… row action on the host's Storage page): while it lasts no VM is created, provisioned (cloud-image VMs and Kubernetes nodes too) or placed on it, no disk is cloned, deployed, added, grown or moved onto it, a migration that changes host and storage does not copy disks into it (whether you chose it or it is the same-named datastore on the new host; a clone or template deploy onto another host is checked against that host's datastore of the name you chose), nothing is imported into the content library on it, and no VM is exported to it (OVF or OVA). Entering maintenance can move every VM disk off it, one VM at a time, live for a running VM and offline for a stopped one. A disk on a shared datastore (NFS, HCI, SAN) moves only onto another shared datastore that every host mounting the source also mounts, the one with the most free space (a tenth stays free), so the VM keeps its HA restart and its live migration; with no such datastore the VM is left where it is and named in the task. Host-local storage takes a shared datastore's disks only when you tick When no shared datastore has room, move a VM's disks to its host's local storage, and that VM then runs only on its host. An NFS datastore of a host in no cluster is shared storage too: its disks go to the host's local storage only when you tick that box. A disk on a local datastore moves onto any datastore of its host. A shared datastore is in maintenance for the whole cluster, a local one (or any datastore of a host in no cluster) for its host; deleting the datastore (from the host's Storage page, or a shared-LUN datastore from the SAN page) ends its maintenance. One evacuation runs per datastore at a time: starting another while one runs is refused, naming the running task. When the VM a clone, template deploy, added disk or disk grow comes from cannot be read, a datastore you named is still checked, and with none named the change is refused (try again) while any datastore of that host or its cluster is in maintenance. Balance space… (under More on a host's Storage page, and on a cluster's Datastores tab) recommends disk moves from a datastore at least 60% full to one at least 20 points emptier, within the disk's sharing class: shared to shared storage that every host of the source also mounts, local to local; you start each move.

What it does not do.

  • Moving storage to another host stays the Migrate wizard's change-host-and-storage path (section 101), which already copies every disk in one move under the cluster's migration bandwidth setting. An evacuation does not move a VM to another host: a VM whose host has no other datastore with room is left on the datastore and named in the task.
  • The copy-rate cap is not applied to a stopped VM's disk that the host cannot write itself (root-squashed NFS, where libvirt makes the copy): libvirt's copy cannot be paced. A live copy, a copy between file datastores the host can write, and a copy into or out of HCI storage are capped. A copy onto or off NFS never runs above SimpleVirt's NFS pacing (60 MiB/s), whatever the cap; a copy between other datastores runs at the cap. When a stopped VM's copy cannot tell what kind of datastore either end is (a libvirt read failed), it keeps the NFS pacing. A stopped VM's capped copy reports no progress while it runs, so it is given twice the time its size takes at its pace (at least two hours) before it is called stuck.
  • A host older than this release refuses a capped move (it does not know the setting); an uncapped move works as before.
  • The roll-back of a failed whole-VM move is itself a storage move: when it fails too (the original datastore filled meanwhile, for example) the disk stays where it went, and the task names it.
  • The evacuation and the moves run in SimpleVirt-Command, like other workflows: a restart of the controller part-way stops it; the datastore stays in maintenance, and the disks already moved stay moved. Start the evacuation again. A cancelled evacuation ends cancelled; the VM being moved goes back to where it was, the VMs already moved stay moved.
  • Which shared datastores every host mounts is read live when the evacuation starts. While a host of the cluster cannot be read (rebooting, say), no shared datastore can be shown to be mounted by it, so a shared datastore's disks are not moved to other shared storage: the task names that host, and you evacuate again once it answers (or allow host-local storage). A host that starts mounting the source only after the evacuation began is not checked.
  • A template or VM that linked clones read from is not moved by an evacuation or a balance move, and neither is a powered-off linked clone on file storage (its image names a backing file, so it is never copied offline; section 103). Each is left on the datastore and named in the task as not moved. A running linked clone moves live and becomes independent of its base. Power the clone on (or delete the clones of a base, or make them independent by moving their storage while they run), then evacuate again.
  • SAN datastores are not evacuated (their disks are whole LUNs); they can still enter maintenance so nothing new is placed there. The balancer considers directory, local-disk and NFS datastores only, and recommends nothing in a cluster with HCI storage, whose VM disks belong on the HCI datastore.
  • Proven by tests only. The moves, the roll-back, the maintenance gate and the evacuation run against simulated hosts; the pacing against a simulated libvirt and qemu-img. A real move of a large VM under a cap has not been measured yet.

105. Placement-group changes move data

A placement-group resize or turning automatic sizing on moves data between storage disks. Turning automatic sizing off also removes the floor it kept (pg_num_min), and a resize below a floor left from pool creation lowers it first, so a halving is never refused for it. A doubling or a halving moves about half of the pool's data, paced by Ceph at 5% misplaced at a time, while the VM disks stay online; storage traffic rises until it settles, for hours on a large pool. The resize is refused while any placement group is not active+clean or another storage operation runs; nothing stops you from resizing during busy hours, so pick a quiet period. The recommended count is Ceph's own estimate when the cluster reports it, else the disk-based count for the pool that holds the most data. Not yet run on real hardware: the resize, the automatic-sizing choice and the pacing run against stubbed Ceph commands in tests.


106. Monitor count follows the cluster's size

A SimpleVirt HCI cluster keeps three monitors below five hosts and five from five hosts. New clusters of five or more hosts are made with five; an existing cluster that has five or more hosts gets the extra two added one at a time by the control-plane guardian (one per pass, ten minutes apart, only while quorum is healthy). A monitor added goes to the CRUSH fault domain (rack, room, data center) with the fewest monitors, when the cluster has such domains. A cluster that drops below five hosts has one monitor removed at a time, from the fault domain with the most, only while every monitor is in quorum; the host's root helper refuses the removal unless that holds and three remain, then every host's monitor list is rewritten. The count is taken from the cluster's registered hosts, never from the hosts that answer right now, so a host that is down does not lose its monitor.

What it does not do. It never moves an existing monitor to spread the monitors over fault domains that were added later; only the next add or removal follows the domains. A stretched cluster keeps its own monitor and witness layout and is not changed. Monitors bind the storage network: a host without exactly one address on it gets no monitor (the finding says so). Not yet run on real hardware: the decisions and the helper's checks run against simulated Ceph status in tests.


107. Local-disk datastores

What it does. Host → Settings → Storage → More → New datastore from a local disk… makes one whole local disk a datastore of that host: the disk gets one ext4 file system, which libvirt mounts by its UUID when the datastore starts and again at every boot. A disk that is missing at boot leaves the datastore inactive (its VMs do not start) instead of letting new disks land on the system disk. The disks offered are whole disks only this host sees; the boot disk, a mounted disk, a disk any layer holds open, a disk carrying a storage disk (OSD), an LVM volume, a RAID member, swap or an encrypted container, and the disk of a defined local-disk datastore (the file system it mounts, by UUID), even while that datastore is stopped or failed to start, are refused, by SimpleVirt and again by the host's root helper just before it formats. While the host's datastore list is not ready yet (just after the host service starts, with libvirt slow to answer), the check refuses rather than check the disk against no datastores; try again a moment later. Only this flow makes a local-disk datastore: the plain datastore create refuses that type. A disk with an old file system or partitions nothing uses is offered: the dialog names what is erased, and you type the disk's path to confirm. That includes a disk that once held a local-disk datastore which has since been removed, or whose datastore create failed after the format (the file system and its sv-… label stay on the disk, but no datastore mounts it): the dialog says a former SimpleVirt local datastore's file system is erased, and creating the datastore again formats the disk again.

What it does not do. A local-disk datastore has no HA (the disk is inside the host) and no redundancy of its own: use a hardware RAID volume (one disk to SimpleVirt) for that. The whole disk becomes the datastore; partitions are not offered. Removing the datastore unmounts it and leaves the file system on the disk. The installer puts the system on one file system unless a datastore volume is chosen in the Boot disk layout (section 18, section 123). Not yet run on real hardware: the checks run against recorded disk layouts and the format against stubbed tools in tests.


108. Alarm definitions and silences have boundaries

The threshold rules and your own alarms are definitions (§10). What they do not do:

  • Built-in definitions apply to the whole fleet. A built-in's levels cannot differ per cluster or host. For one object, add your own definition on the same metric and turn the built-in off if it should not also fire there.
  • The metrics are the ones listed (GET /api/v1/alarms/definitions, metrics): host CPU, memory and load per CPU; datastore space used and provisioned share; VM CPU and memory; cluster CPU and memory. They are the figures the controller already reads each minute. A definition cannot name a performance counter (latency, IOPS, network rates), a log line or a Kubernetes figure.
  • VM memory is the host memory backing the VM, not what the guest reports using. A VM alarm is evaluated only while the VM runs and its host answers.
  • SimpleVirt has no tags. A scope names the fleet, one cluster, one host, one VM or one folder of VMs; the folder is the grouping a definition can follow.
  • Sustain is held in SimpleVirt-Command's memory. A restart, or the standby taking over, starts a pending breach over, so a page can come one sustain time late; an alarm already firing is never held again. Evaluation runs once a minute, so a sustain is met to within a minute.
  • The host-raised rules (VM CPU and memory saturated, old snapshots, guest file system low) keep their levels on the host: they can be turned off here, not edited.
  • A datastore alarm is raised on one host. A host-local datastore is its own object on its own host, even when another host has one of the same name. A datastore that several hosts mount is raised on the host that carries its capacity alarm (at first the lowest host id among its mounts); while that host does not answer, the alarm stays as it is and no other host raises a copy, for up to 15 minutes, after which the next mounting host takes it. A host that answers with its mount of the datastore lost cannot carry it: the alarm clears there and is raised on the next host that still reads the datastore, so a lost mount on the carrier moves the alarm rather than hiding it. The datastore stays shared while that happens (the alarm keeps its "shared by N hosts" wording), and the carrier is kept while it can still read the datastore: when the first host's mount comes back the alarm stays where it moved, so a mount that keeps dropping and returning moves the alarm once, not on every flap. A host or cluster scope matches a shared datastore through any of its mounting hosts.
  • A silence holds notifications only. The alarm still fires, is listed and is kept in the history. An unacknowledged alarm under a silence is counted as silenced: it is left off the Health badge and out of the Health Center verdict's tone, which names it as silenced. An acknowledged one counts as acknowledged, as it would without the silence. The page's firing totals (critical, warning) still include it, because it is still firing. A silence covers alarms by object and definition, never by message text. A silence lasts at most 30 days, starts at most 90 days ahead, and an ended one is listed for 7 days. An alarm whose page a silence held is paged once when the silence ends, if it is still firing; one that fired and cleared during the silence is not paged.
  • Channels choose receivers, they do not override them. A definition's channels (at most 20) name the notification receivers its alarms go to; each receiver's own severity, event, cluster and host filters still apply, so a receiver that filters out warnings gets none from a definition that names it, and a definition whose only channels filter out its alarms sends them to no one (the definition dialog warns when a ticked receiver's severity, event or scope filter holds back the definition's alarms). A channel whose receiver was deleted or turned off is dropped; when none is left the alarms go to every enabled receiver again. Events that are not alarms (HA steps, tasks, sign-ins, reports) are not routed by definitions. Reset on a built-in also clears its channels.

109. Capacity history, forecasts and the provisioned figure have boundaries

  • The provisioned figure covers file datastores only (local directory and NFS). It is the sum of the virtual sizes of the disk images directly in the datastore's directory: a .qcow2, .qcow or .img image's size from its qcow2 header, a .raw image's (or a non-qcow2 .img's) length. Only files with those extensions are opened; ISO images, NVRAM stores, lease files, logs, files with another extension and files in sub-directories are not read or counted. A backing chain counts once: an image that another image in the same directory is backed by (a linked clone's base, an earlier snapshot layer) is not counted, its overlays are, each at its full virtual size. So a template whose linked clones sit beside it adds nothing for its own disk: the figure is the clones' virtual sizes, and the space the base itself holds shows in the datastore's used space, not here. A base used only by images in another directory is counted where it is. SimpleVirt HCI (Ceph), iSCSI and shared-LUN datastores report no provisioned figure, so their overcommit share and the overcommit alarm and check do not apply.
  • It is read every 5 minutes on each host that mounts the datastore, without libvirt and in the background: the host's storage sampler never waits on it, and a new figure appears in the datastore list once its read finishes (right after a host starts, a datastore shows no figure until then). A datastore whose mount does not answer keeps its last figure. A shared NFS datastore is read by every host that mounts it (one header read per disk image per host every 5 minutes), not by one host for all. A read stuck on a hard-mounted NFS export that stopped answering keeps one reader blocked until the export answers, as the datastore's lease I/O already does; it holds no libvirt call and no other datastore's read.
  • The capacity history is hourly and kept 90 days, for the fleet, each cluster (CPU and memory) and each datastore (space), at most 1,000 objects (a new object past that is not recorded). Points older than 30 days are thinned to one every 6 hours. Hosts that do not answer in an hour are missing from that hour's point, so a cluster's total dips with them. The history is not part of a controller backup. An object with no point for three hours (a removed datastore, hosts that stopped answering) is listed last with its last figures, marked with when it was last read, and has no forecast; it is dropped once its newest point is 90 days old.
  • The forecast is a straight line through the last 30 days of points, extended to the capacity now. It needs a day of history and at least six points; with less, or when use is flat or falling, it says so instead of giving a date. It does not model seasonality or planned growth, and a step change (a large VM deployed, a datastore extended) bends it only as new points arrive.
  • CPU capacity is cores times the reported clock; a host that reports no clock counts each CPU as 1 GHz. Memory is the hosts' installed memory, not what admission control leaves to VMs.
  • Rightsizing and reclamation advice reads the performance history only. It judges a running VM on the 95th percentile of its half-hour averages over 14 days and needs 7 days and 200 points; a newer VM, and one whose history was trimmed by the history's disk budget, gets none. Memory is the host memory backing the VM, so the advice can say a VM has memory it never touched, never that it needs more. The levels are the product's (20% and 85% CPU, 2% for idle, 40% memory, a 60% target) and cannot be changed. A stopped VM is listed once it has not run for 30 days, and one never seen running only once the history is that old; the space it holds is its disks' allocation as last read, unknown when no reading has it. The advice changes nothing.
  • The capacity report is off by default and made at most once a day (every 1 to 31 days). It is kept on SimpleVirt-Command (the last 12, not in a backup; the schedule is) and offered as CSV. It is published as the report.capacity event: only a receiver that subscribes to report.* (or *) gets it, as a one-line summary with the report's id; the full report is fetched from the console or the API. It is not sent as an attached document.

110. The best-practice check catalog has boundaries

  • It reads, it never changes anything, and it is a fixed catalog of 32 checks (GET /api/v1/health-checks lists it); checks can be turned off (the section's Settings), not written.
  • Firmware means system firmware only. Each host reports its maker, model, BIOS/UEFI version, kernel and the driver of each physical network adapter from files any user may read. Adapter and disk-controller firmware are not read, and nothing is compared against a hardware compatibility list: the drift checks only say that hosts of one model (firmware), or of one cluster (kernel, driver version, virtualization stack, release, CPU model), differ. Many in-kernel drivers publish no version, so their check says it could not check. A host on an older release publishes none of this and is skipped by those checks.
  • Time is read live from each host that answers (one short read each, in parallel); a host that does not answer is listed by the Every host answers check and its other results are missing, not passing.
  • The fixed lines are the product's: 20% datastore free space, 150% datastore overcommit, a forecast of 30 days to full, 10% host free memory, 7 days in maintenance, 4 running virtual CPUs per CPU, 5 seconds of clock offset (read over the network, so to within the read's own delay), 30 days to a live-migration certificate's expiry, a scheduled backup older than twice its interval, and the cluster's running VM memory fitting without its largest host.
  • The operations checks read SimpleVirt-Command's own settings: the notification receivers, the built-in alarm definitions and the backup schedule. A run that cannot read the backup schedule says it could not check.
  • Runs are kept on SimpleVirt-Command (the last 30, each with at most 200 findings per check) and run once a day by default and on demand; one run at a time.

111. Release and advisory discovery has boundaries

  • The online check is off by default. When turned on it fetches the channel's catalog.json and catalog.json.sig over HTTPS once a day, sending no version, host count or identity. Check now fetches once when an administrator asks, whether or not the daily check is on. The proxy settings of the controller's environment apply.
  • The catalog must be published. The channel addresses are https://simple-virt.com/updates/community/catalog.json and https://simple-virt.com/updates/stable/catalog.json; until SimpleVirt publishes a signed catalog there, a check reports that the address answered with an error, and a catalog can be uploaded instead. A catalog is signed with the update keys (simplevirt-update-sign detached).
  • A catalog is believed only when its signature verifies against the update trust set (revocations included), when it names the channel the controller follows, and when it is not older than the catalog already held. A catalog more than 30 days old is shown as stale.
  • It compares the SimpleVirt-Command build and each answering host's build. The SimpleVirt-Containers appliance's build is not compared. Releases are compared by release number, not by build stamp.
  • It never installs anything. Applying a release stays the image upload and update under Administration, Lifecycle.

112. Unattended install: answer files, hashed passwords and erasing a disk

A plaintext admin_password on the kernel command line is still accepted, with a warning. It is how the release's own automated install test runs, and it is fine on a lab network. While the installer runs, any process on the machine can read it in /proc/cmdline, and every PXE menu that boots the fleet carries it. The installed system does not keep it: the live session's journal (which starts with the command line) is not copied to the installed disk. For production, give the hashed pair, admin_password_hash and admin_os_password_hash, in an answer file.

  • The hashed pair is two hashes of one password, because the web account and the OS account keep different hash types: an argon2id hash (at least 19 MiB and two passes) for the web account and a crypt(3) hash ($6$, $5$, $y$ or $2b$) for the OS account. simplevirtd user hash-password on any host (or in the installer's F2 shell) prints both lines. The installer cannot check that the two hashes are of the same password: if they are not, the web login and the console/SSH login take different passwords.
  • The SimpleVirt-Containers appliance does not take the hashed pair. It keeps three hashes of the admin password (web, console and OS). Give it admin_password in an answer file, which keeps the password off the kernel command line.
  • An answer file over the network needs its SHA-256 pinned (simplevirtinstall.answer_sha256=). HTTPS is checked against the live system's trust store, so a server with a certificate from a private CA fails the TLS check; pinning the digest makes plain http:// safe to use instead. The installer retries an unreachable server for 90 seconds. A file on a local medium (LABEL=<label>:/path) is mounted read-only and unmounted again.
  • A target disk that already carries data is erased only with simplevirtinstall.overwrite=1 (any data), or overwrite=storage for a former storage disk whose storage volumes are all it holds. Before 1.1 an unattended install erased whatever disk it was named. An answer file that reinstalls hosts over their old system disks must now say overwrite=1.
  • Before the erase, the installer releases what the live system holds open on the disk: it stops the storage daemons, deactivates the disk's volume groups, removes its device-mapper mappings, stops RAID arrays and wipes the old signatures. A volume group that also spans another disk is deactivated as a whole (nothing in the installer uses it). A mounted filesystem on the disk, or a mapping that will not let go, stops the install with the name of what holds it; nothing is erased.
  • smallest-ssd, model: and the other selectors must match exactly one disk. Two identical SSDs make smallest-ssd ambiguous: name one by serial: or wwn: instead.
  • smallest-ssd and model: pick local disks only. A disk the storage rules call shared (a Fibre Channel or iSCSI LUN, a multipath path, a network block device, an external array's LUN), an NVMe disk whose transport the kernel does not state (nothing proves it local) and a USB-attached disk are passed over, and the refusal names them. When those rules cannot run at all, the two selectors pick nothing. A shared disk is installed on only when it is named by serial: or wwn: (boot from SAN), and the log warns that it is shared; with overwrite=1 that erases it, so make sure no other host uses it. A plain /dev path is taken as given.
  • Boot from a multipathed SAN LUN is not supported. A LUN this machine sees on two or more paths lists as that many disks with one serial and WWN, so serial: and wwn: refuse it and say it is one LUN on several paths. The installer does not set up multipath for its own system disk. To boot from SAN, present the LUN to the host on one path only (zoning or LUN masking) for the install. The installed system then reaches its system disk over that one path, with no path failover. Two local disks that report the same serial but no WWN are not taken for paths: the refusal asks you to name one by wwn: or by its /dev path.
  • The hashed pair belongs in an answer file. GRUB expands $name on a linux line, so a hash typed at the GRUB prompt or written into a grub.cfg loses its $ segments unless each $ is written \$. The installer then refuses the hash and says that the boot loader is the likely cause.

What needs real hardware: releasing a former storage disk's volumes while its daemons were started by the live system, a former RAID member's array, the answer file on a USB stick, and the selectors on a host that sees a real Fibre Channel or iSCSI LUN, on one path and on two. The release, the selectors and the erase rule are covered by tests against a simulated sysfs and simulated commands.


113. A paired, clustered or storage host cannot be renamed from its console

Set Hostname & Domain refuses on a host that SimpleVirt-Command, a cluster or the distributed storage knows by name. A rename there regenerates the host's certificate, which SimpleVirt-Command pinned when the host was added, and the cluster service and the storage daemons, their failure domain and the monitor carry the old name. None of those follow a rename, so the console says what to do instead:

  1. Decommission the host from SimpleVirt HCI storage, if it is a storage host.
  2. Remove it from its cluster and from SimpleVirt-Command (or Disconnect on the console's pairing screen).
  3. Rename it on the console.
  4. Add it to SimpleVirt-Command again (it shows the new certificate to compare) and to its cluster.

There is no in-place rename that re-issues the pinned certificate through SimpleVirt-Command and renames the storage daemons. A standalone host renames as before.


114. What the hardware and HCI readiness checks can and cannot tell

The installer's system checks on a hypervisor host warn (they never block) about the IOMMU, ECC memory, network link speed and RAID controller mode. On screen the four share one "Production hardware" heading with one line each (what falls short and what it affects); an unattended install logs each with its full remedy. The HCI readiness checks fail on an unknown clock state and on a storage path that drops full-size packets, and warn about a slow storage link, RAID logical drives and SSDs whose power-loss protection is not confirmed.

  • The IOMMU is read from the installer's own kernel, or from the firmware. The installer's default and safe-graphics boot entries turn the IOMMU on as the installed system does; the text-mode entry does not. When the running kernel has no IOMMU but the firmware publishes its DMAR (Intel) or IVRS (AMD) table, the check reads "enabled in firmware; active after install". A firmware that publishes the table with the IOMMU unusable is not caught here.
  • ECC is confirmed only by the platform's memory error reporting. A board with ECC memory whose error-reporting driver the kernel does not load reads as "not confirmed". Check the memory in the server's own inventory.
  • A RAID controller's logical drive is recognized by the model it reports (the common controllers' logical-drive names). A controller that names its logical drives like physical disks is not recognized, and one in HBA mode shows the disks' own models.
  • The path MTU check needs the peers to answer ping. A peer that does not answer is reported as not proven, not failed; the TCP check still decides whether it is reachable. The check sends packets of the storage interface's own MTU, so a host whose own interface is set too small is not caught here (the cluster's network page warns when hosts' MTUs differ). A full-size packet is sent up to three times, one after another, and any reply passes, so one echo lost to congestion or to a switch that rate-limits ping does not fail the check. All peers are probed at the same time, for at most 5 seconds; the host answers within 20 seconds and SimpleVirt-Command waits up to 30.
  • The clock check reads the time service, or the kernel. It asks the host's time service whether the clock is NTP-synchronized, and when that service does not answer it reads the kernel's own sync state, the same reading the service reports. It has 12 seconds, which runs alongside the other checks. When neither answers in that time, the check fails with "timed out reading the clock's NTP state" and does not judge the clock: run the checks again.
  • Power-loss protection is inferred, not proven. A selected SSD that reports a volatile write cache gets a warning ("SSD power-loss protection not confirmed"); one that reports none passes, as SSDs with protection commonly do. Many enterprise SATA SSDs with protection still report a volatile cache, so the warning means "check the datasheet", not "unprotected".
  • The checks do not measure throughput. Run a network and disk benchmark before production.
  • Inside a virtual machine the installer does not judge these four (it reads the virtual hardware, not the host that matters in production).

What needs real hardware: the RAID-mode check on real controllers in RAID and HBA mode, ECC reporting on real server boards, the IOMMU reading on an Intel server with VT-d on and off in firmware, and the MTU check across a real switch with a jumbo-frame mismatch.

115. A host that misses a poll is "not responding", not "failing over"

A VM running as the only copy on its host is shown running even when its cluster-services record was left part-way through a recovery that never happened (the cluster planned a move off a host it wrongly judged failed and never abandoned the plan, as a disarmed cluster does not). While its host misses polls, is degraded, or answers without its VM list, SimpleVirt-Command keeps showing the VM running and logs no HA event: the host reads as not responding. The VM is shown failing over once there is evidence:

  • the cluster services commit a new step of the record (state, owner or generation);
  • the host answers with its VM list and the VM is not running there;
  • a second running copy of the VM appears on another host (two running copies are always shown);
  • high availability declares the host failed: SimpleVirt-Command's own verdict (the same unreachable time it waits for before acting) or the cluster services' verdict.

So a host that really failed shows its VMs failing over after that verdict, not on its first missed poll. The memory of which records are shown running is kept in SimpleVirt-Command's process only: after a restart of SimpleVirt-Command (or a standby takeover), a host that is not answering on the first sample has such a VM shown failing over until a poll sees it running again.


116. Encrypted VM disks: what is covered and what is not

What it is. A VM created with Encrypt the VM's disks has every disk made with it, and every disk added to it later, encrypted with LUKS, each with its own random data key: a LUKS-encrypted qcow2 on a file datastore (local disk, directory, NFS), a LUKS-formatted RBD image on SimpleVirt HCI. Only qemu on the host running the VM sees the data unencrypted; what reaches the datastore, and the NFS or Ceph network on the way, is ciphertext. Existing VMs are not changed.

The keys. Each data key is wrapped (AES-256-GCM) under a key provider's key-encryption key and travels, wrapped, in the VM's definition. The key-encryption key is never on a datastore:

  • Built-in provider: made by SimpleVirt-Command and kept in its data directory, sealed with its database key. A controller backup carries it sealed; a controller HA standby receives it. Losing the controller and every backup of it loses the keys, and the encrypted disks with them.
  • KMIP provider: made and kept by an external KMIP key server (KMIP 1.2 over TLS with a client certificate). The controller keeps only the key ids and its client credentials (the private key sealed), and fetches a key when it needs one; it never writes a key down.
  • On the hosts: the controller hands the keys to its paired hosts every minute (by fingerprint, only what a host lacks). A host keeps them in memory, and where it has a TPM, a copy sealed to that TPM and to its Secure Boot state (PCR 7) under /var/lib/simplevirt-kek, so it can start encrypted VMs after a restart while the controller is out of reach. Someone with physical access who can boot signed media on that same server can unseal that copy, as with any TPM-only sealing. A host reports its TPM as sealing (sealed to its TPM in Administration → Key providers) only when systemd-creds has-tpm2 reports full support there (the image carries the TPM 2.0 libraries it loads); a TPM that cannot seal is shown as its TPM cannot seal keys. A host with no usable TPM keeps the keys in memory only: after it restarts it starts no encrypted VM until the controller (and, for KMIP, the key server) is reachable.
  • No key version is ever dropped. A restore of a controller backup taken before a rotation keeps the versions made since (the restored key file is the backup's and the live one's together, sealed with the database key the restored controller runs with). When the live key file cannot be read, or one of its keys does not open with the controller's database key, the restore still goes ahead (restore is how a broken controller is recovered): the live file is kept in the pre-restore snapshot as key-providers.json.not-merged (beside a copy of the database key it was sealed with, when the backup brings another), the restore answer and the audit log say so, and a version only that file held is missing until it is recovered from a host that holds it. A controller HA standby that takes over merges the copy it received with its own. A version a host holds that the controller does not (an older copy restored by hand, say) is recovered from that host over the agent channel, checked against the fingerprint the host reported, and kept sealed with the database key, also for a KMIP provider (the one case where a KMIP key is written down: its key-server id was lost with the record). Recovered versions are named in Administration → Key providers. A new version is numbered above every version any host reports, and a version number two controllers used for different keys keeps the second key in escrow (never handed out, never deleted).

Rotation (Rotate key in Administration → Key providers) makes a new key version active and rewraps every data key on every reachable host under it; no disk data is re-encrypted. A rewrap and a disk being added to the same VM at the same time never write over each other's key records. Every write of a VM's key records, and the attach of a disk added to it, also waits for any rewrite of the VM's saved definition already under way (the background re-stamp of its storage monitors, a settings edit), and that rewrite waits for them: neither reads the definition before the other writes and saves it back after, so a new disk or its key is never dropped from the saved definition. Other settings stored alongside the definition when a VM is created (its datastore identities, guest OS and CPU profile) are not covered: they are advisory, and a lost one is filled in again or falls back to its safe default. Rewrap now catches up a host that was down. Old versions are kept: a snapshot keeps the definition it was taken with, and with it the version the keys were wrapped under then. A provider and its versions cannot be deleted in this release. Changing a disk's data key means re-encrypting its data: add a new disk to the VM (it gets a new key), copy the data across inside the guest, and remove the old disk.

Hosts on an older release. SimpleVirt-Command creates an encrypted VM only on a host that reports disk encryption, and a cluster create places it only on such a member: a host from before encryption would ignore the request and make plaintext disks. A host that answers an encrypted create with a VM that is not encrypted has that VM deleted again, and the create fails with the reason.

What works on an encrypted VM: start, stop, restart, snapshots (taken, reverted, deleted), live migration between hosts that share its datastore, started from SimpleVirt-Command (it loads the keys on the destination first, and refuses the move when the destination cannot open them; a host has no migration route of its own), cold migration between hosts sharing its datastore, HA restart (the survivor opens the keys with what it holds), adding and removing disks, deletion.

HA restart. Both HA paths bring the keys along. SimpleVirt-Command's HA defines the VM on the survivor from its full definition. The cluster services (which restart VMs while SimpleVirt-Command is away) rebuild the definition from the VM's recovery manifest, which carries each disk's key reference and every wrapped key, so the survivor's definition holds them from then on. A host from before this release does not understand those fields: it refuses such a manifest, so it is not counted as a place the cluster services can restart the VM. A host that neither holds in memory nor has sealed to its TPM the key version the VM's disks are wrapped under is not counted either. A sealing host whose helper is from before this release cannot list its sealed keys; it is counted, and a start there that finds no key fails and the restart moves on to another host. Every path that redefines an HCI VM on a survivor or re-stamps its storage monitors keeps each disk's key reference, and a start whose definition names a disk's wrapped key while that disk is attached without its key reference is refused with the reason, so the guest is never shown the encrypted bytes as a raw disk.

Snapshot revert. A revert puts back the definition the snapshot saved. The wrapped key of a disk added after that snapshot is kept in the reverted definition (the disk's volume stays on the datastore, as with any revert), so its data stays readable: reverting to a later snapshot that has the disk brings it back. SimpleVirt has no way to attach an existing volume to a VM. Such a key is not needed to start the VM, so its key version does not hold a start or an HA restart back. Deleting the VM deletes its definition, and with it the only copy of that key, while the disk's volume stays on the datastore (the delete removes the volumes of the disks attached at that moment): the wrapped key of every volume a delete leaves behind is written to that host's log (a warning naming the VM and the volumes), and so are all of a VM's keys when it is deleted with its disks kept. A wrapped key is not a plaintext key; with the key version it names, which is never dropped, the volume can still be opened by hand.

After a host restart. The libvirt secrets that hold a disk's key are in memory only, so the boot-time autostart does not start an encrypted VM (it would fail). SimpleVirt's own service starts each autostart VM with encrypted disks on local, directory and non-fenced NFS storage once per boot, through the start path that loads its keys, retrying for the first hour of the host's uptime (the controller may hand the key over a minute after the host is back), not in maintenance, and never again once it has started or someone has started it. A VM it could not start in that hour is named in the host's log and left off. HA-managed VMs come back through HA as before, which loads their keys too.

What is refused on an encrypted VM, with the reason, because each path would write or hand out the disks unencrypted, or would copy them in a way that has not been made to keep the encryption yet: cloning (and sealing as a template), making a template, moving its disks to another datastore (live or offline, including a live migration that copies them to another host's datastore), copying it to another host's datastore (cold migration with a copy), backup and restore sessions for backup products (a restore would write plaintext over the LUKS disks), and export as an appliance. A VM made from an image, template or appliance, a SAN LUN disk and a shared-LUN volume cannot be created encrypted.

In transit. Live migration traffic is TLS-encrypted by default (§4). The data blocks of an encrypted disk cross the storage network as ciphertext; qcow2's own metadata (the file layout, not the data) does not. Storage traffic of an unencrypted disk is not encrypted: NFS unless the datastore mounts with sec=krb5p (§117), SimpleVirt HCI unless its storage network is encrypted (below), and iSCSI and Fibre Channel never.

SimpleVirt HCI storage encryption. A cluster's HCI → Advanced → Encryption has two cluster-wide switches, both off until an operator turns them on (an update never changes an existing cluster):

  • Storage network: the storage layer's secure mode (AES-GCM) between storage services, monitors and the VMs' disk connections, preferred, with the plain mode still accepted. A storage service uses it from its next start (a host restart, the rolling update), a VM from its next start or live migration; until then they keep talking unencrypted. The file store (Files & ISOs) is mounted by each host's kernel: changing the setting writes every member's mount entry again (the secure mode on the storage layer's newer protocol port, 3300, while it is on), and a share that is mounted switches at the host's next restart; until then, and on a host whose entry could not be written (the change says which; POST /api/v1/clusters/{id}/hci/remount-fs writes it again on every host), the file store's traffic is not encrypted. A host kernel older than 5.11 has no secure mode for it and keeps the unencrypted form (the appliance's kernel is newer), and so do monitor addresses that are not all IPv4 addresses; mount-fs says so in both cases. When the monitors do not answer whether the setting is on, the entry keeps the form it had (a first entry is written in the unencrypted form, and saying so). There is no readout of which connections are encrypted yet.
  • New storage disks: a storage disk added while this is on is encrypted at rest (dm-crypt, LUKS), its key kept by the storage monitors (on the hosts' system disks, not on the storage disk). Disks already in use are not changed: replace them one at a time (remove, then add) to encrypt them. A host without cryptsetup (a release from before this one) refuses to add a disk while it is on, rather than add it unencrypted, and so does every host while the monitors do not answer whether it is on (no quorum, a timeout). Encrypted disks open at boot once the monitors answer: when a disk's own activation gives up first (the hosts of a cluster started cold, minutes apart), the boot self-heal and then the storage guardian (every minute) activate it, one disk at a time, once they answer. They activate only a disk this install of the host already started once (its activation is enabled) and that belongs to the host's own cluster: the disks a reinstalled host carries from before are left for Rejoin storage… (§121). The monitors hold these keys: losing the store of every monitor at once loses the data of every encrypted storage disk, with no way back (a plaintext storage disk can be rebuilt into a new monitor store; an encrypted one cannot be opened without its key).

Both cost processor time on every host.

Not built in this release: SimpleVirt-Command's database key cannot be rotated (the built-in keys and the controller's other secrets stay sealed with the key the controller was set up with; a rotation would have to re-seal every one of them, and that is not built yet).

Not covered: the system disks of the hosts and of SimpleVirt-Command are not encrypted (§37), a VM's NVRAM and virtual TPM state files are not encrypted by this feature, a cloud-init seed of an encrypted VM is not encrypted, and the API accepts no key from outside (bring-your-own-key is through a KMIP server only).

What needs real hardware: creating, starting, live-migrating and HA-restarting an encrypted VM on NFS and on SimpleVirt HCI (by SimpleVirt-Command and by the cluster services), snapshot revert of an encrypted qcow2, a disk resize of an encrypted disk, TPM sealing and unsealing with systemd-creds on a server with a TPM 2.0 (and systemd-creds has-tpm2 reporting full support on the baked image), an encrypted autostart VM coming back after a host power cycle, the KMIP client against a real KMIP server, and SimpleVirt HCI's storage network secure mode (the file store's secure kernel mount among it) and encrypted storage disks (their activation at boot, after a cold start of the whole cluster, and their cost) on real hosts. The key handling, the wrapping, the definitions, the recovery manifest, the refusals, the key recovery and merge, the boot pass, the start guard, the monitor re-stamp and datastore rebind of encrypted disks, the sealed-key list and the storage-encryption helper are covered by tests with fakes.

117. NFS mount options per datastore: what they cover

What it is. An NFS datastore can pin its protocol version (3, 4.1 or 4.2), open up to 16 TCP connections to the server (nconnect, kernel 5.3 or later), mount with Kerberos (sec=krb5, krb5i or krb5p) and use NFS 4.1/4.2 session trunking (max_connect, kernel 5.15 or later). The options live in the datastore's definition on each host, so they are applied at every mount, a restart included. A datastore made before this release keeps its definition and mounts as before.

When a change takes effect. A change is saved at once and applied at the datastore's next mount on that host. Before it is saved that way, the host mounts the export once with the new options, read-only on a scratch directory, and unmounts it again: options the server refuses (a version it does not speak, a Kerberos flavor it does not export, nconnect it rejects) are refused then, rather than leaving the datastore down at the next restart. That trial mount cannot catch a server that changes its exports later. Remount now applies a change at once, and is refused while any VM on that host has a disk or CD/DVD image on the datastore; while it runs, no VM with a disk or image on that datastore (by datastore or by a path under its mount) is started on that host (a start is refused with "being remounted", and the remount waits for a start already under way), SimpleVirt does not bring the datastore back up by itself, and a second remount of it is refused. A live migration arriving in that moment is not held back: it fails, and the VM keeps running where it was. A remount that fails mounts the datastore again with its previous options. A change is made one host at a time.

Hosts on an older release. SimpleVirt-Command sends mount options only to a host that reports supporting them, and refuses, with the reason, to add a datastore with options to one that does not: an older host would mount it with the defaults (sec=sys). Mounting on more hosts checks the options the host answers with, and removes the datastore from that host again when they differ.

Where it is set. The options and the sign-in realm are set in SimpleVirt-Command (Host → Settings → Storage: Mount options… on a datastore's row, NFS sign-in realm…). The standalone host interface has no screen for them; the host's API takes them.

What cannot be set. The options are typed fields, not free text: the fleet-wide NFS client defaults the HA storage lease depends on (acregmax=5, acdirmax=5, Local_lock=all, a hard mount) cannot be overridden per datastore. A version pin does not change which datastores can back HA: the HA readiness check still reads the version the mount negotiated.

One version for every host. The NFS version decides how a single writer of each disk is enforced (an NFSv3 mount by the HA heartbeat lease, a 4.1/4.2 mount by the server's locks), so the hosts of a cluster that share a datastore must mount it with the same one. The version of a datastore other members of the host's cluster mount is therefore not changed on one host: it is changed for every host at once (Cluster → Datastores, Mount options… on the datastore's card; saved on each host for its next mount). That change is refused while HA is on (the hosts would mount it with two versions until each had mounted it again): turn HA off, change it, remount the datastore on every host or restart them one at a time, and turn HA on again; its readiness check fails while the hosts' versions, mounted or saved, differ. Hosts whose versions differ also raise an alarm (critical while HA is on). Mounting a datastore on more hosts is refused while the hosts that mount it have different options. Adding an NFS datastore on one host (Host → Settings → Storage → Add datastore) whose export other hosts of its cluster already mount takes their NFS version: with no options set it gets their options (their whole options when they all have the same, otherwise their version), a different version is refused, hosts of the cluster that disagree among themselves refuse it, and while HA or the cluster services are on a host of the cluster whose datastores cannot be read refuses it too. An export is matched by server and path as typed: the same server named once by its name and once by its address is not recognized as one. The other options can still differ between hosts.

Kerberos. NFS sign-in realm… on a host takes the realm, its KDCs (none: found through DNS) and the host's keytab, which is stored for root only at /etc/krb5.keytab and never shown again; SimpleVirt writes /etc/krb5.conf only when the host has none of its own, and starts rpc.gssd. The host's name must match its principal and its clock must be in time. SimpleVirt does not join the host to a directory or make the keytab: it comes from the realm's administrator. Leaving the realm is refused while a datastore on that host mounts with Kerberos.

Without Kerberos (sec=sys, the default) the NFS server trusts the hosts' addresses and the uid they send, and the traffic is not encrypted: keep the storage network isolated.

What needs real hardware: each option against a real NFS server, Kerberos against a real KDC and a krb5-exporting server (krb5p included), and session trunking against a server reached through two addresses. The option handling, the definitions and the helper are covered by tests.


118. Build reproducibility, SBOMs and the quality gates have boundaries

Every image is built from pinned inputs: Debian packages from the release's snapshot of the archive (DEBIAN_SNAPSHOT in deploy/release-manifest), builder containers from a base image pinned by digest, the SimpleVirt-Containers Python packages from a hash-locked requirements.lock, Go programs with -trimpath, and every file timestamp clamped to the commit's time (SOURCE_DATE_EPOCH). Each ISO and Kubernetes node image gets a CycloneDX 1.5 SBOM (<image>.cdx.json) beside it and in the signed release record. What this does not yet promise:

  • A bit-identical rebuild has not been demonstrated. No two bakes of one commit have been compared byte for byte. The version string carries the build time (BUILD_DATE), so a reproduction must pass the original's VERSION and SOURCE_DATE_EPOCH (both recorded in its SBOM); GRUB's boot images, the initramfs and the live-boot image can still embed build-time values that have not been audited.
  • The Kubernetes node images still take updates from the live mirrors. Their builder is pinned to the snapshot, but the node image is a dated, checksummed cloud image upgraded inside the image from its distribution's live archive (Ubuntu or Debian). This is deliberate. No security-tracker check covers an Ubuntu image, so a pinned Ubuntu snapshot could ship a missed fix without anything noticing. The live upgrade refuses any package held back from a published update. Their SBOM lists the packages that build actually shipped, named in the image's own distribution and release (pkg:deb/ubuntu/...?distro=ubuntu-24.04 or pkg:deb/debian/...?distro=debian-13, read from the image's /etc/os-release). It records simplevirt:apt_sources=live in place of a Debian snapshot. The SBOM tool refuses a distribution that the image's own base-files package contradicts.
  • A snapshot is a point in time. A release takes newer Debian security fixes only when DEBIAN_SNAPSHOT is moved forward; the bake's check against the Debian security tracker fails a release whose snapshot misses a fix Debian has published. DEBIAN_SNAPSHOT=live builds from the live mirrors (a development build, recorded as such in its SBOM).
  • The SimpleVirt-Containers source tree's own container images (its development Dockerfiles), its CI and its UI's browser and accessibility tests are in that repository. This one does not pin, run or gate them. The appliance image is built without those images, and only from a tree that has the secret-key rotation, the hash-locked dependencies and the multi-worker launcher it needs.
  • No archive of the distribution's source packages is published. The images carry the written offer (SOURCE-OFFER), and the SBOM names each binary package's source package and version.
  • The SBOM lists what the image's package manifest and the Go programs' build information record. That covers distribution packages, the Containers venv's Python packages, release binaries (helm, containerd, runc), the node images' preloaded container images (by reference and tag, with a digest when the reference carries one; their contents are not broken down) and every module linked into each Go program. The Go programs include those inside the Guest Tools package and the Kubernetes add-on image. Files copied into an image some other way are not components in it. For example, the SPA's vendored JavaScript is listed in THIRD_PARTY_NOTICES.md instead.
  • Signatures use the real clock, not the commit's. The detached signatures, the signing preflight and key rotation and revocation records ignore SOURCE_DATE_EPOCH. A key's not_after is enforced against a signature's date, so a retired key cannot sign a bake of an older commit. As a result, signatures, unlike the images, differ between two bakes.

The CI gates: gosec runs blocking, with eight rules excluded by measurement (the lint configuration records why) and every other finding fixed or justified at its line. CodeQL is not run because this repository is private, and CodeQL's licence covers private code only with GitHub's paid code-security product, which is an owner decision. The noctx linter stays off: it measured 149 outgoing requests made without a context. Those requests carry client timeouts, but a cancelled caller does not cancel them. govulncheck (source and binary) is blocking, with deploy/vuln-waivers.json for a vulnerability that cannot apply or cannot be fixed yet. Each waiver needs an identifier, a reason and an expiry at most 180 days ahead. An expired waiver fails the gate, and one nothing needs is reported. The file holds one waiver: the SMB library's directory listing can be crashed by a hostile file server and has no fixed release, and SimpleVirt-Command links that function without ever calling it (its SMB backup target keeps its own index of the backups it wrote). The pinned actions and Go modules are kept current from a weekly CI report, which opens no branch or pull request. It fails when any pinned release of an action (each workflow's pin on its own) has a newer release in its major line, or when a directly required Go module has a newer tagged patch release in its pinned major.minor line, even when a newer minor also exists. A newer major of an action and a newer minor of a module are listed as information and do not fail it, so moving to them is a decision the owner makes from the list. That includes the v0 modules (golang.org/x/* among them): a new v0 minor, which they ship about monthly, never fails the report, only a patch of the pinned v0 minor does, and govulncheck is what blocks a vulnerable one. A finding the owner chose to keep is held in .github/pins-hold.txt with a reason and an expiry at most 180 days ahead; CI runs the report's own check on that file, so a malformed, duplicated or too-distant hold fails CI rather than the weekly run. Six Go module patch releases found on 2026-11-17 are held until 2027-01-31, to be taken in one dependency pass with the full test suite and an HA failover check on the dev lab (one of them is the HA cluster service's logger). shellcheck gates warnings and errors in every shell script, not its style notes. The recorded per-package coverage floors allow one point of run-to-run noise and are measured without a PostgreSQL DSN, as the CI coverage run is (the Postgres legs run in their own job). The Windows Guest Tools tests run on a Windows CI runner against its real registry and kernel APIs (read-only); the driver install, the service under the Service Control Manager and the MSI are not exercised there. The real-backend browser lane runs a real SimpleVirt-Command over simulated hosts: it proves sign-in, the inventory, a power-on and Add host end to end, but the hosts run no VMs, storage or cluster services (no console, no metrics), and the accessibility scan (axe-core, WCAG 2.1 A/AA, failing on serious and critical findings) covers the pages the journeys visit in both the dark and the light theme. It also covers the host console's own UI against a stub API: its sign-in page, every page of its navigation and a VM's detail page (disks, NICs, snapshots and the console preview), with content and with every read failing. A page is scanned only after it has rendered its own view, its breadcrumb and its expected text, and a page that does not get there fails the run. The host console's dialogs (Create VM, Edit VM, the snapshot and disk dialogs) are not opened and scanned. An automated scan finds only some kinds of accessibility problems. No screen-reader or keyboard-only review by a person has been done.

What needs a real run: two bakes of one commit compared byte for byte; a release bake end to end with the snapshot mirrors (debootstrap and the full upgrade against snapshot.debian.org); a Kubernetes node image bake (Ubuntu and Debian) that writes its distribution line and an SBOM from it; the first CI runs of the Windows job, of the coverage floors, of the waiver-aware source vulnerability step and of the weekly pins report on GitHub's runners.


119. Two hosts with a witness run on one copy while a host is down

A two-host SimpleVirt HCI cluster can take a witness: a small SimpleVirt host (a small machine, or a VM on other hardware) that is not a member of any cluster. It runs a third storage monitor and nothing else: no storage disks, no VMs, no data. With it the monitors keep a majority through the loss of either data host, and the data pools keep two copies but accept a write with one (size 2, write floor 1), so one host or disk outage no longer pauses the VMs. Set it up on the SimpleVirt HCI page: the single-failure banner of a two-host cluster offers Add a witness… (pick a standalone host, read the plan, type "writes keep one copy while a host is down"); the API is GET/POST /api/v1/clusters/{id}/hci/witness. The Overview then shows the witness's live state with Retire witness….

  • While a data host is down, every write is on one disk only. Losing that disk before the other host is back loses the writes made meanwhile. A critical alarm stays up for as long as any placement group is short of a copy, and the HCI page says so.
  • A failed data host is marked down by the other one alone. The monitors normally need failure reports from two different hosts before they mark a storage disk down, and with two data hosts only the survivor can report. The witness set-up therefore lets one reporting host suffice (and makes the monitors elect by connectivity); retiring it puts the default back. Without that, a data host that loses power would be marked down only after 15 minutes, with the VM I/O it served blocked meanwhile.
  • The witness keeps the monitor majority, and its loss is a warning. With the witness down, the next data-host failure stops the shared storage (two of three monitors are needed). A data host that loses its whole network is outside the monitor majority and cannot serve writes.
  • A broken link between the two data hosts is not decided automatically. When the data hosts lose each other but both still reach the witness, each reports the other's storage disks down; the disks are marked down and back up, and stop after repeated markdowns. Nothing picks one side, so VM disk I/O pauses or stalls until the link is back (the data stays consistent: writes need an acting primary, and there is one per placement group). Give the two data hosts a redundant storage link (a bond over two switches) so that this needs two failures. Not yet measured on real hardware.
  • After a long link split, storage disks may need starting. A storage daemon marked down five times within ten minutes shuts itself down. The storage guardian on its host starts it again, but at most six times an hour per daemon; a split that outlasts that leaves the daemon down ("needs operator attention" in the guardian's report) until the oldest of those restarts is an hour old, when the guardian starts it once more. To have the storage whole sooner once the link is back, start the stopped daemons on each data host (systemctl reset-failed ceph-osd@ID and systemctl start ceph-osd@ID on the host console); the VMs keep running on the copies that are up meanwhile.
  • The witness host stays standalone. Adding it to a cluster or removing it from SimpleVirt-Command is refused while it holds the witness monitor (retire it first; a witness host that no longer answers can be removed with force). Its factory reset is refused while it runs a storage monitor. The monitor quorum self-heal looks after the witness monitor too. A change of the witness host's own address is not followed automatically: retire the witness and set it up again on the new address. Change management address… in SimpleVirt-Command therefore refuses a VLAN, DHCP, address or gateway change of the witness host (and of a standalone host it cannot yet rule out as a witness), and its dialog says why; a change of its DNS servers or search domain alone is still made.
  • Taking the witness offline is gated like a data host. Its reboot, shut down, maintenance and update are refused while its cluster cannot spare its monitor: fewer than a majority of the other monitors in quorum, a data host or disk down (the VMs run on one copy then), a data host offline, in maintenance or on its way there (its reboot, shut down, maintenance or update admitted and still running), another SimpleVirt HCI operation or a rolling upgrade of the cluster running, or the cluster's storage not readable. Reboot, shut down and maintenance take force as the deliberate override; an update has none, it waits for the cluster. The maintenance preview of the witness says the same.
  • A data host and the witness never go offline together. Both are admitted one at a time under the cluster's operation lock, and each records its outage before the next decision. A data host's reboot, shut down, maintenance, removal or update is refused while the witness's own reboot, shut down, maintenance or update runs, while it advertises a reboot, while it does not answer or its monitor is out of quorum, and while the monitors in quorum without that data host would not be a majority. A data host without a monitor or storage disks is not held back. The admin's force override still bypasses this, as it bypasses the other storage checks.
  • The witness is recognised without a storage reading too. Right after SimpleVirt-Command starts, before its first reading of the cluster's storage, a standalone host that reports a storage configuration (or has not been polled yet) is asked for its own storage status, and is gated as the witness when it runs a monitor of a cluster's members. When that cannot be read either, its reboot, shut down, maintenance and update are refused until it can.
  • The rolling cluster upgrade does not update the witness. When it moves the cluster to a new Ceph major, update the witness on its own (Hosts, the witness, Update): before the run, or once the run stops at its last step, which names the witness, and then run it again to finish. Its update is gated on the cluster's Ceph versions: refused when the image would move its monitor to an older major or more than two majors past the cluster's oldest daemon, and, as for a member, confirmed by the admin when the staged image's Ceph major is not known.
  • A set-up that fails before the witness joins removes the monitor it started on a data host too, so the cluster keeps the monitor layout it had; when that removal fails, the task says so (every monitor is then needed: run the set-up again).
  • The witness must reach both data hosts on the storage network, with full-size packets. The setup checks that from each data host, but cannot prove the witness sits on independent power and network; put it where a failure of either data host does not take it down too.
  • SimpleVirt-Command itself is not a witness: the witness is a SimpleVirt host. The cluster services' own vote (Cluster services → Add a witness) is set up separately; use the same host.
  • A stretched cluster has its own witness and is not offered this.
  • Retiring the witness (POST .../hci/witness/retire) makes every two-copy pool need both copies again (refused while a host or disk is down or a monitor is out of quorum); on a cluster grown to three or more hosts a member gets the third monitor first. Raising the pools to three copies is the protection remediation's job, which an operator runs.
  • The witness's system disk holds the storage keys while it serves. Its monitor store is a full copy of the cluster's key database, the key of every encrypted storage disk (§116) among them, and the host also keeps the storage configuration and the admin and bootstrap keys. Give the witness the same physical care as a data host. Retiring it removes all of that from the witness as its last step (no disk is wiped): the step runs on the witness itself and refuses a host with storage disks or the file store of its own and while the monitors still list it or do not answer. It is tried three times (the monitors can be slow to answer right after the removal); when it still fails, the retire task says so, with the monitor already removed, and there is no way to run that step again on its own: reinstall the witness host to remove what is left. A witness host that no longer answers, and is removed with force, keeps them on its disk.

What needs real hardware: a data-host power loss with a witness, measured for the time until VM I/O continues on the survivor, and a link split between the data hosts, measured for what the VMs see.


120. The cluster services keep at most five voting members

The cluster services (simplevirt-clusterd) vote with at most five members (three when max_voters is 3 in clusterd.json), spread across the stretched cluster's sites when there are any, with a witness always voting. From four members on the count is odd (four members vote with three). The others are standby members: they replicate everything and run recovery like any member, but do not count toward quorum. The cluster services page shows them as standby members.

  • A voter that has been unreachable for ten minutes is replaced by a healthy standby member, one change at a time: the standby member is promoted first while the healthy voters keep a majority of the larger set (otherwise the lost voter is made a standby member first, only while the voters left keep a healthy majority). With no healthy standby member the lost voter keeps its seat, so three members with one down stay three voters (and two members with a witness stay two and a witness). A shorter outage (a reboot, an update) keeps its seat. The timer starts again when the leader changes, which only delays a replacement.
  • The cap waits for every member to run this release. During a rolling update the leader keeps the previous rule (a healthy standby member is promoted) until each member reports that it caps the voters, so leaders of the two releases never undo each other's changes. A member that is down holds the cap back until it answers.
  • An existing cluster with more voters converges on its own, one demotion per pass and only while a healthy majority remains; nothing restarts.
  • Removing a voting member from SimpleVirt-Command still asks for the quorum it leaves; a standby member can always be removed.

What needs real hardware: a cluster of six or more hosts converging from all voters, and a voter lost for good being replaced, measured for leader stability.


121. A reinstalled storage host keeps its storage disks

The installer never offers a disk that holds SimpleVirt storage (an OSD): it is listed as "SIMPLEVIRT STORAGE - kept" and cannot be chosen, and the answer-file selectors (model:, smallest-ssd) pass over it. An answer file can still name such a disk exactly with simplevirtinstall.overwrite=storage. After a boot-disk failure, install SimpleVirt on the new boot disk, pair the host, add it to its cluster, and run Rejoin storage… on that host in SimpleVirt HCI, Hosts and disks (offered on a host whose disks are down; the API is GET/POST /api/v1/clusters/{id}/hci/hosts/{host}/rejoin): it loads the cluster's keys onto the host, holds the host's data in place, starts each storage disk with its data, restores the host's monitor, connects its VMs to the storage and releases the hold.

  • A run that started some disks and not others can be run again. Each disk is started on its own: a disk whose storage daemon already runs is skipped, one that fails does not stop the others, and one whose daemon runs outside its service is refused by itself and named.

  • Install the host with its old host name. The host name is its storage identity: its disks sit in the storage map under that name. The rejoin refuses another name (the disks would move and the whole cluster would rebalance) and says what to do instead: reinstall with the old name, or remove those disks from the cluster and add them as new ones.

  • Only the writes made while the host was away are copied, provided the host's disks were not marked out. The cluster marks a down disk out after about ten minutes and rebuilds its data elsewhere; a host that was away longer gets its data moved back once its disks return. The recovery pacing keeps VM I/O first either way.

  • Disks of another storage cluster, or ones the cluster removed, are left untouched and named in the plan.

  • Only the rejoin starts the old disks. Adding storage to a reinstalled host that still carries this cluster's disks which the storage map still lists is refused (the refusal names them and points at Rejoin storage), and so is adding storage to it while the storage map cannot be read. Disks the cluster already removed (a dead host's disks removed from a surviving host, which cannot wipe them) do not hold the add back: they cannot start again, as their keys were removed with them, and the task names them. They stay unused on the host; SimpleVirt-Command has no wipe for them yet. The boot self-heal and storage guardian never start an encrypted disk this install has not started before, so a host given the cluster's keys some other way does not bring its old disks up under another name either. A host agent too old to list its disks is not checked when storage is added.

  • The cluster services see a new identity. A reinstalled host has a new instance id; enroll it in place of the old one (the cluster's High availability tab, Add to cluster services) and the old one is evicted. Remove the old host record from SimpleVirt-Command once the host has rejoined.

  • Remove and erase only when the data is gone. Removing the host and adding its disks back as new ones (after erasing them) is for a host whose storage disks were lost too, or one reinstalled under another host name; it copies all of the host's data again. The step-by-step is in the runbook Replace or rejoin a host (in the appliance's documentation).

What needs real hardware: a real boot-disk replacement on a storage host with VMs running on the other hosts, measured for the data copied back and the time to a clean state.


122. Moving the storage to a dedicated network, one host at a time

An existing SimpleVirt HCI cluster can move its storage onto a dedicated network, and add a separate replication network for the storage disks' own traffic with Move the storage network… in SimpleVirt HCI, Network (the check, its per-host table and then the host-by-host move; the API is POST /api/v1/clusters/{id}/hci/storage-network/precheck, then .../move with confirm). Give every member exactly one address on the new storage network first (a storage service adapter), and every member with storage disks one on the replication network; a host without storage disks needs none there. A network typed as one of its addresses (10.20.0.5/24) is read as the network (10.20.0.0/24).

  • The precheck probes every member from every other on each new network with packets of the chosen MTU (default 1500, Don't Fragment). A host agent too old to measure blocks the move rather than passing it.
  • It needs a spare copy. The storage daemons restart one at a time; a pool that needs all its copies (two hosts without a witness) would pause, so the move refuses it. A cluster with a witness monitor retires the witness first.
  • One storage daemon at a time, one host at a time, with the host's data held in place and the placement groups clean before the next host. A daemon that does not come up on the new network rolls its host back and stops the move; hosts already moved stay moved and work (the two networks run side by side), and a new run carries on where it stopped.
  • Monitors move one at a time from the others' quorum and must rejoin within three minutes, or move back. Every host's monitor list, file-store mount and libvirt storage pools follow. A monitor is moved only while at least three run, all in quorum (checked in the precheck and again before each monitor): with two, the moved one's restart would leave one of two, no majority, and no quorum to move it back. A cluster with two monitors adds a third first.
  • Managers and metadata servers move after the monitors, one at a time, standbys first, with their roles read again when this step starts and before each metadata server (a fail-over during the earlier steps changes which one goes last): the active manager hands over to a standby (its statistics pause for a few seconds), and the file store's active metadata server hands its rank to a standby that already runs on the new network (file I/O pauses for a few seconds). The file store needs a second metadata server for this; a cluster with one is refused, since restarting it would pause the file store. A manager or metadata server that does not come back on the new network stops the move; a new run restarts only those still on the old network. A run started again after the monitors moved finds the old network from whatever still uses it.
  • Keep the old network up until the move finished. The move ends by reading every manager's and metadata server's address again, and reports any still on the old network instead of finishing. VMs that keep running through the move were opened with the old monitor addresses. Their own storage connection follows the moved monitors, their saved definitions are re-stamped with the new ones, and a live migration sends the destination the new monitors, so the old network can go once the move has finished. Anything outside the cluster that reaches the storage directly (a Kubernetes cluster's storage driver in VMs) must reach the new network too; the move does not check that.
  • A stretched cluster is not moved here.

What needs real hardware: a move under VM load on a real switch (with a jumbo-frame network), measured for VM I/O pauses during each daemon restart, each monitor move and the metadata server hand-over, and the old network removed afterwards with the file store and the managers still answering.

123. The boot disk mirror and separate volumes

A fresh install can mirror the system onto a second disk, give the logs and the storage monitor's store volumes of their own, and carve a datastore volume (the host's local datastore local-data) from the same disks (Installation: Boot disk mirror).

  • Hypervisor hosts only. The Boot disk layout step is offered by the hypervisor installer only; the SimpleVirt-Command and SimpleVirt-Containers appliances install on one disk and refuse simplevirtinstall.mirror=, logs_gib=, mon_gib= and datastore_gib= (their upgrade does not keep the layout record, so a mirror there would not boot after an upgrade).
  • The datastore volume is a local datastore. It has no HA (it is inside the host) and its only redundancy is the mirror; its name is always local-data (a datastore cannot be renamed; remove it and make another from a disk to change it). Its size is set in GiB at install; the root gets what the volumes leave, so it cannot take "the rest of the disk". Removing the datastore leaves the volume and its data in place, and SimpleVirt does not offer that volume again (it is part of the boot disks): only a reinstall reuses it.
  • The arrays are found by UUID. mdadm.conf names each array by its UUID alone and ignores the host name stored in the array (the installer's, not the host's), so a renamed host still assembles its root.
  • Only at install. An installed single-disk host is not converted to a mirror in place, and the separate volumes cannot be added or resized later: reinstall the host (its configuration backup restores its settings, §125).
  • A new array resyncs after the install. The arrays are created and used at once and copy themselves in the background; until that copy ends the mirror is not yet redundant, and the Hardware health page says so (rebuilding).
  • A failed disk is replaced at the console's shell. SimpleVirt shows and alarms the degraded mirror but does not repartition a replacement disk or add it to the arrays for you; the steps are in the installation guide. The EFI system partition is copied onto the other disk at install and at every upgrade, not after each boot.
  • Both disks are erased and must be at least the size of the smaller one; the larger disk's extra space is left unused. A mirror needs mdadm, which the hypervisor image carries; an installer image without it does not offer the mirror.
  • What needs real hardware (or a two-disk VM): the first boot of a fresh mirrored install (the initramfs assembling svroot from the rendered mdadm.conf), libvirt starting the local-data datastore from the definition the installer wrote (its mount of svdata by UUID), a boot with each disk pulled in turn (UEFI and BIOS firmware), a degraded boot on a server whose firmware forgets the second disk's boot entry, the rebuild onto a replacement disk, and an upgrade of a mirrored host from the update image. The installer, the layout files, the upgrade's re-render and the alarm are tested with fakes only.

124. Changing a host's management address from SimpleVirt-Command

Change management address… changes the VLAN, the addressing and DNS of a host's management network from SimpleVirt-Command, with the same timed revert as a management link change.

  • Kept only once proven, through the new addressing. The host first checks the new addressing itself after a short settle: the new address on the device (with DHCP, a lease the DHCP server handed out, recognised by its lease lifetime or, for a lease that never expires, by the routes the network service installed from it; a static address left behind does not count), and the new gateway and SimpleVirt-Command answering from the host when they answered before. Only then does it accept a keep, and SimpleVirt-Command keeps the change only when it reaches the host's agent at an address the new addressing gives it (the new static address or the lease) within the window (120 s). A VLAN or gateway change that keeps the same address is therefore kept only after the host proved the new VLAN or gateway works. A firewall or route that lets the host reach its gateway but stops SimpleVirt-Command reaching the host makes the change revert, by design.
  • With no gateway or SimpleVirt-Command check, the address is the proof. When neither the old gateway nor SimpleVirt-Command answered from the host before the change, the host can only check the new address is on the device; SimpleVirt-Command reaching it there is then what keeps it.
  • A DNS-only change is handed to the resolver. A change of the DNS servers or the search domain alone is written to the host's network files and given to the resolver for the management device; the link is not reconfigured (no address drops, no DHCP restart, no network service restart). Should the network service re-apply the management device for another reason before it next reloads its files (a cable pulled and plugged back), the old DNS servers return until the next reboot or management network change. On a DHCP host the servers set this way replace the lease's until its next renewal.
  • A keep pressed at the host console before the proof is held, not final. Pressing revert after it, while the host is still checking the new addressing, reverts the change. Once the host has proven the change, the first keep or revert to arrive decides it.
  • Refused, not worked around: while a live migration or copy runs through the host, while an NFS datastore is mounted from the address being removed (the host console's Configure Management Network moves NFS datastores to the new address; this path does not), outside maintenance mode while VM storage traffic rides the management network, and for an address another interface of the host or another host already has.
  • The gateway check is a ping. When the old gateway answered ping, the new one must too, or the change reverts; a new gateway that drops ping cannot be used this way (change it at the host console).
  • The storage monitor moves in the same task. Once kept, a host that runs a storage monitor has it re-addressed to the new address (from another monitor in quorum, then the moved monitor restarted on the corrected map, then every member's monitor list refreshed), and the task fails, with the exact commands to run by hand, when it did not move; the new address stays kept on the host either way. Before anything is sent, the change is refused while the cluster cannot spare the monitor (the other monitors are not a majority in quorum, or cannot be read), and a host that runs a monitor is not moved to DHCP. A VLAN or gateway change that keeps the address leaves the monitor where it is. Storage disk daemons bound to the old address may need the host to be put in maintenance and rebooted to rebind.
  • The storage witness's address is not changed here. A two-host cluster's standalone storage witness is refused a VLAN, DHCP, address or gateway change (its monitor would not follow, see §119): retire the witness, change the address, and add it as the witness again. Its DNS servers can still be changed.
  • What needs real hardware: a VLAN change across a real trunk port, a change on a teamed or bridged management link, and a change on an HCI member in maintenance mode.

125. Host profiles and host configuration backups

The cluster host profile and the host configuration backup cover the host settings named on them, no more.

  • The profile covers the time servers, the DNS servers and search domain, the SSH service, that each host runs SimpleVirt-Command's log forwarding, and the HTTPS certificate (CA-signed, days left). It does not cover the MTU, the storage network, the timezone, local accounts or firewall rules. A CA-signed certificate is reported only: SimpleVirt cannot issue one.
  • DNS on a DHCP host is shown, not remediated. A host on DHCP takes its DNS servers and search domain from its lease; the drift view says so, and Remediate and Restore leave them alone. Remediate reads the host's addressing just before it sends a DNS change and asks the host to refuse it should the addressing have moved since, so a DNS remediation never changes an address. Only what the profile sets is sent: a profile with only a search domain keeps the DNS servers the host has at that moment, and one with only DNS servers keeps its domain.
  • Drift is read when the page is open. The drift view reads each member when it is shown; no alarm is raised for drift, and nothing is remediated on its own.
  • A backup holds the time servers, DNS and search domain, the SSH service, lockdown and its exceptions (and, for reference, the management addressing and certificate). Restore puts back only what the backup holds: a backup taken without DNS servers (on DHCP, or before resolvers were set) leaves the host's DNS servers as they are rather than clear them, and one without a search domain leaves the domain as it is. A restore never changes the management address, and does not bring back VM definitions, disks, distributed switches or NFS datastores (Finish adding re-applies switches and datastores).
  • Backups are kept by host name, five per name, one per installation: a host reinstalled under another name does not see its earlier backups.
  • What needs real hardware: none beyond a host reinstall in a lab; the routes, the drift comparison and the restore are tested against stub hosts.

126. Bulk migrate, VM tags and maintenance of several hosts

  • Bulk migrate moves running VMs live, one at a time. A stopped VM is not moved by it (use Migrate on that VM for a cold move), and a move stays inside the VM's cluster. With a named destination a VM goes there or not at all; with automatic placement each VM goes where the evacuation planner puts it, on the hosts the operator may migrate VMs onto. Each move is checked again just before it starts: a destination put into maintenance, rebooting or updating since the precheck, gone offline, or a VM no longer running where it was, is skipped and named in the task.
  • Tags are labels in SimpleVirt-Command only. They do not reach the host, a guest or a backup product; the list's search finds them, but there is no tag-based rule, permission or report. Up to 20 tags a VM, 40 characters each.
  • A maintenance sequence stops at the first host that cannot enter maintenance and leaves the hosts after it as they are; it never overrides the storage-safety gates (force), and the hosts must be in one cluster. The sequenced update of several hosts is the cluster's rolling upgrade (Settings → Updates), which already runs on any storage.

127. The OpenAPI contract has no field-level body schemas

GET /api/v1/openapi.json (on SimpleVirt-Command, and on each host) lists every route with its path parameters, authentication, privilege, deprecation and the error shape, generated from the route table, but not the fields of each request and response body. Each operation's body is an open object there, and links the API reference (in the appliance's documentation), which describes the bodies in prose. A client generated from the contract gets every path and its authentication right, and needs the reference (or a hand-written model) for the bodies. A route added without regenerating the contract fails a test, so the contract never misses a route; a body field added or changed is caught only by the reference's own review. The contract has no interactive explorer page: load it in your own OpenAPI viewer. No client library is published.

What to do: use the contract for the route list, authentication and privileges, and the API reference for bodies; send X-Request-ID values from errors to support with the operation id.


128. Freeze hooks run on Linux only and within 6 seconds

Guest Tools runs the hooks in /etc/simplevirt/freeze-hook.d around every freeze of a Linux guest's file systems (Guest Tools (in the appliance's documentation)), and all of one freeze's hooks share 6 seconds. The host waits 15 seconds for a freeze to answer; the 6 seconds, and at most 4 more (plus one 2-second window that all the hooks still letting go after that share, however many there are) to thaw the hooks of a refused freeze, leave the file systems' own freeze the rest. The budget is not a setting. A database that cannot flush and lock in that time (a large MySQL instance under heavy write load can take longer to obtain FLUSH TABLES WITH READ LOCK) has its freeze refused, and the snapshot is crash-consistent: the host does not then freeze through the guest agent, which runs no hooks and would label the snapshot application-consistent over the hook's refusal. The host and the guest log the hook's name and output; the snapshot list does not show the reason, only that the snapshot is crash-consistent.

  • A freeze that answers late is thawed at once. When the guest's answer misses the host's 15 seconds (a very slow file system freeze), the host sends the thaw for the same freeze right away, which the guest runs as soon as the freeze finishes, and takes the snapshot crash-consistent. The guest is frozen for the length of that late freeze, not the two-minute deadman.
  • A Guest Tools restart during a freeze lets it go at start. Guest Tools records an active freeze in /run/simplevirt/freeze.json; the next start runs thaw on the hooks it names that are still hooks, and thaws the file systems. A hook's thaw must therefore be safe to run when its freeze did not finish (the samples' is). If the record cannot be written, the freeze is refused and no hook runs.
  • A guest with hooks never has its snapshot frozen without them. Whatever refuses its freeze (a hook, the freeze record, the file systems' freeze, another freeze in progress), Guest Tools answers with a hook refusal and the host takes the snapshot crash-consistent instead of freezing through the guest agent. A guest without hooks still falls back to the guest agent's freeze.
  • Upgrade the hosts before the Guest Tools in their VMs. A host from before this release does not know the hook refusals: for a guest that already runs these Guest Tools with hooks installed, it treats a refusal as any other and freezes through the guest agent, recording the snapshot as application-consistent although the hooks refused. The upgrade order (in the appliance's documentation) puts the Guest Tools last.
  • A hook thaw that misses its window is not run. The thaw of the hooks after a refused freeze ends when its shared window does; a hook not yet run then is skipped and logged, and its application lets go by itself (the MySQL sample's session ends after HOLD, 5 minutes by default).
  • Windows runs no hooks. Windows applications hold their writes through their VSS writers, which the guest agent's VSS provider asks during the freeze.
  • The samples are examples. The MySQL and PostgreSQL samples have been checked for shell syntax, and the MySQL sample has been run against a stand-in client in tests (taking and ending its session, and not signalling a process that took over the session's PID after the session ended by itself); neither has been run against a real database server in a guest: try a sample on a test VM (take a snapshot, check the guest's log) before using it in production.
  • The guest agent's freeze does not run these hooks. When Guest Tools is not running and the host falls back to the guest agent, only the agent's own fsfreeze-hook (if it is configured) runs.

What needs real hardware: a snapshot of a guest running MySQL or MariaDB and PostgreSQL under write load with the samples installed, on a real host, timing the hooks and the file system freeze against the 6- and 15-second budgets.


129. The guest OS matrix is not yet backed by lab runs

The guest OS compatibility (in the appliance's documentation) table says what SimpleVirt supports and what each guest gets, but no guest in it has yet had the full release run on real hosts (install, Guest Tools, live migration, snapshot, HA restart). Support levels are a commitment, not a measured result, until that page records the runs. The table and Create VM's Start from hint say "not yet lab-verified" beside every level until then (the catalog's lab_verified). Ubuntu 24.04 and Debian 13 have booted as Kubernetes node images under emulation; the Windows installer and drivers have been tested with simulated hosts only (§57).

  • The guest OS a VM was created as is recorded on the host and in the VM's definition, so it moves with the VM. A VM created before this release, imported, or created with a family alone has none; it is described by its family, as before. Changing a VM's Guest OS family afterwards drops it. Clones and templates carry the family only.
  • The Start from list is SimpleVirt-Command's. A host's own Create VM (its web console) keeps its own Guest OS choice (the four families and Auto / other) and does not send a catalog guest OS.
  • Not listed means untested, not refused. Any other operating system can be created with Guest OS Auto / other; it gets virtio devices, so it needs virtio drivers.

What needs real hardware: an install of each guest on a real host, Guest Tools in it, a live migration, a snapshot (application-consistent where Guest Tools runs), and an HA restart; the results go into the guest OS page.


130. In-product help shows the guides installed on the appliance

The Help link on every page of SimpleVirt-Command and of a host's web console, and each alarm's Learn more, open the guides from /usr/share/doc/simplevirt on that appliance, rendered at /docs/. They need a signed-in session; a page opened after the session ended (Help opens in a new tab) shows a short page with a Sign in link instead of the guide, and the guide opens again after signing in. An appliance whose guides were removed by hand answers "Guide not found" and points at the published copy. The rendering covers the Markdown the guides use; anything else in a guide shows as plain text.

  • Help on a host's web console opens the host web console guide, not a section per page, and the alerts on a host's Health page have no Learn more of their own; the alarm reference (in the appliance's documentation) covers them by the same keys SimpleVirt-Command uses.
  • The support data terms in Privacy and support data (in the appliance's documentation) are the vendor's policy. The product cannot enforce what happens to a bundle after you send it; it only makes sure a bundle is collected and sent by you, with secrets redacted.

131. Out-of-band BMC health and moving VMs off failing hardware

SimpleVirt-Command reads each host's BMC over the network, through the BMC address and credential set for power fencing, every 5 minutes, and judges whether a host's hardware is failing badly enough to move its VMs off. The reading and the rule have been checked against documented Redfish and IPMI output and in automated tests, not yet on every vendor's BMC or on a real failing server; that run is still to be done.

  • A failing host takes no VMs from SimpleVirt. While host.hw.evacuation fires or its failure lasts, evacuations and maintenance of other hosts, balancing and initial placement skip it. A move or power-on chosen by hand, and an HA restart with nowhere else to go, still may use it.
  • Only a host with BMC coordinates is read out of band. The address, user and password come from the host's power fence settings; the power fence itself does not need to be turned on for the health reading. A host without them is watched in band only (§58).
  • A reading counts only for the host's own BMC. Each read also asks the BMC which machine it controls and compares it with the host's system identity, by the rules HA uses before a power-off. A BMC that reports another machine, a placeholder identity or none at all is not used for alarms or for moving VMs, and raises host.bmc.unreachable instead.
  • Out-of-band sensor alarms stand in for the in-band ones, they do not repeat them. When the host reads its own BMC sensors (/dev/ipmi0), its host.hw.* alarms speak for them and host.bmc.health raises nothing for the same parts; the out-of-band card is still shown.
  • Redfish is read from the first system and chassis the BMC lists, from the classic Power and Thermal resources, and from the event log named SEL (else another event log; not the lifecycle or audit log). A BMC that offers only the newer power and thermal subsystem resources reports no supplies, fans or temperatures here, and the card says so. A multi-node chassis whose BMC lists several systems is read for the first one only.
  • Redundancy is judged only where it exists, as in band: a redundancy group raises nothing unless at least two supplies (or fans) are fitted.
  • A Redfish power supply reporting Warning is an alarm, not a failed supply. BMCs report a supply Warning for things that are not failures (a firmware mismatch, an input voltage out of range), so it raises a warning host.bmc.health alarm and never moves VMs by itself; a supply reporting Critical, or lost supply redundancy, does.
  • Links are followed on the BMC's own address only. The Redfish resources a BMC links to (its chassis, power, thermal and event log) are read from the configured BMC address: a link that names another address is read as its path on the BMC, never fetched elsewhere with the stored credential.
  • A BMC that cannot be read holds the failing-hardware alarm. A failed or timed-out read, a read whose system identity could not be read or cannot yet be matched to the host, and a partial read (an IPMI sensor listing cut short, or a Redfish chassis, power or thermal resource that did not answer) keep every host.bmc.health alarm, and host.hw.evacuation with its failure episode, as they were: no new automatic move starts when the BMC answers again. The same holds while the host's own reading is missing or older than 15 minutes. The alarm clears, and the episode ends, only after every source has read in full and shown the hardware healthy on two checks in a row (about 10 minutes); a part the BMC still names as failing holds it even before its own alarm fires again.
  • The automatic move is tried once per failure, and a refusal is not retried. SimpleVirt starts Enter maintenance from the alarm check itself, so its safety checks (the storage's resilience checks, the witness, another storage operation already running) answer at once. When they refuse, the alarm says why and SimpleVirt does not try again on its own for the same failure, even if the reason was brief (another operation that has since finished): move the VMs off yourself with Enter maintenance and Migrate VMs.
  • What counts as failing hardware (host.hw.evacuation): an uncorrected memory error since boot, a critical SMART verdict on a disk the host's own system lives on with no healthy, in-sync mirror half, a power supply that reports a failure or lost supply redundancy, and a temperature past its critical line. A corrected-error rate, a disk with pending sectors, a data disk (the storage's own redundancy covers it) or a fan alone does not move VMs. The system disk is found from the installer's boot layout or the device under the root file system; a system disk behind a RAID controller is not recognized as one.
  • Moving VMs off is live migration only. It is Enter maintenance with Migrate VMs, started by SimpleVirt as the system user; when a VM has nowhere to go, or the storage's safety checks refuse taking the host offline, nothing is moved or shut down, and the alarm says why. It is started once per failure: after the host leaves maintenance with the hardware still failing, SimpleVirt does not start it again on its own until the hardware has been healthy in between. It is not started while SimpleVirt-Command cannot reach the host, or while other maintenance work on it runs. It needs the cluster's HA to be on, like the other failure responses, and it moves VMs over the migration network only: a destination without one stops the move (VMs already moved stay where they went, nothing is shut down), and the alarm says why.
  • A failing data disk under a storage disk (OSD) is drained, not the host. When a host's SMART reading says a disk under an OSD is failing (critical), the storage guardian drains that OSD like a predicted failure, with the same safety checks (§58).

132. Maintenance moves powered-off VMs and templates by their definition only

What it does. With Also move the powered-off VMs and templates (move_powered_off), entering maintenance moves every powered-off VM and template defined on the host, one at a time and definition only, to another member before the host enters maintenance: the member must mount every datastore their disks are on (by storage identity) and pass the migration precheck in its cold mode. A template is marked a template on its new host before its old definition is removed.

What it does not do.

  • Nothing is copied. A VM or template on the host's own storage (a local directory, a disk no other member mounts) stays, and is named in the task with the reason; it never stops the maintenance.
  • They are not moved back on exit. Exit maintenance offers to start only the VMs maintenance stopped; the moved ones stay where they went.
  • One move after another. A host with many powered-off VMs takes a few seconds per VM before it enters maintenance; cancelling the task stops before the next one, and the ones moved stay.
  • A move that fails part way is told, not retried. Each move takes itself back when it can (the VM stays defined on the host it was on); when it cannot tell where the VM is defined, the task says so, as the Cold migrate action does.
  • A host outside a cluster has nowhere to move them, so the option is refused there. In a maintenance sequence of several hosts, each host's powered-off VMs go to hosts not yet in maintenance, so a later host in the order may receive some and move them on in its turn.
  • Proven by tests only. The plan, the move of a VM and of a template, and the storage check run against fakes of the hosts. No maintenance has moved powered-off VMs or templates on real hosts yet.

What to do. Keep templates and VMs you want reachable during maintenance on storage every member mounts.


What it does. An evacuation (and maintenance, a planned reboot or shut down, an update drain) ranks the members that fit a VM by its preferred VM-to-VM rules, then its preferred VM-host rules, then the load the member would carry with it (the Workload Distributor's averaged CPU demand, memory promised and vCPUs, counting what the same plan already sends there), and asks the chosen member's libvirt whether it can run the VM's concrete CPU, as a manual migration does, both when it plans and right before the move starts. The number of moves a host sends and receives at once follows its migration link unless set (§100).

What it does not do.

  • Preferred rules are a preference here. An evacuation must empty the host, so a member that breaks a preferred rule is used when no other fits; the distributor itself never does that.
  • No cost model. A large VM and a small one are ranked the same way; the plan does not order moves to finish sooner.
  • A VM whose CPU no member's libvirt accepts stays running and is named; it is not powered off to move it.
  • A disc in the CD/DVD drive is checked too (§31). A member that cannot open it is skipped for that VM. The Guest Tools disc is accepted on a member of another release, with a warning, so a rolling update's drain does not stop on it; any other ISO-library image must have the same name and size there.
  • A limit saved before this release stays. The Networks tab used to fill in 2 arriving per host, so a cluster whose limits were saved then keeps 2 and does not follow the migration link until Live migrations at once is set to 0; the tab says so.
  • Proven by tests only. The ranking, the CPU compare and the limits run against fakes of the hosts. An evacuation with three or four moves at once over a fast link has not been timed on real hosts; record the run here when it has.

What to do. Give the migration network ports of its own; on a fast link that is busy with other traffic, set Live migrations at once by hand.


134. A live migration across a restart of the host's management service

A host whose SimpleVirt service restarts while it sends a VM by live migration now picks the move up again instead of forgetting it. Each outgoing move is recorded on the host's disk (/var/lib/simplevirt/migrations/outgoing/) when it is accepted and at each change of state; a restarted service reads the record and reports the move as running from its first answer, then follows the transfer libvirt is still carrying (progress, its stall and time limits, the hold that keeps libvirtd from restarting under it) until it ends. A move whose transfer ended during the restart is settled from what libvirt reports then: the VM gone from the host means it moved; still running there means it did not move; paused there goes through the same check as any move that ended without a clear answer, which asks the destination. SimpleVirt-Command no longer waits 35 minutes when a host answers that it knows of no move at all (a host of an earlier release that restarted, or a record that could not be read): after 20 seconds it reads both hosts' VM lists and reports the move done, not done, or a possible second running copy, and gives up with "outcome unknown" once 5 minutes have passed since the host first answered so, if the lists still do not tell. The edges:

  • Proven by tests only. That libvirtd carries a peer-to-peer transfer to its end after the service that started it went away, and how libvirt reports the job meanwhile, are tested with a fake hypervisor; neither has run on real hosts yet.
  • A move that copied disks between datastores is followed and settled, but the source disks SimpleVirt-Command removes after such a move are removed only by the task that started it; if SimpleVirt-Command itself restarted too, remove them by hand.
  • A move that was still queued when the service restarted had not started its transfer: it is reported failed, the VM stays where it was, and you start it again.
  • The record of a finished move is kept 5 minutes, as before, so a status read after that answers "no move".
  • Cancelling a move after the restart works as before (the host aborts the transfer libvirt is carrying); when the cancel wins, the move is reported cancelled and the VM keeps running where it was.

135. The HA event history after SimpleVirt-Command stops unexpectedly

SimpleVirt-Command writes the HA event history (ha-events.jsonl) off the path that records events, at least once a second and in full on a clean stop. If the process is killed or crashes instead, up to about the last second of events can be missing from the file, and so from the history after the restart. Nothing HA decides is read back from this file: the restarts themselves, their records on the hosts and in the cluster services are unaffected. Two things follow:

  • A recovery event can show twice. After such a restart SimpleVirt-Command does not find the missing event and may record it again.
  • Event numbers are never reused. A start that does not find the mark a clean stop leaves numbers its events past every event that may have been shown before the stop, so a client following the event stream sees a jump, never a number twice. The same jump happens once at the first start after an update from an earlier release.

136. Firmware conversion, CPU pinning and the hypervisor signature

Edit settings → Firmware and CPU changes a powered-off VM's firmware, CPU pinning and whether the guest sees the hypervisor. SimpleVirt rewrites the VM's configuration; it does not prepare the guest operating system.

  • A firmware conversion does not convert the guest's disk. SimpleVirt changes the firmware the VM starts with, not the guest's partitioning or boot loader. A guest installed for BIOS needs a GPT disk, an EFI system partition and a UEFI boot loader first, and a guest installed for UEFI needs an MBR or BIOS boot partition; without that it stops at "no bootable device" until it is converted back. A VM converted to UEFI starts with Secure Boot off when the host has a UEFI build without it; otherwise the host's firmware default decides. Turning Secure Boot on is a second edit.
  • Any snapshot blocks a conversion. A VM with snapshots is refused wherever they are kept (snapshot records on file datastores, storage snapshots on SimpleVirt HCI or a shared LUN), because a revert would bring back the disk prepared for the old firmware. When the host cannot read a VM's storage snapshots (its storage is unreachable), the conversion is refused until it can. Delete the snapshots, or keep the VM on its firmware.
  • A conversion to BIOS that also removes the PCI devices is applied in order. The devices are removed first and the firmware changed after; if a removal fails, the VM stays on UEFI with its devices and the edit reports the error. Other changes in the same edit that were applied before it stay applied, as for any edit that fails part-way.
  • Going to BIOS removes the VM's UEFI settings. A copy of them (boot entries, enrolled keys) is kept on the host in nvram-before-bios, one per change; converting back to UEFI starts from fresh settings, and the copy is not put back for you.
  • A GPU added in Edit settings does not switch a BIOS VM to UEFI. Create VM boots a passthrough VM with UEFI; a GPU added to an existing BIOS VM may need the firmware changed too.
  • CPU pinning is checked against the VM's host only. The host refuses CPUs it does not have online, and SimpleVirt-Command checks the same before sending the edit. Other members of the cluster are judged when the VM moves or is restarted by HA, as for a pinning set at create.
  • Automatic hides the hypervisor only for an NVIDIA display device. It is decided from the PCI vendor and class the host reads for each passed-through device when the VM is created or its devices change in Edit settings. A guest driver of another vendor that refuses to run in a VM needs Always hide it. A VM made before this release has no setting and keeps its definition (hidden for a VM created with any passed-through device) until one is chosen; a clone of it or a VM deployed from such a template copies its signature state as it is, also with no setting.
  • A VM's version moves once after the upgrade. The hypervisor-signature setting and whether the signature is hidden are part of a VM's configuration version (its ETag). A VM that hides it (any VM made before this release with a passed-through device) and every VM made by this release therefore answer a new version once the host and SimpleVirt-Command run this release. A script holding an ETag read before the upgrade gets one 412 precondition_failed with current_etag; nothing changes on the VM, and a re-read and retry goes through. The version is checked where it is read: an older SimpleVirt-Command checks its own ETag, the host checks the one its own GET /api/v1/vms/{uuid} answered.

What needs real hardware: a BIOS-to-UEFI and a UEFI-to-BIOS conversion of an installed Windows and Linux guest prepared as above, booted on a host; a consumer NVIDIA GPU passed through in Automatic mode with a current and an older driver; and a Linux guest with an AMD GPU or a network card passed through, showing kvmclock as its clock source.


SimpleVirt-Command serves its web console as one minified file per page, cached by the browser for a year under a name that changes with its content. The gain is measured in what is sent: on the first load about 0.8 MB compressed in three files instead of about 1.6 MB in some 160, and on every later load nothing but the page itself until an upgrade. It is not yet measured in seconds on a customer's network.

  • Only gzip compression is offered, prepared when the release is built; a browser that does not accept gzip gets the uncompressed files.
  • A console page left open across an upgrade keeps running the build it loaded until it is reloaded, as before. The files it already has stay valid; one it never loaded is not offered under its old name, which is answered "not found" rather than with the new page.
  • The source files are still served at their usual addresses beside the bundle, for the developer tools of a browser and for the parts of the console that load a file by name (the serial console's terminal).

A host's Logs answer says whether its journal is on disk. The host reads journald's own settings and directories, the same ones journald reads at startup; it does not write a test entry. A host running a release before 1.1.0 does not say, and the Logs page then names no host.

The license agreement and the notices are shown as plain text in the About reader, exactly as the files on the appliance hold them; the third-party notices keep their Markdown markup.

What needs a real appliance: a controller upgraded across a release, opened from a browser on a slow link, to time the first and the repeat load and to confirm the cached files are reused; and an installed host restarted, to confirm its journal lines are still there afterwards and the Logs page names no host.

138. Traffic visibility: LLDP advertise, port mirroring and IPFIX export

Each host can advertise itself with LLDP, mirror a VM's traffic and export IPFIX flow records (Host → Settings → Networking → Traffic visibility). What they do and do not do:

  • LLDP advertise is off until you turn it on. It sends one advertisement per port every 30 seconds (time to live 120 seconds) on every switch uplink and the management port, or on the ports you choose: the host name, the port's name, what the port is for, the product and version, the capabilities and the management IPv4 address. It does not send the 802.1 or 802.3 organizational extensions (VLAN names, link aggregation, MTU). CDP is received but never sent.
  • A mirror session belongs to one host. It applies while the mirrored VM and the analyzer VM run on that host; when either moves to another host (a migration, an HA restart, DRS), the session waits until it is back, and it is not created on the other host for you. Mirroring to a VM on another host (an encapsulated remote mirror) is not offered.
  • A mirror's destination port must be a dedicated, unused physical NIC. The copy goes out of it unchanged, so a port that is a switch uplink, a team member, the management port or holds an address is refused.
  • A VM NIC with a receive rate limit from its port group may not take a mirror. When the rate limit already holds the kernel hook the mirror needs, the session shows the error instead of mirroring.
  • Mirroring and sampling cost CPU in the host's packet path. Every mirrored frame is copied once per session; at most 16 sessions per host.
  • IPFIX export is sampled. One packet in N (1000 by default) is taken where it enters the host's switching (from each VM, and from each uplink); packet and byte counts are scaled by N, and every record carries the sampling interval. Records name the ingress interface by index (VLAN, addresses, protocol and ports included); they do not name the VM. At most 65,536 flows are held at once.
  • Not yet proven on a production NIC and switch. The frames, the traffic-control commands and the IPFIX encoding are covered by tests, but LLDP advertise against physical switches, mirror throughput and flow export at line rate need a run on real hardware.

139. The installer's disk list, its UEFI boot entry and its install log

  • The disk list shows each disk's attachment (NVMe, SATA, SAS, USB, VirtIO), SSD or HDD, serial number, world-wide name and what is on it now, before a disk is chosen. A disk whose contents cannot be read says so; it is never shown as empty. A virtual disk's SSD or HDD kind is not shown, because the kernel's flag says nothing about the storage behind it.
  • A UEFI install registers a "SimpleVirt" boot entry, first in the boot order, pointing at the same loader as the removable-media path \EFI\BOOT\BOOTX64.EFI, which stays as the fallback (a disk moved to another server, or reset NVRAM, still boots). A mirrored boot layout gets one entry per disk ("SimpleVirt (disk 2)"). A reinstall or an upgrade replaces the entries an earlier install made. Firmware that refuses to store the entry is not an install failure: the install log says so, and the disk boots through the fallback path. The entry's behaviour on each server vendor's firmware needs a run on that hardware.
  • The install log is kept at /var/log/simplevirt-install.log on the installed system and is in each host's support bundle. An upgrade appends its own run. A failed install keeps it only when the target's root file system was already mounted; a failed upgrade that switched back keeps it in the restored system.

140. State files are written with fsync

Host and controller state files (maintenance mode, HA and migration holds, protection, settings, the task log, update and request spools) are written to a temporary file, synced, renamed into place and the directory synced, so a power loss leaves the old or the new file and never an empty one. A build-time check refuses new code that writes and renames a file without syncing it. Files on a network datastore are synced as far as that file system allows. Append-only logs (the audit log, the task log between compactions) are not synced per record, so a crash can lose their last few seconds.

141. Guest Tools upgrades across the fleet

The Guest Tools compliance view, the fleet upgrade and the upgrade at the next restart (Administration → Lifecycle and updates → Guest Tools across your VMs, and /api/v1/guest-tools/...) are proven against simulated hosts in the test suite; they have not yet been run on a lab fleet of real guests. Record a run of each (an upgrade now of several Linux guests, one marked VM restarted from inside the guest, and one VM powered on with the fleet setting on) before relying on them at scale.

  • A guest is upgraded only from the Guest Tools ISO on its own host. A VM whose host carries the same build it runs is current, even when this controller's release has newer Guest Tools; the row says the host is behind, and updating the host is what brings them.
  • Only Linux guests with the qemu-guest-agent connected are upgraded unattended. A Windows guest is upgraded by running SimpleVirtGuestSetup.exe from its Guest Tools tab, and is never marked for an upgrade at restart. A VM whose CD/DVD drive holds another disc is skipped rather than having it ejected; eject it, or upgrade from the VM's Guest Tools tab.
  • The view reads each VM from the controller's last reading of it. A VM never read shows Checking… for a few seconds while it is read, a few per host at a time. A VM that is off shows the version it was last seen running only when this controller saw it running since it started.
  • "At next restart" notices a restart within about two minutes. A power-on is seen at the next poll of the host. A restart inside the guest leaves the VM's power state unchanged, so marked VMs are read every two minutes, at most 25 a pass, and a new boot reported by the guest starts the upgrade. The fleet setting Upgrade outdated Guest Tools when a VM powers on acts on power-ons only, not on restarts inside a guest; mark the VMs for that.
  • A guest that does not report its Guest Tools within ten minutes of restarting keeps its mark, with the reason, and is checked again at its next restart.
  • Installs are queued, two per host and four across the fleet at once. The upgrades at restart share these slots with Upgrade now, so a host whose VMs all power on together upgrades them two at a time; the others wait their turn. A VM being moved between hosts or datastores is not upgraded: an upgrade now names it as skipped, and a marked VM keeps its mark for its next restart.
  • The mark of a VM no host lists is dropped after 30 minutes, counted only while every host answers its poll, so a deleted VM no longer counts toward the marked VMs. A VM on a host that is not answering keeps its mark.

142. The API-token rate limit is kept per controller

Each API token draws from a request bucket held in the memory of the controller that serves it (by default 600 requests a minute, bursts of 120; Administration → Sign-in and sessions). A controller restart, or a failover to the standby of a controller pair, starts every bucket full, so a token may make one extra burst then. Browser sessions are never limited. Requests that present a token the controller does not accept are limited per source address (an IPv6 address by its /64 block); behind a proxy that hides client addresses they share one bucket.

143. The simplevirt command-line tool

simplevirt (see Command-line tool (in the appliance's documentation)) covers the everyday fleet tasks: VMs, hosts and maintenance, tasks and Guest Tools. Anything else is reachable with simplevirt api, which sends a request as it is given. It authenticates with API tokens only (single sign-on is browser-only), and --wait follows one task: a command that starts several tasks, such as a maintenance that moves VMs, waits for the task it started, which itself ends when its work has ended. It is built for Linux, macOS and Windows (make simplevirt-cli) but has been run only on Linux.

144. The upgrade bundle builder and node script

The bundle builder, the bundle's node script and their limits are covered together with the upgrade that uses them in 145.

145. Kubernetes upgrade bundles and air-gapped upgrades

Upgrade Kubernetes… takes everything from a signed upgrade bundle in the Image library by default: it checks the bundle's signature on the first control plane, copies it onto every node, one at a time, and only then upgrades the nodes, so nothing is downloaded and, once every node holds the bundle, the upgrade can be finished by hand without SimpleVirt-Command. What holds today:

  • Verified with simulated clusters only, not yet on a real air-gapped site. The upgrade sequence, the bundle check, the staging, the live-only CD/DVD change, the stop between nodes, the carrying on after a stop or a crash at each step, and the eject at startup are covered by tests against a fake host agent, a fake guest and libvirt calls recorded in tests. The node script is tested against stand-in ctr, crictl, apt-get, dpkg and kubectl, on a bundle whose manifest.json the builder's own code writes; no bundle has yet been built from the real upstream downloads and staged on a real node. Still to prove on real hosts: that a node sees the disc in its drive and finds it by its label; that kubeadm upgrade apply with no network passes its preflight with only the staged images; that apt installs the bundle's packages with no sources on Ubuntu 24.04 and Debian 13; that kube-vip keeps the API address across its restart on a three-node control plane; that etcd stays healthy while a control plane stages over NFS or HCI; and a whole rolling upgrade, which has never run on real hardware.
  • The bundle's storage must be reachable from each node's host. The disc is attached from the content library's datastore. A node whose host does not mount that datastore is refused by Check with a plain message: put the library on storage every host mounts, or stage the bundle on the node by hand.
  • Hosts must be on this release. The disc goes into the running VM only. An older host would write it into the VM's settings, so SimpleVirt-Command refuses to lend a bundle to a host that does not list vm.cdrom_live_only.
  • A disc in use is never swapped. A node whose CD/DVD drive already holds a disc someone put there is refused until it is ejected. When the run gives the bundle back, it ejects only while the drive still holds the bundle it lent, so a disc an operator put in meanwhile stays.
  • Room on every node. Staging needs twice the bundle and 1 GiB free on /var/lib; each upgrade leaves about the bundle's size of pinned images and packages, and the images and bundles of versions older than the one upgraded from are removed after a successful run.
  • A copy cut short starts over. If SimpleVirt-Command stops while a node is copying a bundle, the copy on the node carries on, but the disc is ejected at SimpleVirt-Command's next start, so that copy fails without marking the bundle staged. Running Upgrade Kubernetes… again stages that node again and skips the nodes that hold the bundle.
  • One bundle carries Kubernetes and Calico only. containerd, runc and kube-vip stay at the versions the node image was built with. After an upgrade, Add workers… and Add control planes… still need a node image of the new exact version; Check says so when the Image library has none.
  • Nodes baked from an image older than 1.1.0 have a simplevirt-k8s-certs-renew without --restart-kube-vip until Renew certificates… runs on the cluster; the hand-run commands and README.txt on the disc give the manual kube-vip restart for them.
  • The way back is the etcd snapshot. After kubeadm upgrade apply the upgrade only goes forward; installing the older packages again on a node is not supported.
  • prune knows the images of bundles staged on the node. Images the node image itself preloaded are not removed by it.
  • An unsigned development bundle (built without a signing key, which STRICT_RELEASE=1 refuses) carries no signature, so nothing proves where it came from, and the Image library refuses it; use only signed bundles on a real cluster.
  • A node not built from a SimpleVirt node image needs apt, dpkg, containerd's ctr, crictl and sha256sum; the bundle carries .deb packages only, so the node must be Debian or Ubuntu.
  • Machines joined by hand are staged over SSH or by hand. See 146.

146. Machines joined by hand in a Kubernetes upgrade

A node an operator joined to a SimpleVirt-built cluster by hand (bare metal, or a VM SimpleVirt does not manage) can be added to the cluster's roster as a machine, and Upgrade Kubernetes… then upgrades it with the node VMs, in the same order: every node holds the bundle before any node changes, then the control planes, then the workers. For each machine and each run the operator chooses over SSH (SimpleVirt runs the steps) or by hand (SimpleVirt shows the commands and waits). What holds today:

  • Verified with simulated clusters only, not yet on a real air-gapped site. The roster, the plan, the SSH path and the wait for hands are covered by tests against a fake guest, a fake host agent and an SSH server inside the test process. No upgrade of a real bare-metal machine has run yet, over SSH or by hand, and neither has the bundle's stage step marking a real machine's Node.
  • Debian and Ubuntu only. The bundle carries Debian packages. A machine running another operating system cannot be added to the roster, and while it is in the cluster Check names it and its operating system as a blocker. It cannot be left behind and upgraded afterwards: the control planes' upgrade moves kube-proxy on every node (and Calico, when the run applies it) to new images, which reach an air-gapped node only through the bundle. The path that works is to take it out first (drain it, sudo kubeadm reset on it, sudo kubectl --kubeconfig /etc/kubernetes/admin.conf delete node <name> on a control plane), upgrade, and join it again at the new version with your distribution's Kubernetes packages.
  • What stays on a machine. As on a node VM, the staged bundle under /var/lib/simplevirt/k8s-bundles/<kubernetes>/ (packages, manifest and node script; older versions' are removed by the run over SSH). A run over SSH also leaves an empty lock file, /var/lib/simplevirt/k8s-certs-renew.lock, which the kubeadm step holds so it never overlaps SimpleVirt's certificate renewal; it does nothing on its own and can be deleted when no upgrade runs. No service, timer, agent or credential is left.
  • At least one control plane must be a SimpleVirt VM. The bundle's signature check, the etcd snapshot, the Calico apply and every Kubernetes read run on a control-plane VM; a cluster whose control planes are all machines cannot be upgraded from SimpleVirt.
  • SSH: credentials for one run, a key only. The address, user and private key (and its passphrase) are given with each run and live in memory for that run alone; they are never stored, logged, audited or written into a task, so a run that stopped needs them again. Password logins are not offered. A user other than root needs password-free sudo. The host key is read for the operator to confirm (or a known fingerprint is pasted), and every connection of the run must present exactly that key; the plan reads the key the server prefers, so a pasted fingerprint must be of that key type (usually ED25519).
  • SSH: the bundle travels through SimpleVirt-Command. Its bytes are read from a host that holds the library's ISO, through that host's datastore download, and written over SSH into a temporary folder in /var/tmp on the machine, so the machine needs room there for the ISO as well as twice the bundle on /var/lib, and SimpleVirt-Command must reach both the host and the machine for the copy. The temporary copy is removed afterwards, also when staging fails. If SimpleVirt-Command itself stops or restarts during the copy or the stage, the copy stays on the machine until the next run over SSH to it removes it (any copy older than three hours), or until the machine's own clean-up of /var/tmp; remove it by hand with sudo rm -rf /var/tmp/simplevirt-k8s-bundle.* when no upgrade is running.
  • By hand: the operator brings the bundle. Download the ISO from the Image library or carry it on a USB stick; the stage command shown checks its manifest and node script against what SimpleVirt verified, chained so that a failed check stops it before the disc's script runs. SimpleVirt knows staging is done when the bundle's stage step marks the machine's Node (simplevirt.io/bundle-staged). Writing that mark uses the machine's own kubelet credentials and is only a warning when it fails (no kubectl on the machine, or the API out of its reach): the stage is then done but SimpleVirt does not see it. The commands shown end with the fallback: on the machine, a check that it holds the bundle which only then prints kubectl annotate node <machine> simplevirt.io/bundle-staged=<manifest_sha256> --overwrite, with the run's real checksum, to run from a control plane. A bundle whose stage step predates the mark needs that line too. The wait has no time limit, so stop it with Stop after this node. For the upgrade itself SimpleVirt drains the machine first, then waits until its kubelet reports the new version and it is Ready (and, on a control plane, until its API server runs the new version and, where it runs kube-vip, until kube-vip has started again after that API server), then puts it back in service. SimpleVirt reads kube-vip's start time from Kubernetes; it does not test the shared address itself before the next node, whose own check needs the API whole. Stopping the wait leaves the machine cordoned; running Upgrade Kubernetes… again waits there again.
  • By hand: the renewal timer is not paused. On a control-plane machine reached by hand, its own certificate renewal timer (if it has SimpleVirt's) keeps running; the kubeadm step takes the renewal's lock only when run by SimpleVirt. Over SSH it is paused for the run, as on a VM.
  • By hand: older versions are not pruned. The run's task names the command to remove older versions' images from each machine upgraded by hand.
  • A machine is never treated as a VM. It has no host or VM: it is never placed, started, stopped, replaced, protected or deleted. Remove refuses it (use Remove from roster, which changes nothing on the machine or in Kubernetes), Replace workers… leaves it out, certificate renewal and the etcd backup cover the control-plane VMs only, and deleting the cluster leaves it exactly as it is (run kubeadm reset on it to take Kubernetes off).

  • Configuration maximums (in the appliance's documentation) — the published limits and the measured runs

  • Kubernetes storage and LoadBalancer services (in the appliance's documentation) — the CSI driver, the cloud controller and LoadBalancer addresses

  • Backup API (in the appliance's documentation) — the versioned backup-session API for backup products

  • File Services (in the appliance's documentation) — enable, declare shares, mount, and the v1 boundaries

  • Backup responsibility — what SimpleVirt protects and what you must protect yourself

  • Installation — hardware minimums and the migration network

  • Network ports (in the appliance's documentation) — every port, who may reach it, and the appliance firewall

  • Hardware guidance (in the appliance's documentation) — what hardware is expected to work, and SimpleVirt HCI disks and networks

  • Upgrade guide (in the appliance's documentation) — prechecks, order, failure recovery and revert

  • Runbooks (in the appliance's documentation) — step-by-step day-2 procedures

  • Security policy (in the appliance's documentation) — reporting a vulnerability, disclosure and advisories

  • Operations — day-2 procedures

  • Troubleshooting — diagnosing a problem you already have

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.