[libvirt-users] How to have a directory and its subdirectories as a storage pool

Hi, I would like to use btrfs subvolumes as storage place for VM images to use snapshots. Unfortunately, this does not seem to work in virt-manager at least since the "filesystem directory" storage pool type does not allow me to descend into subdirectories. Is there a trick to do this? Can I do it with virsh, or in the XML? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600420

On 09/03/2014 06:11 AM, Marc Haber wrote:
Hi,
I would like to use btrfs subvolumes as storage place for VM images to use snapshots.
Unfortunately, this does not seem to work in virt-manager at least since the "filesystem directory" storage pool type does not allow me to descend into subdirectories.
Is there a trick to do this? Can I do it with virsh, or in the XML?
At the moment, you have to create a new storage pool for each subdirectory you want to recurse into. Yes, it would be nice if virt-manager could automate this a bit more. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On Wed, Sep 03, 2014 at 09:15:04AM -0600, Eric Blake wrote:
On 09/03/2014 06:11 AM, Marc Haber wrote:
I would like to use btrfs subvolumes as storage place for VM images to use snapshots.
Unfortunately, this does not seem to work in virt-manager at least since the "filesystem directory" storage pool type does not allow me to descend into subdirectories.
Is there a trick to do this? Can I do it with virsh, or in the XML?
At the moment, you have to create a new storage pool for each subdirectory you want to recurse into.
Which would mean one storage "pool" per VM, which is not really practical.
Yes, it would be nice if virt-manager could automate this a bit more.
Is there a bug/request tracker for libvirt? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600420

On 09/03/2014 10:11 AM, Marc Haber wrote:
At the moment, you have to create a new storage pool for each subdirectory you want to recurse into.
Which would mean one storage "pool" per VM, which is not really practical.
Why is it not practical, if virt-manager is patched to create such pools automatically on your behalf for traversing subdirectories?
Yes, it would be nice if virt-manager could automate this a bit more.
Is there a bug/request tracker for libvirt?
http://libvirt.org/bugs.html for libvirt bugs http://virt-manager.org/bugs/#report for virt-manager -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Marc Haber