Introduction :

AWS Server Migration Service (SMS) is an agentless service which makes it easier and faster for you to migrate thousands of on-premises workloads to AWS. AWS SMS allows you to automate, schedule, and track incremental replications of live server volumes, making it easier for you to coordinate large-scale server migrations.

Stage1 : Setting up your AWS Account :

  1. Download the Server Migration Connector OVA format that is ready for deployment in your vCenter
  2. Login into your AWS Management Console, Click here
  3. Create a new IAM user which is used for the Connector to communicate with AWS
  4. Copy the Access key ID & Secret access key after the completion of the IAM User Creation
  5. Typical screen shot looks like below.

    AWS-Server-Migration-Service

    Download Banner
  6. Select created user, choose “Permission” tab and click “Add Permission” button
  7. Choose “Attach Existing Policy” and search for “ServerMigrationConnector” policy
  8. Typical screen shot looks like below.

    AWS-Server-Migration-Service

  9. Proceed with onscreen instructions to complete it
  10. Now create a new IAM role to grant privileges for the AWS Server Migration Service[SMS] to place the migrated VMs into your EC2 account
  11. In the navigation pane, choose Roles
  12. Choose “Create role” button
  13. “AWS service” remains selected as your trust entity
  14. Choose the service that will use this role as “SMS”
  15. Typical screen shot looks like below.

    AWS-Server-Migration-Service

  16. Proceed with on screen instructions
  17. At the review screen it will ask for name, provide name “sms” (recommended)
  18. Type some short description of your own choice and proceed to complete
  19. Note : If the created IAM user at step 2 is not having full administrator privileges, then follow from step 17 to 20
  20. Go to “Users” section from the IAM management console
  21. Choose the user which you have created
  22. Select “Add inline policy” button
  23. Choose “Custom Policy” and select
  24. Type in the below policy rule
  25. {
    “Version”: “2012-10-17”,
    “Statement”: [
    {
    “Effect”: “Allow”,
    “Action”: [
    “sms:*”
    ],
    “Resource”: “*”
    }
    ]
    }

  26. Provide a policy name “AWSSMSAPI”
  27. Proceed to complete creating the policy
  28. Typical screen shot looks like below.

    AWS-Server-Migration-Service

Stage2 : Setting up your vCenter Account :

  1. Create a new user from vCenter Management Console
  2. AWS-Server-Migration-Service

  3. Create a new role say : vmawsmigration and attach following roles to it.
  4. Role 1 : Datastore > Browse datastore and Low level file operations
    Refer screen shot attached :

    AWS-Server-Migration-Service

    Role 2 : vApp > Export
    Refer screen shot attached :

    AWS-Server-Migration-Service

    Role 3 : Virtual Machine > Snapshot management > Create snapshot and Remove Snapshot

    AWS-Server-Migration-Service

  5. Map the role to the created user, by selecting the required entity and going to the “Permission” tab
  6. AWS-Server-Migration-Service

  7. Click “Add permission” button to add a permission to the selected entity
  8. At the User and Groups tab, select : Add button to add the created user in our case : vmmigration
  9. From the “Assign Role” dropdown, choose the role which we’ve created, in our case: vmawsmigration
  10. Refer to screenshot attached below.

AWS-Server-Migration-Service

Stage 3 : Connector OVA Deployment:

  1. Deploy the OVA downloaded in step 1 to your VMware environment using vSphere Client
  2. Power on the deployed VM created out of the OVA template
  3. Connect to the VM with its default username : ec2-user and password : ec2pass
  4. Run the sudo setup.rb command
  5. AWS-Server-Migration-Service

  6. Type 2, and then press Enter. The command displays the following menu:
  7. AWS-Server-Migration-Service

  8. Proceed to setup your static ip

Stage 4 : Configuring Connector :

  1. From your web browser, go to https://ip_address/, where ip_address is the static IP address of your connector appliance
  2. Click on “Get started now” button
  3. Review the license agreement and accept it to proceed further
  4. Create Connector Management Console password for the connector
  5. Skip “Network Info” section
  6. At the Log Uploads and Upgrade screen, proceed with default options
  7. At “Server Migration Service” screen, choose the required region to which you are migrating the VMs and provide the “Accesskey ID” and Secret Key” which you got it from Stage 1: Step 4
  8. AWS-Server-Migration-Service

  9. Clicking on next will ask you to feed vCenter credential informations, provide the created vCenter user credentials to proceed further
  10. On successful completion, you can see a screen like below
  11. AWS-Server-Migration-Service

After following all the above stages, login to AWS Management portal, traversing to the “Server Migration Service” and navigate to menu “Servers”. If servers are not displayed, click “Import Server Catalog” button to load all the available VMs in the vCenter, choose the required VM and click on to create a replication job with the required scheduling option. Now you will be able to launch a VM migration to AWS environment. On successful migration, an AMI ID will be created – you can launch a VM out of that AMI.

Conclusion :

AWS Server Migration Service will automatically replicate live server volumes to AWS and create Amazon Machine Images (AMI) as needed. Its very simple and faster for you to migrate thousands of on-premises workloads to AWS. In previous AWS Connector for vCenter allows you to migrate vCenter version till 6 but you can use AWS Server Migration Service in latest vCenter 6.5 also.

Got questions? Email us at: vembu-support@vembu.com for answers.

Follow our Twitter and Facebook feeds for new releases, updates, insightful posts and more.

Like what you read? Rate us
AWS Server Migration Service
Rate this post