From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7041956804245323776 X-Received: by 2002:a1c:1903:: with SMTP id 3mr5672718wmz.89.1639673173609; Thu, 16 Dec 2021 08:46:13 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:210c:: with SMTP id u12ls3876090wml.2.canary-gmail; Thu, 16 Dec 2021 08:46:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGtMz9rgKjbOLAKtklgJ/j5/LhRGLOoTMUSAIJSvLlcsL0MncPbHrjZSxukl1Z/NaSHwvI X-Received: by 2002:a1c:1bd8:: with SMTP id b207mr5893622wmb.114.1639673172654; Thu, 16 Dec 2021 08:46:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639673172; cv=none; d=google.com; s=arc-20160816; b=bSDr74Y2RIyQjwQAWJ3ovjUs14xixE17PEul73Vnsj/8PnRMLwyxoUhzqZ8HVMa5JR qb4Z5LxPivFEl+ranFpElKcJOeAw51TVLirmSt6NfuJT2gS5BbLrT1z9hqk249yiRZ/n OiIul+UX3IP47J7CmYSlXo9vWEpgSBhkdGgKbgE3VZoCOUWZJEJWTC7aRLP0CqNK7Gvo wwLhmiLIsP5vDzh4ql0WYKEGNaZmN7kLYbPY9R4cyGUUdF/BZzO/zLbn7DpX/Lw1pmbn NIqc9Ls8ecT2iKcK4XL0yVcrz5XJ9OlK5EF/DkWC63LsBSVEXovfvJrYjJFBd0yMeCBI hnWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=cYdSfmDb/A9eAO0sRik9xFwEX4s24sOiZziVP/RsqZI=; b=uQJuL4DfwrSFppJoxGa6yZDlise6agzrU5L05BzBAIDHp06WnKA8xlWhVDmzA0dT5P eMVz/G0HIC3VKpy/EBTjp7Le1d80wgr7D4pCIRT+T7i7n5Rnx64DWrfAxDt2yWo0aGVo eKbUHKd9J7MaBT4RaEP6bppilOiaJv0B9SqgpcBd07sXXW4gosuso8Op0Y/6RNGqoe2u J/HVQTscWZ2F842IF819fy+oTPgB7WpTHoyaPXufyqrRzLSupuTFjRe/ux2z9i1kUTdC +2Joh943P1HyWyxT3hoFQrRzqXuSkHwyjpljiwrNuq00sGoG+ShfowPDvkMUt89kwz+v q9kg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id o29si360930wms.1.2021.12.16.08.46.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Dec 2021 08:46:12 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from localhost.localdomain (mm-214-81-214-37.mgts.dynamic.pppoe.byfly.by [37.214.81.214] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 1BGGk8Wm014355 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Dec 2021 17:46:11 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v5 0/7] vm-img improvements and fixes Date: Thu, 16 Dec 2021 19:45:55 +0300 Message-Id: <20211216164602.326689-1-amikan@ilbers.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: LzmavH/cxtQy changes since v4: - format commit messages changes since v3: - change the way we play with the SRC_URI path in p1 - adding cover letter again changes since v2: - change avocado code and move renamed bullseye test into another test changes since v1: - rebase on next/avocado The vm-img support we currently have is a bit broken in various aspects. Most prominently the resulting ova files are accepted by vmware only with warnings. And UEFI booting did not really work in virtualbox or vmware. This series makes the template for the appliance a file one can override with a custom template. Which should allow close to any special configuration that the VMMs can express in their respective ovf dialects. It further makes changes to the templates we ship with isar to hopefully give people a decent baseline so they will not even need custom templates. And there is some code cleanup to the vm-img class. Henning Schild (7): vm-img: move template out of package into SRC_URI file vm-img: use two different ovf templates for vmware/virtualbox vm-img: shorten code by using variables we have vm-img: drop not used variables vm-img: set vmware machine type to 64bit in our template vm-img: make use of isars template class for most of the tmpl variables meta-isar: switch virtualbox test from buster to bullseye meta-isar/conf/local.conf.sample | 2 +- meta-isar/conf/machine/vmware.conf | 2 + ...a-buster.conf => virtualbox-bullseye.conf} | 2 +- meta/classes/vm-img.bbclass | 35 ++--- .../vm-img/vm-img-virtualbox.ovf.tmpl} | 132 +++++++----------- meta/classes/vm-img/vm-img-vmware.ovf.tmpl | 127 +++++++++++++++++ .../vm-template/vm-template_0.1.bb | 16 --- testsuite/build_test/build_test.py | 6 +- 8 files changed, 199 insertions(+), 123 deletions(-) rename meta-isar/conf/multiconfig/{virtualbox-ova-buster.conf => virtualbox-bullseye.conf} (77%) rename meta/{recipes-devtools/vm-template/files/vm-template.ovf.tmpl => classes/vm-img/vm-img-virtualbox.ovf.tmpl} (54%) create mode 100644 meta/classes/vm-img/vm-img-vmware.ovf.tmpl delete mode 100644 meta/recipes-devtools/vm-template/vm-template_0.1.bb -- 2.25.1