HOWTO: Convert an OVA to an AMI
- Java 1.7
- yum install java-1.7.0-openjdk
- AWS and EC2 CLI Tools
- Access to an AWS account
- Environment variables
- /usr/lib/jvm/jre-1.7.0-openjdk.x86_64 on CentOS
- Where you’ve uncompressed the EC2 CLI archive.
- Add /usr/local/ec2/bin to your PATH
- Name the ova something like <original ova>.ova.tgz
- Untar the OVA
- tar xvf <original ova>.ova.tgz
- Create an S3 bucket to use for image storage during conversion
- This name of this bucket is passed to the ec2-import-image on the -b switch.
- Use ec2-import-image
- ec2-import-instance cloudbolt-220.127.116.11-disk1.vmdk \
-f VMDK \
-t t2.medium \
-p Linux \
-a x86_64 \
-b demo-amis \
-o $AWS_ACCESS_KEY \
- Watch conversion status with:
- It takes a while, but eventually an instance shows up configured with the contents of the VMDK.
- Note: it takes a while even after the conversion process has completed.
Have more questions? Submit a request