Assign KVM to use a different partition

Hey Everyone… Would appreciate some assistance here. I currently have opensuse tumbleweed installed on which I need to run KVM so I can install some additional OS (centos, windows and etc…) When I installed tumbleweed initially, I created a separate partition called /vms and assigned it 100GB.

See this image →

I was hoping to use the vms partition to run the various vms. When I try to create a new vm, I first have to create a new kvm-pool. If you see this image →

and I click on browse to go select that /vms partition, I don’t see it…

See this image →

The issue I am having is that while trying to create a pool, I have no way of selecting the /vms partition.

Is this not possible, or what am I doing wrong here?

Any help would be appreciated. By the way, I’m still new to linux, so please try to explain things to me, so I can get this up and running asap.

Thank you in advance.

  • AJ

I used a symbolic link:

% ls -l /var/lib/libvirt
lrwxrwxrwx 1 root root 15 May 23 22:53 /var/lib/libvirt -> /shared/libvirt

Here “/shared” is a large partition, with plenty of spare space.

This seems to work. I should possibly do something similar for “/etc/libvirt”, but much less is stored there so I’m not bothering for now.

I’ve also used a symlink to modify the location, and it works.

To set up a storage pool might require knowing what is permitted or not, and whether you intend to add a storage pool or change your default storage pool.

Some info…
The following lists and describes each type of supported storage pool. You’ll notice there isn’t a “device” type which may be your problem although if you were set up using LVM, that’d be pretty close.

Using the virsh command to add a storage pool. Might be necessary if the graphical vm manager tool is lacking.

Changing your default storage pool