kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.09k stars 365 forks source link

Function enhancement: add template which the base image is qcow, qcow2 or raw from *The following ISOs are available* list #1173

Closed time-river closed 6 years ago

time-river commented 7 years ago

I explore the the functions of kimchi, find that qcow, qcow2 or raw can be base image(backing file), but there is limitation: only the image gave the path in File Path can be used in template, the images are not listed in The following ISOs are available.

We expect to enhancement to that function, there are three ways:

  1. write the image patch in json file under the /etc/kimchi/distros.d/ directory. egg.
    b185:/etc/kimchi/distros.d # cat images.json 
    [
    {
        "name": "SUSE Image",
        "os_distro": "openSUSE",
        "os_arch": "x86_64",
        "os_version": "42.2",
        "path": "file:///opt/SUSE-42.2.qcow2"
    }
    ]
  2. write the specific directory name(egg. /opt) in configure file, then scan this directory, list all images in The following ISOs are available. egg.
    
    b185:/etc/wok/plugins.d # cat kimchi.conf 
    [wok]
    # Enable Kimchi plugin on Wok server (values: True|False)
    enable = True

[kimchi]

Automatically create ISO pool on server start up

create_iso_pool = True images_pool = /opt


3. give the directory path in *File Path*, pass it to server, then server scan the directory, list all images in *The following ISOs are available*.

Did I express it clearly? If yeah, which one do you prefer ?

Err, for 1, I think I can realize it, and in process; for 2, maybe; for 3, can't, need your help.