[SOLVED] Doesn't full preallocate work for qcow2?

cosmos

Well-Known Member
Apr 1, 2013
104
2
58
I tried to create a fully (ie, not only for the metadata) preallocated qcow2 image file, with the following command, but I am receiving errors:
Code:
# qemu-img create -f qcow2 -o preallocation=full vm-100-disk-3.qcow2 128G
Formatting 'vm-100-disk-3.qcow2', fmt=qcow2 size=137438953472 encryption=off cluster_size=65536 preallocation='full' lazy_refcounts=off
Invalid preallocation mode: 'full'
qemu-img: vm-100-disk-3.qcow2: error while creating qcow2: Invalid argument

Why isn't full preallocation understood?
 
Last edited:
$ man qemu-img says:
"preallocation" Preallocation mode (allowed values: off, metadata). An image with preallocated metadata is initially larger but can improve performance when the image needs to grow.
so seems you only have "off" or "metadata", not "full".
 

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!