Replicate VMs Using the AWS SMS Console - AWS Server Migration Service

Replicate VMs Using the AWS SMS Console

Use the AWS SMS console to import your server catalog and migrate your on-premises servers to Amazon EC2.

If you have enabled integration between AWS SMS and AWS Migration Hub, your SMS server catalog will be also visible on Migration Hub. For more information, see Importing Applications from Migration Hub.

During the replication process, AWS SMS creates an Amazon S3 bucket in the Region on your behalf, with server-side encryption enabled and a bucket policy to delete any items in the bucket after seven days. AWS SMS replicates server volumes from your environment to this bucket and then creates EBS snapshots from the volumes. If you do not delete this bucket, AWS SMS uses it for all replication jobs in this Region.

Replicate a Server

AWS SMS automatically replicates live server volumes to AWS and creates an Amazon Machine Image (AMI) as needed.

To replicate a server

  1. Install the Server Migration Connector as described in Install the Server Migration Connector.

  2. Open the AWS SMS console at https://console.aws.amazon.com/servermigration/.

    Tip

    If this link takes you to the AWS SMS page, trim the "gettingStarted" from the end of the URL and press return.

  3. In the navigation menu, choose Connectors. Verify that the connector that you deployed in your VMware environment is shown with a status of healthy.

  4. If you have not yet imported a catalog, choose Servers, Import server catalog. To reflect new servers added in your VMware environment after your previous import operation, choose Re-import server catalog. This process can take up to a minute.

  5. Select a server to replicate and choose Create replication job.

  6. On the Configure server-specific settings page, in the License type column, select the license type for AMIs to be created from the replication job. Linux servers can only use Bring Your Own License (BYOL). Windows servers can use either an AWS-provided license or BYOL. You can also choose Auto to allow AWS SMS to select the appropriate license. Choose Next.

  7. On the Configure replication job settings page, the following settings are available:

    • For Replication job type, choose a value. The replicate server every interval option creates a repeating replication process that creates new AMIs at the interval you provide from the menu. The One-time migration option triggers a single replication of your server without scheduling repeating replications.

    • For Start replication run, configure your replication run to start either immediately or at a later date and time up to 30 days in the future. The date and time settings refer to your browser’s local time.

    • For IAM service role, select Allow automation role creation to have AWS SMS create a service-linked role on your behalf. For more information, see Service-Linked Roles for AWS SMS. Select Use my own role to specify an existing IAM role to use.

    • (Optional) For Description, provide a description of the replication run.

    • For Enable automatic AMI deletion, configure AWS SMS to delete older replication AMIs in excess of a number that you provide in the field.

    • For Enable AMI Encryption, choose a value. If you choose Yes, AWS SMS encrypts the generated AMIs. Your default CMK is used unless you specify a non-default CMK. For more information, see Amazon EBS Encryption.

    • For Enable notifications, choose a value. If you choose Yes, you can configure Amazon Simple Notification Service (Amazon SNS) to notify a list of recipients when the replication job has completed, failed, or been deleted. For more information, see What is Amazon Simple Notification Service?.

    • For Pause replication job on consecutive failures, choose a value. The default is set to Yes. If the job encounters consecutive failures, it will be moved to the PausedOnFailure state and not marked Failed immediately.

      Note

      This option is not available for one-time replication jobs.

    Choose Next.

  8. On the Review page, review your settings. If the settings are correct, choose Create. To change the settings, choose Previous. After a replication job is set up, replication starts automatically at the specified time and interval.

In addition to your scheduled replication runs, you may also start up to two on-demand replication runs per 24-hour period. On the Replication jobs page, select a job and choose Actions, Start replication run. This starts a replication run that does not affect your scheduled replication runs, except in the case that the on-demand run is still ongoing at the time of your scheduled run. In this case, the scheduled run is skipped and rescheduled at the next interval. The same thing happens if a scheduled run is due while a previous scheduled run is still in progress.

Resume a Replication Job

AWS SMS can pause a replication job after the maximum number of consecutive scheduled replication jobs have failed. Before attempting to resume a job that is in the PausedOnFailure state, try to identify and fix the root cause of the replication run failure. For more information, see Replication Run Fails During the Preparing Stage.

To resume a replication job that is paused

  1. In the AWS SMS console, choose Replication jobs.

  2. In the search bar, filter the jobs by PausedOnFailure to identify all paused jobs.

  3. To resume a paused job, select the job and choose Actions, Resume replication job.

Monitor a Server Replication Job

You can manage and track the progress of each migration.

To monitor and modify server replication jobs

  1. In the AWS SMS console, choose Replication jobs. You can view all replication jobs by scrolling through the table. In the search bar, you can filter the table contents on specific values.

  2. Select a single replication job to view details about it in the lower pane. The Job details tab displays information about the current replication run, including the ID of the latest AMI created by the replication job. The Run history tab shows details about all of the replication runs for the selected replication job.

  3. To change any job parameters, select a job on the Replication jobs page and choose Actions, Edit replication job. After entering new information in the Edit configuration job form, choose Save to commit your changes.

    Note

    You may need to refresh the page for the changes to become visible.

Delete a Replication Job

After you have finished replicating a server, you can delete the replication job. This stops the replication job and cleans up any artifacts created by the service (for example, the job's S3 bucket). This does not delete any AMIs created by runs of the stopped job. When you are done using a connector and no longer need it for any replication jobs, you can disassociate it from AWS SMS.

To shut down replication

  1. Choose Replication jobs, select the desired job, choose Actions, and then choose Delete replication jobs. In the confirmation window, choose Delete.

    Note

    You may need to refresh the page for the changes to become visible.

  2. To clear your server catalog after you no longer need it, choose Servers, Clear server catalog.

  3. To disassociate a connector after you no longer need it, choose Connectors and select the connector. Choose Disassociate at the top-right corner of its information section and choose Disassociate again in the confirmation window.