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

cosmos

Renowned Member
Apr 1, 2013
135
5
83
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".