[Bug] QCOW2 not available for LVM storage on Proxmox VE 9
Describe the bug
Hello again,
since Proxmox VE 9, regular LVM storage supports both raw and qcow2 disk formats. Currently, PegaProx only allows raw for LVM storage. This seems to be caused by the static mapping in web/src/create_modals.js:
lvm: ['raw']
Because of this, disks created through PegaProx have to be converted from RAW to QCOW2 manually afterwards. Would it be possible to allow selecting QCOW2 for LVM storage when running on Proxmox VE 9 or newer, while keeping RAW-only behavior for older PVE versions?
Thanks again for your work on PegaProx!
Steps to Reproduce
- Tried different hosts / clusters.
Expected behavior
Would be handy to be able to choose QCOW2 for LVM storages.
Environment
- PegaProx Version: 1.1.0
- Behind Reverse Proxy? Traefik
- UI? Corporate
Logs
No logs available, since you can not choose the option qcow2 in the dropdown.
Checklist
- [x] I have searched existing issues to make sure this is not a duplicate
- [ ] I am using the latest version of PegaProx
Hi @JanK-96 ,
if you have allow-snapshot enabled on that volume it should work also with qcow2. Also please update to the 1.1.1 .
Hey there, we just updated to 1.1.1. Also we do have the allow snapshot enabled and we still just can use 'RAW'
Ah — that one is on us, not on PVE. The dropdown gets its options from a format-per-storage table in the frontend, and there are two of them: the disk edit dialog already knows PVE 9 does qcow2 on LVM, but the create wizard still has lvm/lvmthin pinned to raw only. So no amount of allow-snapshot on the volume will make qcow2 appear there — the list never offers it.
Thanks for coming back with the screenshots, that is what pinned it down. Getting the wizard table lined up with the other one.
If PegaProx is useful to you: https://opencollective.com/pegaprox
Marcus
Shipped in 1.2.0 — qcow2 is offered on LVM storage now.
Marcus
ps. the project runs on sponsorships, so if it's useful to you: https://opencollective.com/pegaprox