AWS Cloud Migration Services

Published by Sundareswaran on

How to migrate the physical server from On-premises to AWS Cloud?

After the installation of the AWS CLI in the Windows. We can export the server from on premises to the cloud.

This documentation will explain to you how to upload the server from ESXi to the AWS cloud.

All the process will be carried out by AWS CLI.

Read this before proceeding  – Installation and testing of AWS CLI

Remove VM Tools & Change IP.

Note: Before moving the server from ESXi to AWS, we need to remove the open VM tool on the server.Then change the IP from static to DHCP.

As shown in the existing AWS CLI installation.

Log in to the server through CLI.

migrate physical server to aws

Export Virtual Machine as OVA Template.

We can only export the Server only by turning off the server.

We need to export the server to OVA template.

Select the server and export the server as OVF Template.

migrate physical server to aws

Export as OVA Template.

migrate physical server to aws

Save the OVA file into the local system.

Create a new S3 Bucket.

migrate physical server to aws

We need to upload the ova file into the new s3 bucket or any existing S3 bucket if you have any.

migrate physical server to aws

After creating new S3 bucket, upload the ova file.

migrate physical server to aws

After that create a new role in IAM for moving the ova to AMI through the command line.

migrate physical server to aws

Create a new role in IAM dashboard called vmimport.

migrate physical server to aws

Name the role as vmimport because we use it in the json to change the ova to AMI.

migrate physical server to aws

Select the EC2 as a role.

migrate physical server to aws

New rules is created, need some other steps a head.

migrate physical server to aws

Edit the Trust Relation coding.

migrate physical server to aws

Add the following in the command

,

“Condition”:{

   “StringEquals”:{

      “sts:Externalid”:”vmimport”

      }

   }

migrate physical server to aws

 

After saving the above command, proceed with the following command to move the file from s3 bucket to AMI.

Also, don’t forget to rename the required details in below command.

migrate physical server to aws

Very Case Sensitive( Code Tested ):

aws ec2 import-image –cli-input-json “{ \”Description\”: \”MY LINUX IMAGE\”, \”DiskContainers\”: [{\”Description\”: \”MY LINUX IMAGE\”, \”UserBucket\”: { \”S3Bucket\”: \”system-admin-servers\”, \”S3Key\” : \”MY-LINUX.ova\” } } ]}”

We can get a task id for the process of moving ova file from the S3 bucket to the AMI file.

migrate physical server to aws

Very Case Sensitive( Code Tested ):

aws ec2 describe-import-image-tasks –import-task-ids “import-ami-ffyqpegk”migrate physical server to aws

You can check the progress of the task with that job id.

After the process completion, you can now create a new VM that we copied from the on premises.

After this step compeleted then a sysops or admin know to launch a vm in AWS.We will post a new VM creation in AWS.


Leave a Reply

Your email address will not be published. Required fields are marked *