AWS Management Portal for vCenter
User Guide
Did this page help you?  Yes | No |  Tell us about it...
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.

Migrating Your Virtual Machine to Amazon EC2 Using AWS Connector for vCenter

You can launch an EC2 instance from a virtual machine that you migrate from VMware vCenter to Amazon EC2. You'll use the AWS Connector for vCenter to migrate your virtual machines to Amazon EC2.

Migrating a VM to Amazon EC2

Prerequisites

  • An administrator must install and configure the connector. The connector is part of AWS Management Portal for vCenter. For more information, see Setting Up AWS Management Portal for vCenter.

  • An administrator must create at least one environment and grant you permission to migrate a virtual machine into one or more environments.

  • Ensure that your VM uses one of the supported operating systems and that you select one of the supported instance types. For more information, see VM Import/Export Prerequisites in the Amazon EC2 User Guide for Linux Instances.

  • Ensure that your VM does not have a disk whose compressed size is greater than 215 GB.

VM Import Authorization

Your users don't have direct access to AWS. The following diagram describes the process by which a user can migrate a VM to Amazon EC2.

The VM Import authorization process
  1. The vSphere client authorizes import to the environment.

  2. The management portal verifies that the user has permission to migrate VMs to the environment and returns a token.

  3. The vSphere client sends an import request to the connector along with the token.

  4. The connector verifies the token.

  5. The connector verifies that the user has permission to export the VM.

  6. The connector starts the migration.

  7. The connector sends a response to the vSphere client with the import task ID.

Migrating Your Virtual Machine

To migrate a VM to Amazon EC2, use vCenter with the connector. The connector can migrate up to four VMs concurrently.

To migrate your virtual machine to Amazon EC2

  1. From vCenter, click Home and then click VMs and Templates.

  2. Select the VM.

  3. Right-click the VM, and then click Migrate VM to EC2. If your administrator did not grant you permission to migrate VMs, you'll see a message to ask your administrator to grant you permission.

  4. Complete the form as follows:

    1. Select the operating system running on the VM.

    2. Select the region and environment for the resulting EC2 instance. The list of environments contains only the environments to which your administrator has granted you permission.

    3. Select a subnet, instance type, and security group for the instance.

    4. (Optional) Enter a private IP address. If you don't specify a private IP address, we'll select one for you.

    5. Select a security group. The list of security groups contains only the security groups associated with the environment you've selected.

    6. Click Begin migration to Amazon EC2.

  5. After the migration begins, we display an import task ID. Note this ID if you'd like to monitor the migrate task. Otherwise, you can close the import window and your vSphere client after the connector notifies you that the import task was created and the migration will continue.

  6. (Optional) To monitor the status of the migration, do the following:

    1. From vCenter, click Home and then click AWS Management Portal.

    2. Expand the region for the instance, select the environment, and then click the VM-to-EC2 Migrations tab.

    3. Find the entry with the import task ID that you noted earlier. The ID of the instance is shown in the Instance ID field.

  7. To start the EC2 instance after the migration has completed, expand the environment, expand Imported Instances, select the instance, and then click the Summary tab. The ID of the instance should be the instance ID that you noted from the VM-to-EC2 Migrations tab. On the Getting Started tab, click Start instance.

Backing Up Your Instance

After you start an instance, it runs until it is terminated. If your instance is terminated, you can't connect to or recover the instance. To ensure that you can start a new instance with the same software as an migrated instance if needed, create an Amazon Machine Image (AMI) from the instance, and then create a template that specifies the AMI.

To create an AMI, you must use the Amazon EC2 console or command line tools. For information about creating an AMI using Amazon EC2, see the following topics in the Amazon EC2 User Guide for Linux Instances.

For information about creating a template so that you can launch instances from the AMI that you've created from your migrated instance, see Managing Templates.

Migrating an EC2 Instance to vCenter

To export an EC2 instance, you must use the Amazon EC2 CLI. For more information, see Exporting EC2 Instances in the Amazon EC2 User Guide for Linux Instances.