EV Observe - Deploy a Box In Amazon Web Services (AWS)

Last modified on 2023/08/08 16:26

Amazon EC2 (Amazon Elastic Compute Cloud), one of the Amazon Web Services (AWS), enables users to create and host virtual machines as ready-to-use EC2 instances.

The virtual machines must be exported from their virtualization infrastructures and uploaded to an Amazon S3 bucket (Amazon Simple Storage Service) before they can be converted to EC2 instances.

Notes

  • Only images from the VMware and Hyper-V virtualization infrastructures are available on the sFTP server.

Procedure: How to deploy a Box in AWS without an internal virtualization infrastructure

Step 1: Import the virtual machine

1. Download the OVA or VMDK image from the virtual machine and the latest OVF master available on the sFTP site in the VSM-VSB folder.

Note: Contact the EasyVista Support team to obtain the relevant login information.

2. Import your virtual machine as an image to Amazon EC2.

Note: The import process is identical irrespective of the origin of the virtual machine.

3. Upload the image of the virtual machine to your Amazon S3 bucket (Amazon Simple Storage Service).

Best Practice icon.png  You can use any choice of tool to upload it.

    Open url.png See the details in the relevant AWS documentation:

4. Import the OVA or VMDK image using the AWS Command Line Interface (AWS CLI).

Note:

  • For public Amazon S3 files, the Amazon S3 bucket and the path to the file or URL are accepted by the tools.
  • Private Amazon S3 files require a presigned GET URL.
     

example  Examples on using the AWS Command Line Interface (AWS CLI) to create import tasks

    Open url.png See the details in the relevant AWS documentation

  • Import an OVA image
$ C:> aws ec2 import-image --description "Windows 2008 OVA" --license-type <value> --disk-containers file://containers.json

Sample file: containers.json

[ {
   "Description": "Windows 2008 OVA", "Format": "ova", "UserBucket": { "S3Bucket": "my-import-bucket", "S3Key": "vms/my-windows-2008-vm.ova" }
} ]
  • Import multiple disks from a VMDK image
$ C:> aws ec2 import-image --description "Windows 2008 VMDKs" --license-type <value> --disk-containers file://containers.json

Sample file: containers.json

[ {
   "Description": "First disk", "Format": "vmdk", "UserBucket": { "S3Bucket": "my-import-bucket", "S3Key": "disks/my-windows-2008-vm-disk1.vmdk" } }, { "Description": "Second disk", "Format": "vmdk", "UserBucket": { "S3Bucket": "my-import-bucket", "S3Key": "disks/my-windows-2008-vm-disk2.vmdk" }
} ]

Step 2: Check the status of the import task

1. Check the status of the import task using the command line, describe-import-image-tasks.

aws ec2 describe-import-image-tasks --import-task-ids import-ami-abcd1234

    Open url.png See the details in the relevant AWS documentation:

The statuses can be as follows:

  • active: The import task is running.
  • deleting: The import task is currently being canceled.
  • deleted: The import task is deleted.
  • updating: The import status is currently being updated.
  • validating: The imported image is currently being validated.
  • validated: The imported image is validated.
  • converting: The imported image is converted to an AMI.
  • completed: The import task is completed and the AMI is ready to be used.
     

Step 3: Set up monitoring for the new virtual machine

     Open url.png See the procedure

Tags:
Powered by XWiki © EasyVista 2022