Results 1 to 4 of 4

Thread: Disable libvirt storage pools

  1. #1
    Join Date
    Dec 2020
    Posts
    23

    Default Disable libvirt storage pools

    It seems every time I create a VM with virt-install a new storage pools is created.
    But I don't use storage pools at all.

    I looked in the virt-install manual but could find a way to prevent this from happening.
    Also been looking for any settings in the libvirt/qemu config file to disable storage pools in any way but couldn't find anything there either.

    If I run "virsh pool-capabilities" I do get a XML output with some "supported" attribute which could be interesting to set to 'no' but again I cannot find anywhere edit those settings.

    Any help would be appreciated.

  2. #2

    Default Re: Disable libvirt storage pools

    KVM stores guest images in storage pools. The default pool is /var/lib/libvirt/images but you can create a storage pool anywhere. As far as I'm aware, if you create a storage volume, you have to place it in a storage pool. I don't think there is any way around this. I think you can import an existing disk image that is not in a pool, but you cannot create one outside of a pool. In any case, the storage pool is just informing libvirt where your disk images are located.

  3. #3
    Join Date
    Dec 2020
    Posts
    23

    Default Re: Disable libvirt storage pools

    kvm/qemu/libvirt runs fine without storage pools. I specify the direct filesystem-path to the qcow2 image-files in the VM XML and I always (when I remember) clean up (completely deletes) ALL storage pools, incl. default and those auto-created pools and libvirt work fine.

  4. #4

    Default Re: Disable libvirt storage pools

    Quote Originally Posted by MrBW View Post
    kvm/qemu/libvirt runs fine without storage pools. I specify the direct filesystem-path to the qcow2 image-files in the VM XML and I always (when I remember) clean up (completely deletes) ALL storage pools, incl. default and those auto-created pools and libvirt work fine.
    As far as I'm aware, if libvirt does not have a default storage pool defined, it will create one. I don't know if there's a way to disable it.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •