Possible bug with qemu-img zeroinit and LVM

yobert

New Member
Feb 2, 2026
1
0
1
Hello there! After upgrading recently to PVE 9.1.4, we have started seeing an interesting import failure. We're importing from the debian 13 cloud image (stored with directory storage) into a new VM under LVM storage. I've tracked it down to what looks like a bug in the zeroinit patch to qemu. When proxmox tries to import the image via this command:

/usr/bin/qemu-img convert -p -n -f raw -O raw /dev/vm-vg/vm-118-disk-0 zeroinit:/dev/vm-vg/vm-120-disk-0

It ends up with a corrupted partition table. But if I manually do this command, it works:

/usr/bin/qemu-img convert -p -n -f raw -O raw /dev/vm-vg/vm-118-disk-0 /dev/vm-vg/vm-120-disk-0

I can supply more troubleshooting information if anyone is interested. Mostly I'm just curious if anyone else has hit this or if it's just me?