Mount a VMware image

VMware VM backups can be accessed in either of two ways:

Mount to an existing host

To mount a VMware image to an existing host, you have physical or virtual hosts. 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:

  1. Click App Manager and select Applications from the drop-down list.

    The Applications page opens.

  2. Select the VMware application with the desired image you want to mount, then choose Access from the pop-up list 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.

  3. Select the desired image, then select Mount from the list of access operations.

    The Mount page opens.

  4. Leave the default setting to Existing Host.

  5. 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.

  6. Enter a unique name associated with the mount in Label.

  7. 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.
    1. From Map to ESX Hosts, select one of the following options:

      • One: Select One if you want to map only to the ESX host currently 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 currently 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.

  8. 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_#.
  9. 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.

  10. If the mount is from OnVault then select a Performance and consumption option.

  11. 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. We recommend 300 seconds as a default timeout value.
  12. 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 pool where the source image disks are located are always be used regardless of what is set here.

  13. Specify the Mount Drive and Mount Point for each volume you want to mount.

  14. 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 below instructions to mount a backup image as a new VM.

  1. Click App Manager and select Applications from the drop-down list.

    The Applications page opens.

  2. Select the VMware application with the desire image you want to mount, then choose Access from the pop-up list 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.

  3. Select the desired image, then select Mount from the list of access operations.

    The Mount page opens.

  4. Change the default setting to New Virtual Machine.

  5. 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.

  6. Enter a unique name associated with the mount in Label.

  7. 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.
  8. From Map to ESX Hosts, select one of the following options:

    • One: Select One if you want to map only to the ESX host currently 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 currently 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.
  9. 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.

  10. 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.

  11. 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.

  12. 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 below instructions to migrate the VMs VMDK data onto the local datastore.

  1. First mount the desired VMware VM as a new VM or an existing VM.
  2. From the vSphere client, choose the datastore for the VMDK files and VM configuration files. For GCVE this would normally be the vSAN Datastore.
  3. From the vSphere client select the mounted VM you wish 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. You do not get this option if migrating from NFS to vSAN datastore.
  4. 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, do not 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