qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
  • * Re: [PATCH 0/3] tests/vm/freebsd: Get up-to-date package list from lcitool
           [not found] <20230531200906.17790-1-philmd@linaro.org>
           [not found] ` <20230531200906.17790-3-philmd@linaro.org>
    @ 2023-06-01  8:05 ` Erik Skultety
           [not found] ` <20230531200906.17790-4-philmd@linaro.org>
      2 siblings, 0 replies; 4+ messages in thread
    From: Erik Skultety @ 2023-06-01  8:05 UTC (permalink / raw)
      To: Philippe Mathieu-Daudé; +Cc: qemu-devel
    
    On Wed, May 31, 2023 at 10:09:03PM +0200, Philippe Mathieu-Daudé wrote:
    > Inspired by this patch from Thomas:
    > https://lore.kernel.org/qemu-devel/20230531090415.40421-1-thuth@redhat.com/
    > 
    > Instead of updating the package list manually, use lcitool vars file.
    > 
    > Philippe Mathieu-Daudé (3):
    >   tests/vm: Pass project source path to build_image()
    >   tests/vm: Introduce get_qemu_packages_from_lcitool_vars() helper
    >   tests/vm/freebsd: Get up-to-date package list from lcitool vars file
    > 
    >  tests/vm/Makefile.include |  1 +
    >  tests/vm/basevm.py        | 10 +++++++--
    >  tests/vm/centos           |  2 +-
    >  tests/vm/centos.aarch64   |  2 +-
    >  tests/vm/freebsd          | 46 +++++----------------------------------
    >  tests/vm/haiku.x86_64     |  2 +-
    >  tests/vm/netbsd           |  2 +-
    >  tests/vm/openbsd          |  2 +-
    >  tests/vm/ubuntuvm.py      |  2 +-
    >  9 files changed, 20 insertions(+), 49 deletions(-)
    > 
    > -- 
    > 2.38.1
    > 
    
    From my POV the changes are pretty straight-forward, but I'll let others who
    use this code on pretty much daily basis to comment. What I'll say though is
    that I only just now looked at the Python VM spawner helpers you have and it
    left me wondering whether there'd be interest in dropping much of the code in
    favour of lcitool invocations - not all, not even trying to say it would be
    100% smooth, but it would
    1) give lcitool even bigger exposure
    2) find bugs
    3) generalize the functionality even more
    4) open doors for more features needed by the community
    
    Specifically looking at the vm/centos source file, we recently added support
    for downloading guests from vendor-provided cloud images (asking libosinfo for
    the URL to download from )which are cached essentially the same way as your
    code does and then provisions it using a storage overlay. Package installation
    and other configuration is done via Ansible, so root SSH is taken care of,
    serial console is force enabled, etc.
    
    If the community were interested in migrating the aforementioned functionality
    to lcitool wrt/ provisioning local VMs (no FreeBSD at the moment though :(  [1])
    I'd be happy to help with that.
    
    Regards,
    Erik
    
    [1] recently I saw a statement somewhere that FreeBSD is finally considering
    providing official cloud-init template images and that it should happen some
    time this year, so knowing this I'd rather wait some more than to add yet
    another code to special-case the cloud-init provisions with lcitool for FreeBSD
    
    
    
    ^ permalink raw reply	[flat|nested] 4+ messages in thread
  • [parent not found: <20230531200906.17790-4-philmd@linaro.org>]

  • end of thread, other threads:[~2023-06-01  9:57 UTC | newest]
    
    Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20230531200906.17790-1-philmd@linaro.org>
         [not found] ` <20230531200906.17790-3-philmd@linaro.org>
    2023-06-01  7:36   ` [PATCH 2/3] tests/vm: Introduce get_qemu_packages_from_lcitool_vars() helper Erik Skultety
    2023-06-01  9:57     ` Daniel P. Berrangé
    2023-06-01  8:05 ` [PATCH 0/3] tests/vm/freebsd: Get up-to-date package list from lcitool Erik Skultety
         [not found] ` <20230531200906.17790-4-philmd@linaro.org>
    2023-06-01  9:55   ` [PATCH 3/3] tests/vm/freebsd: Get up-to-date package list from lcitool vars file Daniel P. Berrangé
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).