The officially official Devuan Forum!

You are not logged in.

#1 2020-11-13 22:12:01

uther
Member
Registered: 2019-05-16
Posts: 52  

How to change default storage pool location in virt-manager?

I'm making my first steps in VMs, so sorry for any stupid questions.

I'm using KVM+QEMU plus GUI frontend VMM and I found that I can't change the location of a default storage pool - either in virt-manager settings or during setting up a new VM.
I don't know if this is a good practice, but my goal is to have default storage pool for VMs on a separate drive with full disc encryption. The drive is working correctly.

After some digging I found this advice: https://serverfault.com/questions/84051 … om-libvirt
I've tried solutions from both posts, but with no results. The default pool location in virt-manager is still pointing to /var/lib/libvirt/images.

I'm on Beowulf. My user account is in libvirt libvirt-qemu groups, the libvirtd is running, virtualisation is enabled.
As for the packages I've installed:
qemu-kvm
libvirt-clients
libvirt-daemon-system
bridge-utils
libguestfs-tools
genisoimage
virtinst
libosinfo-bin
virt-manager

The other information that I've found is related to permissions, but I don't know where to start with it or how precisely its related to storage pools.
Is having default pool on a /var/ partition a recommendded solution? I can sacrifice part of my /home partition and make /var bigger, but that's my last resort.

Thanks for any advice
uther

Offline

#2 2020-11-15 11:53:03

xinomilo
Member
Registered: 2017-07-02
Posts: 156  

Re: How to change default storage pool location in virt-manager?

both link instructions should work fine.. restart libvirtd afterwards, and make sure new pool permissions are ok..

also from virt-manager you can add a new storage pool, and use that one instead..  connect local/remote libvirt, (menu) edit -> connection details -> storage tab.
press + button, add your new disk/dir/whatever pool.. pick that one when altering/creating vms..
if the new one is working ok, then you can stop/delete default pool if you don't need it..

Offline

Board footer