VMware VM backups can be accessed in either of two ways:
Mount to an existing host
Mount a VMware image to an existing physical or virtual host. A virtual host is any VMware VM or Compute Engine instance added to the system through the discovery of applications. A physical host is any host added to the system from Manage > Host page. See instructions to Add a host.
To mount a VMware VM backup image to a host, follow these steps:
Click App Manager and select Applications from the drop-down list to open the Applications page.
Select the VMware application with the image you want to mount, then choose Access from the menu at the bottom of the Applications page.
The Access page opens listing backup images using the timeline ramp view. For more information on the view, see Access the timeline ramp view of an image.
Select the image, then select Mount from the list of access operations to open the Mount page.
Leave the default setting to Existing Host.
Select a physical host that is manually added from Manage > Host page or virtual host from Host drop-down list. If you need a host that has not yet been added, add it from the Manage > Host menu, or run Compute Engine or VMware discovery wizard.
Enter a unique name associated with the mount in Label.
In the selection for Mount Mode, select one of the following. These options only appear if the selected host is a VMware VM.
- NFS: This is the preferred method. The VMDKs for the new VM is presented by the backup/recovery appliance to the ESX host using an NFS datastore.
- vRDM (virtual raw device mapping): This presents the backups over iSCSI. Note that by default GCVE does not support iSCSI. VMware snapshots treat mounted vRDMs as Independent and are not included in snapshots. Because of this, by default, Backup and DR does not include vRDMs when protecting a mounted VM. Backup and DR does provide an option where you can mark vRDMs as Dependent. Although rarely used, when this option is enabled, vRDMs will be included in VMware snapshots. Backup templates can capture vRDMs marked as Dependent.
- pRDM (physical raw device mapping): This presents the backups over iSCSI. Note that by default GCVE does not support iSCSI.
From Map to ESX Hosts, select one of the following options:
- One: Select One if you want to map only to the ESX host running the target VM.
- Two: Select Two if you want to map to two ESX hosts, but not all ESX hosts in the cluster. On selecting Two, you are given the option to choose the second host, or choose Auto-select. Auto-select choose the second host based on logical pairs of ESX hosts and always selects the partner ESX host for the one running the target VM.
All. Select All if you want to map to all the ESX hosts present in the cluster. Note that selecting All may increase the duration for the job.
Specify the following additional mount selections:
- Mount Drive: Windows only. Specifies a drive letter to be assigned to the volume. If the drive letter is not available, the job fails. If multiple volumes are found, then it assigns subsequent drive letters. If no Mount Drive is specified, the Backup and DR agent chooses a drive letter itself, if available.
- Mount Point: The full path at which you want to mount the volume. If
the path exists as an empty folder, the Backup and DR agent uses it.
If it does not exist, the Backup and DR agent creates it. If it
exists as a file or as a folder that is not empty, then the job
fails. If there are multiple volumes to be mounted, the Backup and DR
agent chooses the user specified for one of the volumes and for the
remaining it appends an underscore (_) followed by a number, for example,
user_specified_#
.
From Select Volumes To Mount, select a single volume or multiple volumes. By default, all volumes are selected, and the first volume cannot be deselected. For an individual file system there may be only one volume. Performance and consumption option.
For Existing Host option only, expand the Scripts section and apply post-scripts and post-scripts to the image before mounting.
- In the Pre-Script and Post-Script fields, enter the path and relative filenames. Enter the timeout values to prevent hanging, 300 seconds is a good default timeout value.
If required, change the default Storage pool to be used for the mount from the drop-down list. This only applies to mounts where there is no existing staging disk, such as direct to OnVault and imported OnVault images. Otherwise the default pool where the source image disks are located are always used.
Specify the Mount Drive and Mount Point for each volume you want to mount.
Click Submit. A job is submitted to mount the image to the selected host. You can verify that the mount operation is successful by viewing the job status in Monitor. Once the mount job is complete, the image becomes active and is available in the Active mounts view of the App Manager.
Mount as a new VM
Rather than mount to an existing host, you can also create an entirely new VM using a backup. Use the instructions to mount a backup image as a new VM.
Click App Manager and select Applications from the drop-down list.
The Applications page opens.
Select the VMware application with the image you want to mount, then choose Access from the menu at the bottom of the Applications page.
The Access page opens listing backup images using the timeline ramp view. For more information on the view, see Access the timeline ramp view of an image.
Select an image, then select Mount from the list of access operations.
The Mount page opens.
Change the default setting to New Virtual Machine.
Use the following selections to configure the virtual machine:
- VM Name: Enter a name for the new VM that you want to mount.
- VCENTER: Select a vCenter from the drop-down list for the new VM you want to mount.
- ESX HOST: Select an ESX Host from the drop-down list for the new VM you want to mount.
DATASTORE: Select a datastore that has the required storage available from the drop-down list for the new VM you want to mount.
Enter a unique name associated with the mount in Label.
For Mount Mode, select one of the following:
- NFS: This is the preferred method. The VMDKs for the new VM will be presented by the backup/recovery appliance to the ESX host using an NFS datastore.
- vRDM (virtual raw device mapping): This presents the backups over iSCSI. Note that by default GCVE does not support iSCSI. VMware snapshots treat mounted vRDMs as Independent and are not included in snapshots. Because of this, by default, Backup and DR does not include vRDMs when protecting a mounted VM. Backup and DR does provide an option where you can mark vRDMs as Dependent. Although rarely used, when this option is enabled, vRDMs will be included in VMware snapshots. Backup templates will capture vRDMs marked as Dependent.
- pRDM (physical raw device mapping). This presents the backups over iSCSI. Note that by default GCVE does not support iSCSI.
From Map to ESX Hosts, select one of the following options:
- One: Select One if you want to map only to the ESX host running the target VM.
- Two: Select Two if you want to map to two ESX hosts, but not all ESX hosts in the cluster. On selecting Two, you are given the option to choose the second host, or choose Auto-select. Auto-select choose the second host based on logical pairs of ESX hosts and always selects the partner ESX host for the one running the target VM.
- All: Select All if you want to map to all the ESX hosts present in the cluster. Note that selecting All may increase the duration for the job.
For Mark Dependent, VMware snapshots treat mounted vRDMs as Independent and are not included in snapshots. Because of this, by default, Backup and DR does not include vRDMs when protecting a mounted VM. Use this setting to mark vRDMs as Dependent. Although rarely used, when this option is enabled, vRDMs will be included in VMware snapshots. Backup templates will capture vRDMs marked as Dependent.
If required, change the default storage pool to be used for the mount from the Storage Pool drop-down list.
This only applies to mounts where there is no existing staging disk, such as direct to OnVault and imported OnVault images, otherwise the pool where the source image disks are located always used regardless of what is set here.
From Select Volumes To Mount, select a single volume or multiple volumes. By default, all volumes are selected, and the first volume cannot be deselected. For an individual file system there may be only one volume.
Click Submit. A job is submitted to mount the image to the selected host. You can verify that the mount operation is successful by viewing the job status in Monitor. Once the mount job is complete, the image becomes active and is available in the Active mounts view of the App Manager.
Recover a mounted VMware VM to production storage
After you create a new VMware VM using mount as new VM, you have the option to migrate the VMs VMDK data onto the local datastore so that it is no longer dependent on the backup/recovery appliance. You can do this using the VMware migration function. Use the following instructions to migrate the VMs VMDK data onto the local datastore.
- First mount the VMware VM as a new VM or an existing VM.
- From the vSphere client, choose the datastore for the VMDK files and VM configuration files. For GCVE this would normally be the vSAN Datastore.
From the vSphere client select the mounted VM you want to migrate and then use the Migrate function in the vSphere client to migrate the VM to the production storage:
Use the Migrate function in the vSphere client to migrate the VM to the production storage:
- Select the option to change the storage. The new datastore cannot be the same as the source datastore.
- Change the format of the virtual disk. Leaving it as Same format as source does not work. This option doesn't appear if you are migrating from NFS to vSAN datastore.
After the migrate is completed, you can find the mount image in Active Mounts.
Management of the active mounts
Once you have created a mount, you can track the image form the App Manager > Active Mounts. Ideally, don't leave any image mounted indefinitely. This is because the backup image that the mount was created from cannot expire until all its mounts have been deleted. When you have finished using the mounted image then either:
- Unmount the image. You can remount it if needed. You can then delete the image later when you are certain it is no longer needed.
- Unmount and delete the image. This deletes the mounted image, not the backup that the mount is based on.
The VMware administrator's guide
This page is one in a series of pages specific to protecting and recovering VMware VMs with Backup and DR. You can find additional information at:
- Backup and DR for VMware VMs
- Configure Google Cloud VMware Engine for Backup and DR protection
- Add vCenter and ESX server hosts to the management console
- Discover and protect VMware VMs
- Apply a backup template to protect a VMware VM
- Configure Application settings for VMware VMs
- Restore a VMware VM
- Mount a VMware image
- Clone an image of a VMware VM
- Create LiveClone workflows
- Move VM management between two backup/recovery appliances