Migrate VM Os to Aws Cloud
Requistite :
➢ Install Oracle VM machince.
➢ Download window 11 os 64 bit iso [Link]
download/windows11
➢ Aws Cli should be installed .
Step Process :
[Link] New Vm .
[Link] new folder name it and place folder location into our VM Folder .
place window11 64 bit iso into iso image.
Edition should be Window 11 pro(except window home we can any os version )
After doing this click the option next .
[Link] Username and Password Details (remember to take screenshot )
[Link] on Finish.
Install was started process it take nearly 10 mins.
After installation completed window display like below :
Create a new text file , make note something and save it.
In search View advance system setting – Remote -Allow RDP .
After completed all above process and shutdown VM machine.
Then File menu - Export appliance(see below image)
Select Window and Next
Go to the folder previously were created just check windows folder displayed over and save
as type : .ova
After completed display as below and click next .
Click on Finish.(as below)
Right side below image we can see export window nearly 5-10 mins.
After completing export applicance .Ova was created in our folder .we see image as below.
Open AWS console management and create s3 bucket and upload .ova file into your s3
bucket take nearly 15 mins .
Meanwhile we can Create another folder (migration ) in local laptop .
In that make template .json file format by using vs code.
[
{
"Description":"Window os",
"Format":"ova",
"UserBucket":
"S3Bucket":"pushpam45",
"S3Key":"[Link]"
After that go to console .Create IAM role select custom trust policy change principal as
below mention:
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Statement1",
"Effect": "Allow",
"Principal": {
"Service": "[Link]"
},
"Action": "sts:AssumeRole"
➢ After add permission EC2 , S3 full access to this role and save it .
Go Command prompt in local laptop.
• Configure aws using access and secret key.
• Run this command :
aws ec2 import-image --description "window" --disk-containers
"[Link] --role myImpExpRole
aws ec2 describe-import-image-tasks –import-task-ids “(copy above image import-ami-id)”
Status message :
• converting
•
• Updating
• Booting
•
• Preparing ami
• Completed .
➢ After completed above process just go and check aws console over ec2 ami there you
find imported image created by you.
➢ By using ami image launch ec2 instance.
➢ After launching instance take public ip
➢ Connect RDP in local laptop and provide details like public ,Username (previous VM
details) and click on connect.
➢ After connect display as below :