Creating oracle-19c-vm-2
Error: Create instance from image: Failed converting image to raw at /dev/zvol/lxd/images/c7a031bc885bfad8ed37763f7a5283a3b472cbf5588a9a6b90034b6793a0efb1.block: Failed to run: qemu-img
convert -O raw /var/snap/lxd/common/lxd/images/lxd_image_unpack_477474043/rootfs.img /dev/zvol/lxd/images/c7a031bc885bfad8ed37763f7a5283a3b472cbf5588a9a6b90034b6793a0efb1.block: qemu-img
: /dev/zvol/lxd/images/c7a031bc885bfad8ed37763f7a5283a3b472cbf5588a9a6b90034b6793a0efb1.block: error while converting raw: Cannot grow device files
I found that /dev/zvol/lxd/images/c7a031bc885bfad8ed37763f7a5283a3b472cbf5588a9a6b90034b6793a0efb1.block is onlly 10GB but vm/oracle-19c image size is 20GiB
Why is not the new instance root volume size set to the source image size?
What version of LXD are you running. I have been working on a series of patches recently to improve the initial volume sizing in various scenarios due to the issues caused by the increased storage requirements of VMs.
Thanks. I’ve re-created this issue locally. It seems there is need for another patchset that deals with creating optimized images volumes that are greater than the default 10GB size to cope with this scenario.
The patchset I added recently were for migrations and backup restores that are >10GB size.