VMware virtual machine restore
AWS Backup provides two ways to restore on-premises VMware virtual machines (VMs): full-VM restore (to the original or an alternate location) and file-level restore.
Full-VM restore
You can restore a full VM from a local or cloud recovery point, to its original location or to an alternate location. To restore from a cloud recovery point, first copy it back to the local vault.
-
Original-location restore recovers the VM to the same resource pool and datastore.
-
Alternate-location restore requires the destination vCenter or ESXi host to be pre-registered as a resource provider on the same appliance as the recovery point.
When you restore to a new location, you provide the following: the target registered vCenter or ESXi ARN, the target resource pool (full path), a single target datastore for the whole VM, the VM folder (full path; not applicable for standalone ESXi), an optional VM name prefix or suffix, and an IAM role.
Restores are non-destructive. You can add a name prefix or suffix to the restored VM, but you cannot set an arbitrary custom name. If you provide neither a prefix nor a suffix, the restored VM keeps its original name, and the restore fails if a VM with the same name already exists at the target. Restored VMs are powered off by default.
Alternate-location inventory paths
For an alternate-location restore, you must provide the resource pool and VM folder as full VMware inventory paths, not names alone. A name alone fails the restore.
Follow these rules when you build an inventory path:
-
The path must be a non-empty string that starts with
/. -
Include the invisible
hostsegment (under a datacenter) and theResourcessegment for resource pools. Include thevmsegment for VM folders. These segments do not appear in the VMware UI but are required. -
Do not include the implicit
Datacentersroot. -
Encode the
\,/, and%characters inside names, per VMware rules (for example,tes\t/1:%becomestes%5ct%2f1:%25). Do not escape the colon. Do not double-encode.
Example resource pool path:
/Datacenter-1/host/Cluster-1/Resources/Pool-1/Pool-2
Example VM folder path:
/SDDC-Datacenter/vm/nested/nested1/nested2
The target datastore must exist under the datacenter of the resolved resource pool.
For standalone ESXi targets, resource pool and VM folder do not apply. ESXi uses the default resource pool (Resources) and the default folder (vm). Omit the resource pool and VM folder from an alternate-ESXi restore.
File-level restore
File-level restore (FLR) recovers individual files and folders from a VM backup without restoring the whole VM. Before you start a file-level restore, make sure that the target VM has the backup agent installed and VMware Tools installed and running. AWS Backup streams the restored files to the agent over the network. For the port to open, see Network requirements and ports. Download the agent from the AWS Backup console or with GetAgentDownload, and keep it current. See Install a backup agent and Upgrade backup agents. The agent is available for Windows and Linux.
-
FLR restores from a local (appliance) recovery point. Cloud FLR is not available.
-
You provide the exact, full, absolute paths, the same paths as on the source VM, for up to 5 items. There is no volume-selection step.
-
You can restore to the original VM or to an alternate registered VM on the same appliance, and to the original path or an alternate path. The default alternate path is
/tmp/. -
File attributes (ACLs, permissions, and timestamps) are preserved by default.
-
Existing files are not overwritten. A file that already exists at the target is skipped.
Partial-success behavior. If some items can't be restored, the job completes with issues. File-level error reports in Amazon S3 aren't available for VMware file-level restore.
Supported and unsupported FLR cases
FLR supports these simple cases:
-
A Windows path on the root volume, such as
C:\path\to\file.txt -
A Linux path on the root filesystem, such as
/home/user/file.txt -
Any simple, directly attached volume whose operating-system path maps directly to the mounted VMDK
FLR does not support these cases:
-
Files on secondary mounted volumes (Linux fstab mounts, Windows mount points)
-
Logical volume mappings that are not in the disk registry
-
Symlinks, reparse points, and virtual mounts
-
BitLocker-encrypted volumes (FLR is not possible)
Supported guest filesystems are ext2, ext3, ext4, NTFS, and XFS. ReFS is recognized but not supported.
Choosing restore targets
For alternate-location restores, datastores and resource pools are presented as dropdown lists, populated by resource sync. Because VM folders can number in the millions, you enter the VM folder as free-form text. If you added a datastore or resource pool since the last resource sync, enter it manually, or start a sync first.
Restore considerations
-
The alternate target must be a registered, reachable resource provider (for file-level restore, a registered VM) on the same appliance as the recovery point.
-
All VMware restores are non-destructive (full VM and FLR). Existing data is not overwritten.
-
Disk-level (VMDK) restore to a VM is not supported. As a workaround, restore the full VM and discard the disks you do not need.
-
Restore to VMware Cloud on AWS (VMC) is out of scope. Restore to Elastic VMware Service (EVS) is not available.