When restoring a VMware or Azure virtual machine from a backup, you can choose to restore the VM as an Amazon EC2 instance.
You can use this feature to migrate virtual machines to the AWS cloud.
If you are using the AWS VM Import/Export transport mode for restores, when you restore a full Amazon EC2 instance, convert a VM to an Amazon EC2 instance, or replicate a VM to Amazon EC2 by using the AWS VM Import/Export transport mode, Commvault Cloud automatically creates an Amazon S3 bucket for the destination. The bucket is named gx-restore-region_name-account_id, where region_name is the name of the AWS region and account_id is the AWS account for the hypervisor.
You can perform VM conversions from streaming backups, from secondary copies, or from IntelliSnap backup copies. You cannot perform a conversion from a Snap copy.
Before You Begin
-
On any VM that you want to import into an Amazon EC2 instance, you need 2 GB of available disk space in the OS disk for installing drivers and other software.
-
Using the Commvault Cloud backup gateway running on an Amazon instance, the restore operation can write directly to Elastic Block Storage (EBS) and inject Amazon drivers that are required for destination instances. You must provide credentials for the guest VM. The restore is performed using the Commvault HotAdd transport mode.
You must install Xen drivers on Linux guest VMs before performing a backup of a VM that is used as the source for conversion or replication. Installing Xen drivers on Linux guest VMs enables the required drivers to be in place when the Amazon instances are created, so that the Amazon instance can be started and users can access the instance.
-
The Commvault Cloud backup gateway must be able to connect to ec2.amazonaws.com.
-
For information about the restore options for the Amazon EC2 destination, see Options for Conversion to Amazon EC2.
Considerations
-
For information about Amazon EC2 considerations and limitations, see the following pages:
-
RAID partitioned volumes are not supported for conversion and import into Amazon.
Import of Linux VMs with GUID Partition Table (GPT) partitioned boot volumes is not supported.
For more information about Amazon's supported volume types and file systems, on the "VM Import/Export Requirements" page in AWS documentation, see Volume types and file systems.
Operating System Requirements
-
For information about supported virtual machine operating systems, see Importing a VM as an Image Using VM Import/Export.
-
The Commvault Cloud software supports the following Azure VM operating systems for restoring Azure backups to Amazon EC2 instances:
-
Windows 2012 R2
-
Windows 2016
-
Windows 2019
-
Red Hat Enterprise Linux 7.6
For information about Amazon's supported virtual machine operating systems, on the "VM Import/Export Requirements" page in AWS documentation, see Operating Systems.
-
Start the Restore Wizard
-
From the Command Center navigation pane, go to Protect > Virtualization.
The Overview page appears.
-
On the VM groups tab, in the row for the VM group that contains the VMs/instances that you want to restore, click the action button
, and then click Restore.
The Select restore type page appears.
-
Click Full instance.
The Full instance page appears.
-
Select the check boxes for the VMs/instances to restore.
To select all the VMs/instances, select the check box above the list of VMs/instances.
-
To select a specific source copy and/or Backup Gateway for the restore, in the upper-right area of the page, click Change source.
By default, the software automatically selects the Backup Gateway and source copy as follows:
-
Backup Gateway: The software uses the Backup Gateway that performed the backup.
-
Source copy: By default, the software searches for the requested data in the primary copy. If the data is not found in the primary copy, the software selects a secondary or auxiliary copy.
Potential for egress charges
Restoring from a copy that is outside the destination Region incurs egress charges. For more information, see Data Transfer on the Amazon EC2 On-Demand Pricing page in the AWS documentation.
For more information, see MediaAgent and Copy Precedence Considerations for Virtualization Restores.
-
Specify the Restore Destination
-
For Type, select Out of place.
-
For Restore as, leave Amazon Web Services selected.
-
For Destination, select the AWS account to restore the VMs/instances to.
-
For Access node, leave Automatic (the default value) selected, or select an access node or an access node group.
-
For the best results, use the Automatic option because it does the following:
-
Selects the most appropriate access nodes.
Potential for egress charges
The Commvault Cloud software assigns the EC2 instances to access nodes as follows:
1. To access nodes in same AZ.
2. If no access nodes in same AZ are available, to access nodes in same Region.
3. If no access nodes in the same Region are available, to any available access node (which incurs egress charges).
-
Provides resiliency against access node failure (that is, if an access node fails during a restore, the software restarts the restore on other, available access nodes).
-
For a restore of multiple VMs/instances, distributes the workload across the access nodes that are assigned for the destination AWS account.
-
-
If you select a specific access node or access node group, consider the following:
-
If you select an access node that is outside of AWS, the software uploads volume information to Amazon S3 and uses the volumes to create the EC2 instance.
-
If you select an access node group, the software distributes the workload across the access nodes that are available in the access node group.
-
Important
-
When you restore an EC2 instance from an Amazon S3 library in one AWS Region to another Region, consider Amazon Virtual Private Cloud (VPC) egress costs. For more information, see Data Transfer on the Amazon EC2 On-Demand Pricing page in the AWS documentation.
-
For AWS to AWS conversion, if you assigned an access node at the hypervisor and VM group levels, both the access nodes are used. For AWS conversions, if you assigned an access node at the hypervisor level and the VM group level for both the source and the destination hypervisors, the access nodes assigned for the destination hypervisor are used.
-
-
Click Next.
The Virtual Machines page appears.
Configure Restore Options for the VMs/Instances and EBS Volumes (If Any)
-
To configure the restore options for one or more VMs/instances, select them, and then click Configure restore options.
The Configure restore options dialog box appears.
-
For the names of the restored EC2 instances, specify the following:
-
For a single VM/instance, in VM display name, enter a name for the restored EC2 instance.
-
For multiple VMs/instances, you can add a prefix and/or a suffix to the names of the source VMs/instances. For example, you can add a suffix of "-restored".
The Commvault Cloud software sets the AWS Resource Tag 'Name' to the value that you enter in VM display name. For information about which characters are supported for AWS Resource tags, see Tagging your AWS resources in the AWS documentation.
-
-
For Availability zone, select the AZ to restore the VMs/instances to.
-
For Instance type, select the EC2 instance type for the restored VMs/instances.
The Automatic option attempts to restore the instances as the same EC2 instance type as the source.
-
For Key pair, enter the Amazon EC2 key pair to access the restored EC2 instances.
-
For Network settings, if you are restoring multiple VMs or instances, specify whether to use the source network configuration or a different configuration:
-
To re-create the source network (VPC, Subnets, Security Groups, elastic network interfaces, ENIs) as part of the restore, move the Restore source network configuration toggle key to the right.
-
To restore to an existing VPC in the destination AWS account, do the following:
-
If you are installing to a new AWS account or Region and you want the Commvault Cloud software to create your Amazon Virtual Private Cloud (VPC) and related resources as part of the restore of the EC2 instance, move the Restore source network configuration toggle key to the left.
-
For Network, to select an VPC network, subnet, and ENI, do the following:
-
Click the browse button.
The Select network settings dialog box appears.
-
Select an existing ENI or create a new ENI.
When you create a new ENI, you can specify an IP address.
-
Click Save.
-
-
To specify a custom IPv4 primary IP address for Network Interface 1 (Primary Interface) for the restored EC2 instances, in Private IP address, enter the IPv4 address.
Important
If you enter an IP address that is not within the available range or that is already in use, the restore fails.
-
For Security groups, do one of the following:
-
To have the Commvault Cloud software attempt to assign the same security group from the source VMs or instances to the restored EC2 instances, select Auto-assign.
-
To select a security group from the AWS account that you're restoring the intances to, select Custom, and then select the security group.
-
-
-
-
For Volume options, modify the settings for EBS volumes as follows:
-
You can select one or more volumes to modify.
If you select multiple volumes, and the volumes have different values for either Volume type or KMS key, then Leave value unchanged is displayed for that setting. Consider the following points:
-
Leave value unchanged indicates that the restored volumes will have the same value as the source volumes.
-
You can select a different value, and the value that you select applies to all the volumes that you are modifying.
-
-
For backups from Commvault Platform Release 2024 (11.34) and previous releases, in Volume type and KMS key, Original is displayed. Original indicates that the volumes will be restored with the same volume type and KMS key as the source volumes.
-
For Volume type, the options are limited to only those that are supported for the volume size.
Volume types that are not supported for the volume size are visible, but not available to select.
To see why a volume type is not available/not supported, hover over the volume type to view the minimum and maximum supported volume sizes for the volume type.
The default value for Volume type is based on volume size. If the volume size is less than 16 TB, then the default value is gp3. If the volume size is greater than 16 TB, then the default value is io2.
-
If IOPS applies, given the volume type, then you can modify the value.
After you click Save, the Commvault Cloud software validates the value you enter. If the value is not in the supported range for the EBS volume type, the software displays the minimum and maximum supported values. Enter a value that is in the supported range, and then click Save.
The default value for IOPS is 3000.
-
If Throughput applies, given the volume type, then you can modify the value.
If you modify the value, as you are typing, the Commvault Cloud software validates the value you enter and briefly displays the minimum, maximum, and baseline values. If you enter a value that is not in the supported range for the EBS volume type, after you click Save, the Commvault Cloud software displays the minimum and maximum supported values, and you cannot click Save until you enter a value that is in the supported range.
After you click Save, the Commvault Cloud software validates the value you enter. If the value is not in the supported range, the software briefly displays the minimum, maximum, and baseline supported values. Enter a value that is in the supported range, and then click Save.
Note
Some Amazon EBS volumes require a specific IOPS and throughput ratio. Verify both that your IOPS and throughput values are within the supported ranges for those values and that the ratio between your values is supported.
The default value for Throughput is based on the volume type. For io2, the default value is Not Applicable because throughput does not apply to io2. For all other volume types, the default value is 125.
-
For KMS key, select an encryption key or option:
Important
-
Commvault recommends that you enable default encryption of EBS volumes in each AWS account that creates EBS volumes. For information, see Enable encryption by default in the AWS documentation.
-
The following key types are supported:
-
AWS managed keys
-
AWS owned keys
-
Customer managed keys, including multi-region keys
-
-
Automatic (default value): This option is available for restores to a different AWS Region.
If the identity that performs the restore has the ec2:GetEbsDefaultKmsKeyId action, then the default KMS key for EBS encryption will have "Default EBS Key" tag. The ec2:GetEbsDefaultKmsKeyId action is included in amazon_restricted_role_permissions.json.
-
No encryption: This option is not recommended. The AWS Well-Architected Framework (SEC08-BP02) recommends enforcing encryption at rest for sensitive data.
-
-
-
For Tags, you can add, modify, and delete AWS resource tags.
If the backed up VM has tags, then those tags are displayed (excluding the Name tag and the AWS reserved tags).
For information about AWS resource tags, see Tagging your AWS resources in the AWS documentation.
-
Click Next.
The Restore Options page appears.
Specify the Restore Options
Specify the following settings:
-
Power on VMs after restore: Automatically restart virtual machines after they are restored.
The power state of the virtual machine does not affect subsequent backups. If the virtual machine is powered on during backups, by default, the virtual machine is powered on again after the restore completes (unless you clear this check box).
-
Unconditionally overwrite if it already exists: Delete an existing virtual machine and replace it with the restored virtual machine.
Note
If an existing virtual machine with the same name exists on the destination host and you do not select Unconditionally overwrite if it already exists, the restore job fails.
-
Reuse existing VM client: Reuse the existing virtual machine and map its information, such as client name, host name, and client ID, to the source virtual machine.
-
Notify user on job completion: Receive an email notification that the restore is complete.
The Summary page appears.
Review the Summary and Start the Restore
-
Review the summary to verify the settings.
-
Click Submit to start the restore.
Result
-
After VM conversion, if a source VM had dynamic disks that use spanned or striped volumes, the volumes in the converted VM might be marked as Failed in Disk Management. You must bring these disks online manually using Disk Management. To bring the disks back online, perform an Import Foreign Disks operation on the guest VM for the disk group that contains failed disks. Import the entire disk group in one operation rather than performing a partial import.
-
After you perform VM conversion or replication operations to Amazon using the Commvault HotAdd transport mode, a Windows instance restarts when a user logs on to the instance for the first time. The restart is required to initialize drivers that are added to the instances during the operation.