Ask Your Question
1

how to convert ami/aki/ari image to qcow2?

asked 2014-06-17 02:34:37 -0500

bishoy gravatar image

I need to convert an image from it's 3 files ami/aki/ark to qcow2. it there is a way to do that?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
2

answered 2014-06-17 02:38:08 -0500

SGPJ gravatar image

Please follow this link: http://docs.openstack.org/image-guide...

for converting to qcow2 format.

edit flag offensive delete link more

Comments

No, This will not work for sure!

bishoy gravatar imagebishoy ( 2014-06-17 03:10:08 -0500 )edit

first you can try to convert ami to vmdk then to qcow2: $ qemu-img convert -f raw -O vmdk vmdk-image.raw final.vmdk

SGPJ gravatar imageSGPJ ( 2014-06-19 04:10:57 -0500 )edit

will try, thank you

bishoy gravatar imagebishoy ( 2014-06-19 07:01:25 -0500 )edit
2

answered 2014-06-17 09:03:17 -0500

Hi bishoy,

I did not find a direct way to convert Amazon EC2 ami to qcow2.

Please try follow the steps in the following link to obtain the raw image. And then replace the very last step to covert to qcow2. In the following example, it is trying to convert to vmdk format. Hope it helps.

http://www.smashingboxes.com/convert-...

edit flag offensive delete link more
0

answered 2018-11-28 12:56:15 -0500

fsalaman gravatar image

Use VMware's free tool Converter and generate a flat vmdk, then use qemu-img to convert to qcow2, voila.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-06-17 02:34:37 -0500

Seen: 2,625 times

Last updated: Nov 28 '18