I now we cannot use thin LVM volumes with libvirt. Is there any other alternative allowing use of LVM thin provisioning in KVM/QEMU virtual machines?
libvirt does not directly support using thin volumes as storage pool: when selecting the volume group where creating each logical volumes (disk images), the thin pool is not shown on the list.
To use thin volumes with
libvirt, you have two possibility:
- manually create the required thin volume, attaching it to the virtual machine;
- otherwise, you can create a single big thin volume, formatting it with XFS, mounting it and using libvirt to create a directory-based storage pool (creating VM disk images as plain file on the XFS filesystem).