Results 1 to 3 of 3

Thread: Assign KVM to use a different partition

  1. #1

    Default 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 --> https://paste.opensuse.org/90901739

    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 --> https://paste.opensuse.org/8477222

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

    See this image --> https://paste.opensuse.org/84423682

    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

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,374
    Blog Entries
    3

    Default Re: Assign KVM to use a different partition

    I used a symbolic link:
    Code:
    % 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.
    openSUSE Leap 15.1; KDE Plasma 5;

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,954
    Blog Entries
    2

    Default Re: Assign KVM to use a different partition

    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.
    https://libvirt.org/storage.html

    Using the virsh command to add a storage pool. Might be necessary if the graphical vm manager tool is lacking.
    https://access.redhat.com/documentat...ectories-virsh

    Changing your default storage pool
    https://serverfault.com/questions/84...l-from-libvirt

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

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
  •