VMware vSphere: Agentless VM Protection and Recovery

vmware
vsphere
virtualization
agentless
instant-boot

VMware vSphere: Agentless VM Protection and Recovery

StateWarden protects VMware vSphere virtual machines without installing an agent inside each guest operating system. A StateWarden Gateway communicates with vCenter or a standalone ESXi host, discovers the VM inventory, and performs backup and recovery operations from the Dashboard.

This guide covers registration with Verify & Trust, full-VM and per-disk backups, overwrite restore, restore as a new VM, Instant Boot, and Unmount.

Release operating scope: use a Linux StateWarden Gateway for the vSphere backup, restore, and Instant Boot workflows described in this guide.


1. Prerequisites

Before registering a hypervisor, prepare the following:

  • a licensed vCenter or standalone ESXi environment that supports snapshot creation and Changed Block Tracking; the free ESXi read-only API is not sufficient for these workflows;
  • a vSphere account authorized for VM inventory, snapshot, backup, restore, and power operations;
  • a Linux device with the current StateWarden Agent installed and paired with the intended Realm to act as StateWarden Gateway;
  • network connectivity from the Gateway to vCenter or ESXi over TCP 443;
  • VMware Changed Block Tracking available and enabled when incremental backups are required;
  • for Instant Boot, connectivity from the target ESXi host to the Gateway over TCP 3260.

To install and pair the Gateway, follow Installing the Agent and Pairing Your First Device. Keep the Gateway agent current.

2. Register vCenter or ESXi with Verify & Trust

  1. Open External Hypervisors in the Dashboard and select Add Hypervisor.
  2. Enter a recognizable name and the vCenter or ESXi host address. Select the Gateway device and provide the vSphere username.
  3. Leave the TLS fingerprint field empty to use Verify & Trust. Manual fingerprint entry remains available as an advanced procedure when the expected SHA-256 fingerprint has already been obtained through a trusted channel.
  4. Select Verify connection. The Gateway reads the certificate presented by the host and displays its identity and SHA-256 fingerprint.
  5. Compare the fingerprint with the certificate shown by vCenter or ESXi through an independent trusted path. For an ESXi host, the vSphere Client exposes certificate information under Host → Configure → System → Certificate.
  6. Only after an exact match, confirm that you verified the fingerprint and select Trust & Connect. Provide the hypervisor password when requested.
  7. Wait for credential delivery and the first inventory synchronization. Sync now is available when an explicit refresh is required.

If the presented fingerprint changes, StateWarden stops trusted communication. Do not accept the new value until you have confirmed an expected certificate change through an independent channel. An unexplained mismatch can indicate a wrong endpoint or an intercepted connection.

Credential Storage and Gateway Changes

Hypervisor passwords are not persisted by the StateWarden service. The selected Gateway receives the credentials and stores them in its local encrypted configuration.

Re-enter the password after changing the assigned Gateway or replacing its local agent configuration. The service cannot retrieve and forward a previous password automatically. Configuration-only changes do not require a new password when the existing Gateway still holds valid credentials.

3. Review Topology and VM Hardware

After synchronization, the Dashboard organizes the environment into vCenter, physical ESXi hosts, and virtual machines. The hypervisor row shows communication and synchronization state. A Gateway device displays its Gateway role, and synthetic hypervisor inventory entries inherit encryption configuration from that Gateway rather than requiring separate key setup.

Open a VM to review its power state and Hardware Configuration, including processors, memory, virtual disks, and network interfaces. Check the selected disks and restore placement before starting an operation.

VM power-state and topology changes refresh the affected hypervisor scope without reloading the entire Realm. Hidden browser tabs stop background inventory polling. Returning to the tab triggers a current-state reconciliation.

4. Back Up a VM

Full-VM or Selected-Disk Backup

  1. Open the VM in Devices and review its Storage view.
  2. Select Backup Full VM to include all eligible virtual disks, or select Backup Disk beside one disk to protect only that disk.
  3. Optionally enable Force full backup. This reads the entire selected source and creates a new change-tracking baseline. Upload remains deduplicated, so a full source read does not imply an equally large network transfer.
  4. Confirm the operation and monitor progress on the VM row and in its backup history.

Force Full is a manual-backup option. Scheduled policies retain their configured backup behavior. Use Backup Policies to create a full-VM or per-disk schedule; an existing policy's source scope is fixed, so create a new policy when a different VM or disk scope is required. General scheduling and retention procedures are described in Backup Policies and Smart Quota Management.

Running and Powered-Off VMs

For a running VM, StateWarden requests a hypervisor snapshot. With working VMware Tools, guest quiescence can be requested for application-consistent backup coordination. Without working VMware Tools, treat the restore point as crash-consistent. Install and run VMware Tools when guest quiescence is an operational requirement.

Powered-off VMs can be backed up without starting the guest operating system. Multi-disk VMs can be protected in one full-VM operation or through selected per-disk backups.

Disk Scope and Independent Disks

The protected backup scope covers eligible persistent virtual disks. Independent disks are not valid sources for a snapshot-chain backup. Raw device mappings and removable media such as CD-ROM images are outside the protected disk scope. Review Hardware Configuration and the selected disk list before relying on a restore point for complete machine recovery.

If StateWarden reports that an independent disk is locked, remove its independent flag only when that change is acceptable for the workload, or use a chain-free VM configuration and retry. Do not treat a backup as a complete restore point when a required disk was excluded or failed.

A backup is finalized as a usable restore point only when every required disk stream succeeds. A required-stream failure prevents a new change-tracking baseline from being established for that run.

5. Restore a VM

Open Restore Data, select the VM backup and restore point, then choose the required recovery method. Destructive operations can require MFA according to the Realm security policy.

Option A: Overwrite the Original VM

Overwrite restore replaces the selected disks on the original VM with data from the restore point.

  1. Verify the VM identity, backup point, and disk scope.
  2. Remove existing snapshots from the target VM. Overwrite restore requires a VM without snapshots.
  3. Select Restore and confirm the destructive-operation warning.
  4. Keep the operation running until every selected disk completes. StateWarden powers the VM off for the restore and powers it on again only after every restored disk succeeds.

Warning: this operation replaces current target data. Use restore as a new VM when the source instance must remain intact.

Option B: Restore as a New VM

  1. Select Clone VM for the chosen restore point.
  2. Enter a new VM name. Optionally select a target datastore and target host. The default keeps the source VM's current placement.
  3. Select only a physical ESXi host as the target. A vCenter registration or cluster entry is not a physical target host.
  4. Create the clone and review its hardware and network configuration before powering it on.

Restore as a new VM creates a separate instance with fresh identity and generated MAC addresses. The clone remains powered off after registration, and Changed Block Tracking is disabled on the new instance. Devices outside the protected backup scope are not reproduced as protected restore data.

6. Start Instant Boot

Instant Boot starts a temporary VM directly from the backup. Read requests are served from the restore point, while writes go to a separate Copy-On-Write layer. The backup remains unchanged.

  1. Select Instant Boot for the restore point.
  2. Optionally enter a temporary VM name and select the datastore and physical ESXi target host.
  3. Confirm that the target ESXi host can reach the Gateway over TCP 3260.
  4. Start the operation and wait for the temporary VM to register and start. It is marked TEMPORARY in the Dashboard.

For a vCenter-managed host, use the vCenter registration. Instant Boot through a direct ESXi registration requires a standalone ESXi host that is not managed by vCenter. Selecting the correct registration ensures that inventory, target placement, and temporary VM resources are managed in the same environment.

Unmount and Temporary Changes

Before selecting Unmount, preserve any files or configuration that you still need through your normal recovery process. Unmount destroys the temporary VM and discards its Copy-On-Write changes, then releases the associated hypervisor and Gateway resources. The original backup remains unchanged.

The Proxmox-specific Make Permanent action is not part of the VMware Instant Boot workflow. For a permanent vSphere instance, use restore as a new VM or overwrite restore and validate the result before retiring the temporary environment.

7. Operational Notes

Device Quota

Virtual machines and hypervisor inventory entries do not consume the Realm's endpoint-device limit. The paired Gateway consumes one standard-device slot. VM backup storage counts toward the Realm storage quota. See Understanding Quotas and Fair Use.

Removing a Hypervisor Registration

Deleting a hypervisor registration disconnects it from the Realm and archives its associated VM entries. Those VMs no longer receive new backups, but their existing restore points are retained. Review active policies and mounts before removing a registration.

Response Policies and Gateway Protection

Agentless VMs do not run independent StateWarden response policies. The effective policy of the managing Gateway applies to operations performed through that Gateway. Protect the Gateway's own operating system with an appropriate backup policy so it can be recovered if the host fails.


StateWarden: Resilience Engineered.

Was this article helpful?