qcow2 file size error

informant

Renowned Member
Jan 31, 2012
762
10
83
Hi all, we would create a 3TB qcow2 disc, but we have this error:
Code:
Formatting '/var/lib/vz/images/5532/vm-5532-disk-1.qcow2', fmt=qcow2  size=3298534883328 encryption=off cluster_size=65536  preallocation='metadata' lazy_refcounts=off 
TASK ERROR: create  failed - unable to create image: qemu-img:  /var/lib/vz/images/5532/vm-5532-disk-1.qcow2: The image size is too  large for file format 'qcow2' (try using a larger cluster size)

It´s a bug or what we can do here?

regards
 
I think the file size limit of qcow2 is 2 TB

Hi,
i think not - there must be something else...

If I createn an image at home (3.12-8.towo-siduction-amd64) it's work wit 3TB:
Code:
udo@arktis:~$ qemu-img create -f qcow2 test.qcow2 3T
Formatting 'test.qcow2', fmt=qcow2 size=3298534883328 encryption=off cluster_size=65536 lazy_refcounts=off 
udo@arktis:~$ file test.qcow2 
test.qcow2: QEMU QCOW Image (v3), 3298534883328 bytes
on a pve-node I can also create such an big file
Code:
root@proxmox:~# qemu-img create -f qcow2 test.qcow2 3T
Formatting 'test.qcow2', fmt=qcow2 size=3298534883328 encryption=off cluster_size=65536 lazy_refcounts=off 
root@proxmox:~# file test.qcow2
test.qcow2: QEMU QCOW Image (unknown version)
Udo
 
Hi udo,

ok - it works also only on command line, not on gui of proxmox - right.

regards
 
Hi,

thanks, and whats is the advantage of raw? Speed, Backupspeed, Snapshots, Handling?

regards
 
Last edited:
Hi, but if we use raw, we have the same error message:
Code:
Formatting '/var/lib/vz/images/5532/vm-5532-disk-1.raw', fmt=raw size=3298534883328 
TASK  ERROR: create failed - unable to create image: qemu-img:  /var/lib/vz/images/5532/vm-5532-disk-1.raw: The image size is too large  for file format 'raw'

only with vmdk it´s works on this size?

normal?

regards
 
In which configuration file can we change it? we use the image of proxmox.com website with last online update.

regards
 
Last edited:
Hi dietmar,

following output come:
Code:
qemu-img --version
qemu-img version 1.7.1, Copyright (c) 2004-2008 Fabrice Bellard
usage: qemu-img command[command options]
QEMU disk image utility
...
Supported formats: vvfat vpc vmdk vhdx vdi ssh sheepdog sheepdog sheepdog rbd raw host_cdrom host_floppy host_device file qed qcow2 qcow parallels nbd nbd nbd iscsi gluster gluster gluster gluster dmg tftp ftps ftp https http cow cloop bochs blkverify blkdebug

We have create the disc in gui manager of proxmox, not on ssh.

regards
 
Same error here. qemu-img is version 2.1.2.

Code:
Dec  8 09:06:26 paul pvedaemon[5637]: create failed - unable to create image: qemu-img: /var/lib/vz/images/104/vm-104-disk-1.qcow2: The image size is too large for file format 'qcow2' (try using a larger cluster size)
Dec  8 09:06:26 paul pvedaemon[3006]: <root@pam> end task UPID:paul:00001605:00032A3F:54855BFF:qmcreate:104:root@pam: create failed - unable to create image: qemu-img: /var/lib/vz/images/104/vm-104-disk-1.qcow2: The image size is too large for file format 'qcow2' (try using a larger cluster size)

Even if I try raw it doesn't work.
Code:
Dec  8 09:13:15 paul pvedaemon[5982]: create failed - unable to create image: qemu-img: /var/lib/vz/images/104/vm-104-disk-1.raw: The image size is too large for file format 'raw'
Dec  8 09:13:15 paul pvedaemon[3006]: <root@pam> end task UPID:paul:0000175E:0003CB37:54855D9B:qmcreate:104:root@pam: create failed - unable to create image: qemu-img: /var/lib/vz/images/104/vm-104-disk-1.raw: The image size is too large for file format 'raw'

When I create a qcow image manually it works:
Code:
# qemu-img create -f qcow2 test1.img 6T
Formatting 'test1.img', fmt=qcow2 size=6597069766656 encryption=off cluster_size=65536 lazy_refcounts=off

Maybe a wrong cluster size is used? But if I use the GUI I can't tell Proxmox to use a different cluster size?

BTW - I find it horrible that the GUI simply fails to create the VM, giving no error message and leaves vm files on the disk I have to remove manually.
 
Maybe a wrong cluster size is used? But if I use the GUI I can't tell Proxmox to use a different cluster size?

Maybe you do not have enought free space under /var/lib/vz/?

BTW - I find it horrible that the GUI simply fails to create the VM, giving no error message and leaves vm files on the disk I have to remove manually.

Oh, looks like a qemu-img bug - will try to fix that.
 
hi,

i can run "qemu-img create -f qcow2 test.qcow2 6T"
but "qemu-img create -f qcow2 -o preallocation=metadata test.qcow2 6T" fails with the error above. so the question for me is: what happens if the thin provisoned image reaches more than 2TB??? will it fail?
 

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!