Ask Your Question

Converted to raw, but format is now qcow2 ????

asked 2016-08-31 22:23:45 -0600

fifi gravatar image

I downloaded an image in IMG format and converted it to QCOW2 using "qemu-img convert" command. When I wanna lunch an instance based on this QCOW2 image, I face with the following error:

Build of instance xxxxxxxxxx aborted: Image yyyyyyyyyyyyy is unacceptable: Converted to raw, but format is now qcow2

What's wrong?


edit retag flag offensive close merge delete


From where you had downloaded the img file ? Share what exact command steps you followed to convert the image & then for uploading it to glance.

Also, please share the output of "qemu-img info" command

#qemu-img info xyz.img
sunnyarora gravatar imagesunnyarora ( 2016-09-01 00:32:12 -0600 )edit

1- I downloaded the image from ubuntu cloud image:

2- I run: qemu-img convert -f raw -O qcow2 image.img image.qcow2

3- There is no output. When I run the command, the qcow2 image will be created.

fifi gravatar imagefifi ( 2016-09-01 12:21:26 -0600 )edit

results for the downloaded image is as follow. Strange cause I downloaded an img not a qcow2.

image: /home/abc/Desktop/trusty-server-cloudimg-amd64-disk1.img
file format: qcow2
virtual size: 2.2G (2361393152 bytes)
disk size: 248M
cluster_size: 65536
Format specific informat
fifi gravatar imagefifi ( 2016-09-01 12:29:24 -0600 )edit

Here is the result for the converted image:

image: /home/abc/Desktop/trusty-server.qcow2
file format: qcow2
virtual size: 248M (260309504 bytes)
disk size: 249M
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false
fifi gravatar imagefifi ( 2016-09-01 12:33:14 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-09-01 14:43:31 -0600

sunnyarora gravatar image

So, The error message you reported, mostly comes when you downloaded the ready cloud images with img extention and convert it into qcow2, when they are already having that format. Here are details of Openstack Disk and Container formats

For Example:

# qemu-img info RHEL64.img
image: RHEL64.img
file format: qcow2
virtual size: 5.0G (5368709120 bytes)
disk size: 136K
cluster_size: 65536

You can directly upload that ready cloud image file to Glance, no need to convert. You can refer this documentation

#glance image-create --name='RHEL64-TEST' --is-public=true --container-format=bare --disk-format=qcow2 < RHEL64.img

Please let us know if this solution works.

edit flag offensive delete link more


Thanks for the answer. Just one more question. I have created a QCOW2 from an ISO image with a tool called "virtual machine manager". I uploaded that QCOW2 image into glance. However it has different behavior compared with that IMG image I downloaded, especially in block live migration. Any idea why

fifi gravatar imagefifi ( 2016-09-01 15:02:28 -0600 )edit

I dont think, it should have any problems with block live migration.

It would be better if you open another thread with full details, i.e what steps you have followed and what error message you are facing with logs. -Thanks

sunnyarora gravatar imagesunnyarora ( 2016-09-01 15:12:51 -0600 )edit

Thanks. I have already done taht. I appreciate if you also check it out at :

fifi gravatar imagefifi ( 2016-09-01 15:29:18 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-08-31 22:23:45 -0600

Seen: 3,909 times

Last updated: Sep 01 '16