I've been experimenting with KVM for some time and I think it's time I dump my Windows partition altogether -well, had to use Windows for some Windows-only programs I have to use for work.
I can build VM guests on raw files etc. What I need is using a logical volume (LV) of a volume group (VG) as target for guest VM.
Here's what I did:
1) Threw a new disk and configured LVM.
2) Created a volume group called lvmdepo
. It has a swap partition in it, so i think it works so far.
3) Created an LV called virtwin1
in the VG lvmdepo.
4) Ran Virt-Manager. Connected.
5) Edit --> host details, Storage tab.
6) Click add pool, select "logical: LVM Volume Group", give the name of my existing VG. Forward to selection window.
7) Enter target path as /dev/lvmdepo. Click Finish
8) Had this error: "Could not start storage pool: internal error '/sbin/vgchange -ay lvmdepo' exited with non-zero status 5 and signal 6: WARNING: Running as a non-root user. Functionality may be unavailable.
/var/lock/lvm/V_lvmdepo:aux: open failed: Permission denied. Can't get lock for lvmdepo"
What I understand is that, it tries to issue a vgchange command, then, since Virt-Manager wasn't run as superuser, fails to use the command.
I tried running Virt-manager as superuser (sudo virt-manager) and successfully installed a guest VM on the very same LV. So it works. What I need is a way to make it work for a non-root
Thanks for the ideas in advance.