

# VMware virtual machine backups

You can use AWS Backup to protect on-premises VMware virtual machines (VMs) through a [backup appliance](backup-appliance.md) that you deploy in your environment. You manage these backups with the same AWS Backup console, backup plans, and backup vaults that you use for AWS resources.

## Supported resource providers and versions
<a name="backup-onprem-vmware-versions"></a>

AWS Backup protects VMs from two resource provider types:
+ **VMware vCenter Server.** AWS Backup discovers and protects the VMs managed by the vCenter.
+ **Standalone VMware ESXi host.** AWS Backup discovers and protects the VMs on the host.

The resource provider (vCenter or ESXi host) is not itself backed up. After you register a resource provider, AWS Backup automatically discovers the VMs beneath it, assigns each VM its own Amazon Resource Name (ARN), and applies system tags. New VMs that you add later are discovered automatically without re-registration.

AWS Backup supports the following versions:


| Component | Supported versions | 
| --- | --- | 
| vCenter Server | 7.0, 8.0, 9.0, 9.1 | 
| ESXi | 7.0, 8.0, 9.0, 9.1 | 

VMware Cloud Foundation (VCF) is supported at the vSphere layer only (vCenter and ESXi, within the same version range). vSAN storage policies, NSX, and SDDC Manager are not supported.

## How backups work
<a name="backup-onprem-vmware-how"></a>

AWS Backup creates agentless, VM-level snapshots through the VMware vSphere APIs. For incremental backups, AWS Backup uses VMware Changed Block Tracking (CBT) to transfer only changed blocks. If CBT is unavailable or corrupted, for example after a storage vMotion, a snapshot consolidation failure, or an ESXi crash, AWS Backup falls back to a full backup.

AWS Backup backs up every virtual disk on a VM except independent disks, which it skips. You can't include or exclude individual disks.

The backup appliance deduplicates data for both local and cloud storage, and compresses data that it sends to the cloud.

## Backup consistency modes
<a name="backup-onprem-vmware-consistency"></a>

You can choose one of three consistency modes for each VM. A VM inherits the default mode set on its resource provider, and you can override the mode per VM. Every recovery point records the consistency level that was actually achieved. If you don't set `BackupConsistency`, AWS Backup uses application-consistent with fallback to crash-consistent.
+ **Application-consistent with fallback to crash-consistent (default).** AWS Backup attempts to quiesce the guest. If quiescing fails, the job completes and the recovery point is crash-consistent, with a status message noting the fallback.
+ **Application-consistent only.** If quiescing fails, AWS Backup does not create a recovery point and the job fails with a quiescing error.
+ **Crash-consistent.** AWS Backup does not attempt to quiesce the guest.

Application-consistent backups require VMware Tools to be installed and running on the guest. Quiescing uses VMware Tools (Windows VSS; Linux pre-freeze and post-freeze scripts).

Note the following caveats for application-consistent backups:
+ VMware VSS snapshots do not guarantee transactional consistency for all database engines, especially SQL Server spanning multiple VMDKs.
+ VM-level backups do not provide granular object recovery, such as SQL Server tables or Oracle tablespaces. For SQL Server and Oracle workloads, we recommend using native AWS Backup database support as the primary protection method.

## Backup destinations and copies
<a name="backup-onprem-vmware-destinations"></a>

You can store VMware backups in the following destinations:
+ **Local vault** on the backup appliance, for fast recovery.
+ **Cloud vault.** A copy of the local recovery point in a backup vault or a logically air-gapped vault.

Direct-to-cloud backup (with no local copy) is not supported.

Backups go to the local vault first. To store them in AWS, copy them to a cloud vault in the same account and Region, and then copy onward across Regions or accounts. For details, see [Copy backups from a local vault to the cloud](copy-local-vault-cloud.md). Appliance-to-appliance copy is not supported.

For cloud backups, AWS Backup supports logically air-gapped vaults, vault lock, legal holds, AWS Backup Audit Manager (no new controls), cross-Region and cross-account copy, and cross-account monitoring (CAM).

## Limits and considerations
<a name="backup-onprem-vmware-limits"></a>
+ AWS Backup supports a fixed two-level hierarchy (resource provider to VM resource targets). Intermediate VMware layers, such as datacenters, clusters, and ESXi hosts, are not surfaced as separate resource providers. Datacenters and clusters are reflected in the folder path and resource pool path system tags.
+ VMware VM templates cannot be snapshotted and are excluded from discovery.
+ Active Directory domain controllers and Microsoft Exchange VMs are protected at the VM level only. Exchange log truncation is not performed, and Active Directory restores are non-authoritative by default.
+ Active snapshots consume datastore delta space during a backup. To mitigate this, you can configure AWS Backup to automatically cancel backups when datastore free space is low. Large VMDKs lengthen the initial full backup, and too many concurrent backups can affect ESXi performance. You can cap concurrent streams per datastore and, for vCenter Server, concurrent VM backups to reduce this impact.

## Not supported
<a name="backup-onprem-vmware-notsupported"></a>

The following are not supported for VMware VMs:
+ VMware vCloud Director (vCD)
+ VMware VM templates (excluded from discovery)
+ Cross-vCenter VM migration tracking
+ Continuous Data Protection (CDP) and VM point-in-time recovery
+ Disk inclusion and exclusion
+ Destructive (overwrite) restores
+ File-level restore volume mapping and volume picker