====== Export an EC2 instance as ova/vmdk ====== ==== Export ==== You need AWS CLI in order to export an instance, check here how to install it [[https://lunetikk.de/doku.php?id=cloud:aws:awsclim|Lunetikk.de - AWS CLI]] Create a json file with the following content (replace with one of your buckets): { "ContainerFormat": "ova", "DiskImageFormat": "VMDK", "S3Bucket": "", "S3Prefix": "vms/" } Then export via AWS CLI aws ec2 create-instance-export-task --instance-id --target-environment vmware --export-to-s3-task file://C:\ Example: aws ec2 create-instance-export-task --instance-id i-0c3786ac638b6bc7c --target-environment vmware --export-to-s3-task file://C:\Users\Lunetikk\Desktop\aws\aws.json You can check if the task is still running via aws ec2 describe-export-tasks --export-task-ids Or cancel it aws ec2 cancel-export-task --export-task-id The .ova will then be in your bucket under /vms Source: [[https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html|docs.aws.amazon.com - vmexport]] ==== Troubleshooting ==== Export failed with "invalid parameter", check here: [[https://lunetikk.de/doku.php?id=cloud:aws:troubleshooting|Lunetikk.de - AWS Troubleshooting]] \\