HOWTO: Convert an OVA to an AMI

Prerequisites

Procedure

  • 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-5.0.0.4-disk1.vmdk \
      -f VMDK \
      -t t2.medium \
      -p Linux \
      -a x86_64 \
      -b demo-amis \
      -o $AWS_ACCESS_KEY \
      -w $AWS_SECRET_KEY
  • Watch conversion status with:
    • ec2-describe-conversion-tasks
  • 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

0 Comments

Please sign in to leave a comment.