From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6808879013169201152 X-Received: by 2002:a05:6000:10cc:: with SMTP id b12mr1994844wrx.29.1616759280646; Fri, 26 Mar 2021 04:48:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:58f0:: with SMTP id f16ls1045523wrd.0.gmail; Fri, 26 Mar 2021 04:47:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7jKaZBchaVVwlD5R5cpYZM5whatZAILNvBLRgvaDZk8NmT8cXYyuzkWoXP7w+Yz+QrHcf X-Received: by 2002:a5d:6a87:: with SMTP id s7mr14015216wru.312.1616759279817; Fri, 26 Mar 2021 04:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616759279; cv=none; d=google.com; s=arc-20160816; b=R9T1hivg3ZW1wdzWFsvyzorzQZhlqcq9joHiIRLc5TvgyIABX+0eF5lRvAqpqLLs1v Ebkf2mEMQSw77zavtXTyiYT5rWqPyC+4ZZXC2AaT1j8JJvGewwTUyeHizTOZGWRs6POw vfSmf/Ch7BVJX/E7fKFFFxvuzJ9kKlxs6s4PaMekriklsV2QTWbJtEN3twNqE5yvoJhl YkPmDT3oMTFNJ9S27RIP6Wsb5Rakp5VK3qsjWaTjKvlKUXu6TLOxiNG1S7t95k+zrpJf 7drEEAxr5WiTEg+f7vwWp99+j1r0pmA8YafSP070lTMcFnPEoau5doyyeBMVXZtEcMIJ J8sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=+Nu8syXv8U7DQHV5GiTRyhgZP/tW1+cYpwkW47+mjzs=; b=DGfIVYQYivUx5fm/NajK1wImYXX8gHiWYBz/K3rIoZ4iVQTVN0RJxPGaytm52LmpZn w+hv5fK/p40lVHmqXt2243KOHAcTQOcKcKY2lHzP4QSASUjEvO+dZ74C95y1+EF1AsjU 6mypabmV0Tpe42UlrTF4ib1rebCMEoqq7ecWDKDf9n+ce9TeErz1wFccLJ1YmC4LqkFW Bd5FGtMMcugTCBB/zC7nbU+M5sEO77uLUc/XAqFX2MjVrhhVrrmBRDGxfFlaJc48fThP kZQFciDQc1/LvDmqbzZNaDcQOjvB5a0NGvXvPT4t0ZQu48lgufm0gpmWYoKghX97DkZN Htzg== 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 h16si272258wrx.2.2021.03.26.04.47.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Mar 2021 04:47:59 -0700 (PDT) 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 [192.168.67.164] (mm-65-41-120-178.brest.dynamic.pppoe.byfly.by [178.120.41.65]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 12QBlwB6005835 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Mar 2021 12:47:58 +0100 Subject: Re: [PATCH v8 1/2] meta/classes: Generate ova image for VMWare or Virtualbox To: "Q. Gylstorff" , Jan.Kiszka@siemens.com, isar-users@googlegroups.com References: <20210205105235.29169-1-Quirin.Gylstorff@siemens.com> <20210205155713.29133-1-Quirin.Gylstorff@siemens.com> <20210205155713.29133-2-Quirin.Gylstorff@siemens.com> From: Anton Mikanovich Message-ID: Date: Fri, 26 Mar 2021 14:47:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210205155713.29133-2-Quirin.Gylstorff@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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: 9SEtL7eBHuVQ 05.02.2021 18:57, Q. Gylstorff wrote: > From: Quirin Gylstorff > > This allows to generate a ova file for virtualbox or vmware. The > images differ in the setting of the variable `VMDK_SUBFORMAT`. > - `streamOptimized` is used for Vmware Workstation > - `monolithicSparse` is used for Virtualbox > > This is necessary as virtualbox throws an import error for a `streamOptimized` > version. The ova for Virtualbox is also bigger due the disk format. > > The default machine settings are: > - 4 CPU Cores with 8GB Ram > > Signed-off-by: Quirin Gylstorff > --- > doc/user_manual.md | 1 + > meta-isar/conf/machine/virtualbox.conf | 16 ++ > meta-isar/conf/machine/vmware.conf | 16 ++ > .../multiconfig/virtualbox-ova-buster.conf | 8 + > meta/classes/virtual-machine-image.bbclass | 104 ++++++++++++ > .../files/virtual-machine-template.ovf.tmpl | 155 ++++++++++++++++++ > .../virtual-machine-template_0.1.bb | 17 ++ > scripts/ci_build.sh | 3 +- > 8 files changed, 319 insertions(+), 1 deletion(-) > create mode 100644 meta-isar/conf/machine/virtualbox.conf > create mode 100644 meta-isar/conf/machine/vmware.conf > create mode 100644 meta-isar/conf/multiconfig/virtualbox-ova-buster.conf > create mode 100644 meta/classes/virtual-machine-image.bbclass > create mode 100644 meta/recipes-devtools/virtual-machine-template/files/virtual-machine-template.ovf.tmpl > create mode 100644 meta/recipes-devtools/virtual-machine-template/virtual-machine-template_0.1.bb > > diff --git a/doc/user_manual.md b/doc/user_manual.md > index a4f3d1d..8b8ac7c 100644 > --- a/doc/user_manual.md > +++ b/doc/user_manual.md > @@ -367,6 +367,7 @@ Isar can generate various images types for specific machine. The type of the ima > - `rpi-sdimg` - A complete, partitioned Raspberry Pi SD card image (default option for the `rpi` machine). > - `wic-img` - A full disk image with user-specified partitions created and populated using the wic tool. > - `ubi-img` - A image for use on mtd nand partitions employing UBI > + - `virtual-machine-image` - A image for use on VirtualBox or VMware I think image type `virtual-machine-image` should be shortened to something like `vm-img`. Motivation: 1) All image types are end on `img` currently. This is useful for quick visual differentiation them from other bbclasses. 2) Image type name is also used in rootfs dir path which is already too long. -- Anton Mikanovich Promwad Ltd. External service provider of ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn, Germany +49 (89) 122 67 24-0 Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov