Clone vms to aws cloud using cloudspin
On a IBM Cloud Backup and Recovery with a Protection Group that captures Snapshots of VMs with a CloudSpin schedule, the cluster clones VMs to an AWS cloud service. You can then launch the VMs to a running state.
What happens during the CloudSpin process is dependent on the cloud service type:
| Full | Incremental |
|---|---|
| When you clone to an AWS Cloud using CloudSpin, the IBM Cloud Backup and Recovery copies the Snapshot to an S3 bucket in the specified AWS account and then converts the snapshot from VMDK format to an AMI format using the AWS import service. | On the first CloudSpin run, the IBM Cloud Backup and Recovery copies the full VM snapshot data to EBS volumes. The number of EBS volumes corresponds to the number of backed up VM disks. Once copying is done, IBM Cloud Backup and Recovery
uses AWS import service to generate an AMI from the EBS volume corresponding to the root volume and generates the EBS snapshots for all other volumes, if any. For subsequent runs, only incremental changes are copied between the snapshots. Incremental CloudSpin to AWS requires a Fleet Instance. The cluster communicates with the Fleet Instance using private IP. Therefore, the on-prem cluster must be on a VPN to AWS VPC. |
IBM Cloud Supports the CloudSpin of VMware VMs with UEFI boot mode enabled. AWS supports the following UEFI boot mode enabled operating systems:
-
Windows Server 2012, 2016, 2019
-
Ubuntu 16, 18
IBM Cloud Supports CloudSpin on both on-premises IBM Cloud Backup and Recovery and Cloud Edition IBM Cloud Backup and Recoverys.
To use CloudSpin to clone Snapshots to AWS:
-
Verify the following requirements prior to backing up the VMs:
-
All the VMware vSphere versions supported by IBM Cloud Backup and Recovery for backup is supported for cloning to AWS. For the list of supported VMware vSphere versions, see Supported Software.
-
Cloning VMware VMs to an AWS Cloud has the following requirements:
-
Cloning Snapshots to an AWS Cloud is supported for VMware VMs with the following Linux operating systems:
-
CentOS 7.x
-
Red Hat Enterprise Linux (RHEL) 7.x
-
Red Hat Enterprise Linux (RHEL) 6.7
-
Red Hat Enterprise Linux (RHEL) 8.x
-
SUSE Linux Enterprise Server 11
-
Ubuntu 14
-
Ubuntu 16
-
-
Cloning Snapshots to an AWS Cloud is supported for VMware VMs with the Windows operating system.
-
The disk size of the VMware VMs must be a multiple of 1 MB.
-
VMs that have one to ten disks can be cloned.
-
Due to an AWS limitation, performing a CloudSpin to an instance type that has an ENA is not supported. For more information, see Enhanced Networking on Linux.
-
When converting and cloning or copying Snapshots of a Linux VM with multiple disks, the disks must be mounted by UUID prior to being backed up by the Protection Group, as shown by the following example entry in a
/etc/fstab:UUID=e12e623a-c6ee-4718-9b1a-802456e72258 /userdata ext4 defaults,nofail 0 0
For detailed instructions, see Edit /etc/fstab to use UUID.
For AWS, be aware of the following requirements:
-
In addition, the fstab entry for CentOS 7.4, RHEL 7.4, RHEL 6.7, SUSE 11 and Ubuntu 16 operating systems must specify the
nofailoption as shown in the following example:UUID=e12e623a-c6ee-4718-9b1a-802456e72258 /userdata ext4 defaults,nofail 0 0
-
In addition, the fstab entry for the Ubuntu 14 operating system must specify the
nobootwaitoption as shown in the following example:UUID=2b262696-41a6-47c9-b173-d02717ee0e10 /mnt/expvol ext4 defaults,nobootwait 0 0
-
-
When backing up Windows VMs with multiple disks, before a Protection Group captures the Snapshot, the Backup agent and VMware tools must be installed on the VM and the VM must be running. For more information, see Install and Manage the Agent on Windows Servers. In addition, port 50051 must be open in your Firewall. For more information, see Manage Firewall Ports.
-
For a Windows VM, if you want to access the newly created VM in the Cloud service using Remote Desktop, enable the Windows Remote Desktop on the VM prior to capturing the Snapshots of a Windows VM.
-
-
-
Register a Cloud Source. Select Data Protection > Sources and from the Register Source drop-down, select AWS. A cloud source is a cloud service instance where the snapshots are converted and copied to. For details, see the appropriate Source topic:
-
For a Windows VM, if you want to access the newly created VM in the Cloud service using Remote Desktop, enable the Windows Remote Desktop on the VM prior to capturing the Snapshots of a Windows VM.
-
Create a Policy with a CloudSpin schedule that converts and copies Snapshots to the Cloud Source registered in the previous step. For detailed instructions, see Create or Edit a Standard Policy. Protection Groups that use this policy will automatically convert and copy Snapshots backed up by the Protection Group to a Cloud Source using the specified CloudSpin schedule.
For AWS:
Full Incremental In Full CloudSpin, the AMI and snapshots are created in the specified Region. Specify the Region, VPC, and Subnet for an incremental CloudSpin. The AMI and snapshots are created in the specified Region. VPC and Subnet are required for the following reason:
Incremental CloudSpin requires connectivity between the IBM Cloud Backup and Recovery and AWS through VPC and Subnet - During incremental CloudSpin, IBM Cloud Backup and Recovery launches a temporary EC2 instance in the provided VPC and Subnet. The temporary instance is used to copy data from IBM Cloud Backup and Recovery to AWS. An instance launched in this subnet must be reachable from the IBM Cloud Backup and Recovery. -
Create a Protection Group that uses the Policy created in the previous step.
After the Protection Group run and CloudSpin Copy Task successfully completes, the VM can be launched.
-
Launch the VM created in the Cloud Service:
Launch VM from the IBM Cloud Backup and Recovery Console:
- Select Data Protection > Protection.
- Click the Job that backed up the VM to launch in the Cloud.
- Browse for a protection run that contains a Snapshot to convert to a VM. The protection run must have the Status of Success and the associated CloudSpin Copy task must be successful.
- Click the date link of the protection run in the Start Time column to view the protection run details.
- Click the ClouldSpin Task tab.
- To launch, complete one of the following actions:
-
Click the actions menu and select Launch Instance. The following fields are displayed:
-
Source—Displays the registered source.
-
Resource Group—Displays the resource pool that stores the cloned VMs.
-
Storage Account—Displays the VM size used when creating the cloned VMs.
-
Storage Container—Displays the storage container used to store the cloned VMs.
-
Compute—Select the Microsoft Azure VM size type to use when creating the cloned VMs.
-
Availability Set—Optionally, select the availability set to which the VM has to be cloned.
-
Virtual Network—Select the Microsoft Azure Virtual Network for the cloned VMs.
-
Subnet—Select the Microsoft Azure Virtual subnet for the cloned VMs.
-
Use Azure Managed Disks—To use Azure managed disks, enable the toggle and select the OS Disk Type and Data Disk Type.
Click Submit to save the changes.
-
-
Click Launch All Instances.
-
To tear down a launched VM, see Tear Down a Launched VM from IBM Cloud Backup and Recovery Console.
Launch VM from AWS Console:
- Log in to the Amazon AWS console and select EC2. The EC2 Dashboard displays.
- In the left frame, select IMAGES > AMIs.
- In the search field, enter part of the VM name. The generated VM name consists of the Job name, the original name and the Snapshot time.
- Select a VM and click Launch.
- Enter the required settings and click Review and Launch.
To prevent a tear down of a cloned CloudSpin VM, see the How to prevent a tear down of a cloned CloudSpin VM KB article.
Tear Down a Launched VM from IBM Cloud Backup and Recovery Console
- In the IBM Cloud Backup and Recovery Console, select Test & Dev.
- For the clone task to tear down, click the actions menu (
) and select Tear Down.
Consideration
-
AWS Security Token Service (AWS STS) must be enabled in the region where a VM is being Cloud spun.
-
IBM Cloud Backup and Recovery does not support CloudSpin of VMware VMs from VMware Cloud (VMC) to AWS.
-
IBM Cloud Supports both on-demand and policy-based CloudSpin for snapshots stored on the IBM Cloud Backup and Recovery (primary copy).
-
IBM Cloud Backup and Recovery does not support on-demand and policy-based CloudSpin for archived or CloudRetrieved snapshots.
-
IBM Cloud Supports on-demand CloudSpin for snapshots that are replicated to another IBM Cloud Backup and Recovery.