From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7041956804245323776 X-Received: by 2002:a1c:1d0d:: with SMTP id d13mr676087wmd.78.1639752526727; Fri, 17 Dec 2021 06:48:46 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:5111:: with SMTP id o17ls215488wms.1.canary-gmail; Fri, 17 Dec 2021 06:48:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHiOsQmeBQz04IsJoHmjuYJoj082x4iyGtXYhbg7PazvufkWn5qQIaek/RwnM7410sK1ZN X-Received: by 2002:a7b:c448:: with SMTP id l8mr9781229wmi.173.1639752525725; Fri, 17 Dec 2021 06:48:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639752525; cv=none; d=google.com; s=arc-20160816; b=sJNtoOWp8nEMURSE/run6PDeabCu1+V73NbGzW0l4dTjugmKajZ3QQ73urOiHWlCtX DEt1Ats1w5m0EVQUhouM5l5RLsaZAS6WRVuXoiVTYc5FUFELpcRuoy3ygmuILGdZW6Dc ZK6oNrnlnKmTEBGofzukENAID4H/Ia6U4iXsyd5dJ3Psr/QA3Y5hfR4BkFyn7bP0qLnV xBbDSzMcFzoeIhI/8e/YWKQvKBQmTYESetm6ALv0RoQprBYXhxoZSEeE+eA8lxUDjrha WdJ+sQjjYVEv+iVv8F6iA6y54UeSnd0QRuBTQGiEJwIm8hLN1TWPpeda864ov63vj201 X2mQ== 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=SB5kyRXZEj0gTvXmZIHVk8WT6MgGv3G/llVV3b6mxlI=; b=h3uOzWnTqd59LE2wH+4jR5L826PPkpycrmARoPcKhRKvSfWtdUWWaaETzZnR+9weYf ups7O0zIMJkKszRHVJdjYhLW1K51rm6KRUPgM5BEWTYcB9GDADTAex/2VEdEWzm3elcZ zjhgLYpAAScEytWvJp4eq/aPT/9nxGVqd9zWfoluTpwAE5kDGmtsiYz/7CxBDqpLTFbu xXoZ2f+PReu+6BHJhR4nAeVgPHD76vJZF10+pBM+aLP6pPfzIOhiQqEwAjOf/HrCP22Y GQMlRuXCQvQRbAZC0Xtpa06VZagj5ClwYm09kvt5YUyx1nhdtwXgihvEFG2ffXQgDsBk bxSQ== 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 g9si466968wrm.3.2021.12.17.06.48.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Dec 2021 06:48:45 -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 1BHEmh2o018603 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Dec 2021 15:48:44 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v6 0/7] vm-img improvements and fixes Date: Fri, 17 Dec 2021 17:48:28 +0300 Message-Id: <20211217144835.14878-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: B1EHK9G8BQ9t changes since v5: - base on v4, not v3 as previous version 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