[SOLVED] Does converting qcow2 without -c remove compression?

Terrum

Renowned Member
Mar 7, 2014
36
4
73
I have a qcow2 disk image that I compressed with "qemu-img convert -c". But I understand that this can inflict performance issues when running a compressed qcow2 disk image.

Thankfully I only plan to use the compressed qcow2 disk images as templates. So when I clone the compressed qcow2 template from the web UI, will it clone the disk image without compression and restore normal qcow2 performance?

Thank you for any clarifications!
 
Last edited:
Thanks for your clarification, however
The performance issue that you're referring to relates only to the time it takes to compress an image.
According to one of the sources you provided https://www.jamescoyle.net/how-to/1810-qcow2-disk-images-and-performance it mentions that any compressed data will need to be decompressed as soon as it is accessed, so I assume this would degrade performance.

I just want to clarify whether I am understanding this correctly, and if I will receive any performance issues during the live use of the compressed disk image after it has been compressed.

Thanks once again!
 
Ah sorry about that..

So it seems the answer depends on how VMs will be cloned from the template. If you are creating linked clones, because the same underlying data is being referred to, you will have to pay the performance price of decompressing the data on read. However, if you create a full clone, the image will be decompressed while cloning.
 
No worries. In that case, if I have a compressed 'qcow2' and decide to full clone it to a 'raw', this should decompress all of the existing data and ensure any potential performance issues caused by compression to be void?

Many thanks!
 
Yes. I just double checked on my machine to confirm :)

Happy to help!
 
  • Like
Reactions: Terrum

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!