From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7010760649199321088 X-Received: by 2002:a5d:568a:: with SMTP id f10mr41846503wrv.314.1632319914141; Wed, 22 Sep 2021 07:11:54 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:2012:: with SMTP id g18ls3481448wmg.1.canary-gmail; Wed, 22 Sep 2021 07:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcJBm+DRXMaTKdwtDBdAChXBVSAotyj4lRaYunWXsnMuyO1JnuZlEZPJ6eKaympu9BKLsG X-Received: by 2002:a7b:c453:: with SMTP id l19mr10706646wmi.7.1632319913015; Wed, 22 Sep 2021 07:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632319913; cv=none; d=google.com; s=arc-20160816; b=yJqjhwrtDC6ltDL8Xy6z5KpuXKWVmvrfIFx8M7/lL2EQ+QrFHElVbUgIKJHovgTweM /MgR1Wx28ODz51kdf6G4RxgIC/r+yQcuQk/2zKTRa6Uo3cC8bXIMUIq0tNIrXJAYdUxh U4P9biZqvkIdvwtaG5gF1+Azdu5RxvRJA4MC5rDS05wl2gSQQ4y2J3VX20m25DiUOdrH s2AHSvxz1M8xWZmSqQIIleKzSAQPrtB+bpASRJXA26xCmnJKsSI//mYzx16m1ElbHpJR BaOFcOuAOSLNfNlfT4XjTde0OvKBXxuUDiX3rW6YqeJx/SliLh4FUyh9FkDXdz12QiLX BGMg== 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=oCxz1sAgsI2CoQNzJ+siBVYzAmhpz+henOM7vG1JtOU=; b=kHrWzav39Ng3Q7zKd44tJYBRrE97zTfJivvOr7pdhvbHLPGKL2qXeTwQqxwVnZDHHq 7uA2rfyHwV0n0HNw36JLEzr4mqnG/Dx/M2xpJ7W9fuz5YVEXzkHycC+AZUXb8PfUiD06 rLgDEehGtng0EHmNt8/wxc3gkLJ7wmIAqkuMd6N8hZTCW5TWMxaUXUjc6Qw/LrETvI+x Em7mZaMjnZ0rQ6mI2fq8cWWVVHa080/voHvlb9XdvQahFeVbIn2JPQwyceQSFNlzQpfG 0QzElQX+ThQFZZNnz4v53HBf4C4XcYqp0ZgL2SrD5ewwQK1AoX5sJrzsz05hwC7rt0DP RBUA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id 193si409013wme.0.2021.09.22.07.11.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Sep 2021 07:11:53 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 18MEBqMd023965 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 22 Sep 2021 16:11:52 +0200 Received: from localhost.localdomain ([167.87.35.234]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 18MEBqi8013583; Wed, 22 Sep 2021 16:11:52 +0200 From: Henning Schild To: isar-users@googlegroups.com Cc: "Q . Gylstorff" , Henning Schild Subject: [PATCH 0/7] vm-img improvements and fixes Date: Wed, 22 Sep 2021 16:11:40 +0200 Message-Id: <20210922141147.4696-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: OOCq/2zI72ov 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 --- scripts/ci_build.sh | 2 +- 8 files changed, 197 insertions(+), 121 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.32.0