KB ID : 115115
Products :
Published : Sept. 10, 2019
Created : Sept. 10, 2019
Last Modified : Sept. 10, 2019

Purpose

To create a VM in Amazon AWS using the VHD\VHDX file downloaded from Vembu BDR Server.

Solution

1. Steps to be done in Vembu BDR Server

1.1 Login to the Vembu BDR Server console and navigate to the Recovery page.

1.2 In the Recovery page, click the restore icon of the respective backup and select recovery type as Download.

1.3 Select the latest restore point and choose the required VMs.

1.4 Then choose VHD\VHDX as your virtual disk format from the drop-down list.

Note: Click Here to know the step-by-step process of the download.

2. Steps to deploy downloaded vhd\vhdx file on Amazon AWS

2.1 Install AWS CLI on a vhd\vhdx downloaded machine using the MSI Installer.

2.2 Configure AWS CLI settings that are used to interact with AWS. Use the command ‘aws configure’ to quickly set up your AWS CLI installation.

  Example:
  WS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
  AWS Secret Access Key [None]:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
  Default region name [None]: us-west-2 (You can give your preferred region.)
  Default output format [None]: ENTER

Note: Refer to this LINK for detailed information on configuring the AWS CLI.

2.3 Then create S3 Bucket and upload the vhd\vhdx file to the created S3 Bucket using the below-mentioned command.

Command: aws s3 cp <fiename> s3:/<bucketname>/<prefix>

  Example: aws s3 cp DISK0_MERGE.vhdx  s3:/vembuvhdximport/AWSuploadgen1

2.4. Create the required service role and enable the required permissions to import the VHD/VHDX file to Amazon AWS. Refer to the LINK.

2.5 Import your VHD/VHDx file using the ec2 import-image command mentioned-below.

aws ec2 import-image --description "My server VM" --disk-containers "file://C:\import\containers.json"

  Refer to an example containers.json file.
  [
    {
      "Description": "First disk",
      "Format": "vhdx",
      "UserBucket": {
          "S3Bucket": "vembuvhdximport",
          "S3Key": "AWSuploadgen1/DISK0_MERGE.VHDX"
      }
    }
  ]

2.6 To monitor an import image task. The following describe-import-image-tasks example checks the status of the specified import image task.

aws ec2 describe-import-image-tasks \ --import-task-ids import-ami-1234567890abcdef0

Note: Refer to the LINK for more information.

2.7 After creating the AMI you can launch the instance as per default AWS EC2 Procedure.

edit retag flag offensive close merge delete