Can not create VM with QCOW2 format

ivannet

New Member
Sep 6, 2022
2
0
1
hi, i can not create a new VM with the QCOW2 format, i try this with this command:
Code:
root@pve-02:~/TEST# qm create 110  --name squeeze --virtio0 local-lvm:10,format=qcow2 --bootdisk virtio0 --ostype l26 --memory 512 --onboot no
unable to create VM 110 - unsupported format 'qcow2' at /usr/share/perl5/PVE/Storage/LvmThinPlugin.pm line 87.
All the format i can use is the RAW one, here some other info of the cluster:
Code:
cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content vztmpl,rootdir,iso,backup,images
        shared 0

lvmthin: local-lvm
        thinpool data
        vgname pve
        content rootdir,images

rbd: Storage_ssd
        content images,rootdir
        krbd 0
        pool ssd_pool

pbs: CLE-15g
        datastore CLE-15g
        server 172.18.0.7
        content backup
        fingerprint 8a:45:79:fb:bf:bf:d7:5f:bd:63:d4:65:0a:ad:1c:c9:d0:82:46:2d:f9:14:bd:63:15:a6:9e:44:16:48:57:40
        prune-backups keep-all=1
        username root@pam

pbs: CLE-30g
        datastore CLE-30g
        server 172.18.0.7
        content backup
        fingerprint 8a:45:79:fb:bf:bf:d7:5f:bd:63:d4:65:0a:ad:1c:c9:d0:82:46:2d:f9:14:bd:63:15:a6:9e:44:16:48:57:40
        prune-backups keep-all=1
        username root@pam

pbs: CLE-7g
        datastore CLE-7g
        server 172.18.0.7
        content backup
        fingerprint 8a:45:79:fb:bf:bf:d7:5f:bd:63:d4:65:0a:ad:1c:c9:d0:82:46:2d:f9:14:bd:63:15:a6:9e:44:16:48:57:40
        prune-backups keep-all=1
        username root@pam

pbs: one-shot_backup
        datastore one-shot
        server 172.18.0.7
        content backup
        fingerprint 8a:45:79:fb:bf:bf:d7:5f:bd:63:d4:65:0a:ad:1c:c9:d0:82:46:2d:f9:14:bd:63:15:a6:9e:44:16:48:57:40
        prune-backups keep-all=1
        username root@pam
and the pve version is 6.4:
Code:
root@pve-02:~/TEST# pveversion
pve-manager/6.4-13/9f411e79 (running kernel: 5.4.162-1-pve)
 
Last edited:
This is because on an LVM storage, the disk images are stored directly in the logical volumes, not into files. So RAW is the only option.
 
Only file level storages can use qcow2. Your LVM-Thin is a block level storage, so it won't work (same would be with ZFS and all the other block storages).
If you really want (but wouldn't recommend it, because of additional overhead of the filesystem) you could manually create a LV on that LVM-Thin, format it with a filesystem of your choice, mount it using fstab and then create a "Directory" storage pointing to the mountpoint of that filesystem. There you then could store virtual disks as qcow2 files which would be ontop of LVM-Thin.
 
Last edited:
  • Like
Reactions: aaron

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!