VMWare¶
VM Import¶
Create Ova File¶
- Install ovf tool
- Build the image with the new version bundle file downloaded from VMWare site
docker run --rm -it -v $(pwd):/tmp ovftool --noSSLVerify vi://<user>@<ip>/LAB/vm/aws /tmp/aws.ova
AWS PreRequisites¶
-
Create vmimport role
- Documentation
- The documentation has a error in trust policy "sts:Externalid": "vmimport" should be "sts:ExternalId": "vmimport"
-
Upload to S3
-
Use Multipart Upload
-
Import Image¶
aws ec2 import-image --description "My server VM" --disk-containers "file://containers.json" --region eu-west-1 # Monitor aws ec2 describe-import-image-tasks --import-task-ids ${TASK_ID} --region eu-west-1
- Containers.json file
[ { "Description": "My Server OVA", "Format": "ova", "UserBucket": { "S3Bucket": "fsantos-vmware-ova-templates", "S3Key": "aws.ova" } }]