[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/9] automation: Add Arm containers to containerize script


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Fri, 23 Sep 2022 18:54:20 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/84mrTy8Gz/O+FbO4cOOrEwPyqAT29gEBaIaLH50kY0=; b=mGF65qb6CVrurOLlM9kdDYXd/PfiSnkqwTefNCrUWntRRsY+8amkS7Qqbz7ZNqBVKZscL5iCH+kjY/aD0x+fkgu/ypu5LC5dfWpXAn1DRFQPS0kjef9EFRduzeVxXYNM5TDSBtNWMhQ0N8gf5PemG0Cu9BE9PVeJt0KMQErDWlu0hHmWmr5FIoi/TOiT2+61r838EwHSvfL9oh1Xw3roo8zvjei+oEGWcbP1gR4AXFPdSmuTXNqqCjyjCEUBRk5oUr+eQzMJEerOhS2Ri3K+EbcSixaTDjdkJ6cZWBz8OkVG97+DRnPl0LP87zZUsvwKlPgd5zMiGlBeOGrJyWyKzw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m8v1/a5MQxb6ogjPBdle/gCsiDoviw+B9ZIQPcHNbovsfqtFT3vVk+Z9xISBwYjaSaglaRfvu0HF13WzV9GbzY6vTy1wCpmn/nIWDCCNnsuf5zLTsIF7IX7/NUcMpL12i/E/bNdZulk/glVDnUxYqfrq+ZRrUIVedopqmRTsovx2ctw2CR6iObvJS8znFE7q/YGL0PasAdC6IUZWCG/u86G0MaMjEURXoDbQDFQWv9vyLn+072xlv3NhdtY+yxuZYoysmi4y9b01sDVRdMivLxkHnjKFMatTJo0VJgNpNxIJ3cPp8wdip3oKstZbGzh89z+6iUpGPULEfE/EBcLDKQ==
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Fri, 23 Sep 2022 16:54:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Anthony,

On 23/09/2022 15:56, Anthony PERARD wrote:
> 
> 
> On Thu, Sep 22, 2022 at 03:40:53PM +0200, Michal Orzel wrote:
>> Script automation/scripts/containerize makes it easy to build Xen within
>> predefined containers from gitlab container registry. However, it is
>> currently not possible to use it with Arm containers because they are not
>> listed in the script. Populate the necessary entries.
> 
> FYI, those entry are just helper/shortcut/aliases, you can use any
> arbitrary container with the script, it just more annoying.
> 
> Your patch here allows to write:
>     CONTAINER=unstable-arm64v8 automation/scripts/containerize
> but you could write the following instead, for the same result:
>     CONTAINER=registry.gitlab.com/xen-project/xen/debian:unstable-arm64v8 
> automation/scripts/containerize
> 
> I wonder if the script could select the right container base on the
> architecture of the host, because "alpine" and "alpine-arm64v8" will not
> both work on the same machine. It might be nice to just choose "alpine"
> and the script would select the x86 or arm container automagically. Just
> an idea, no need to do anything about it.
I'm not in favor of adding the automatic selection based on the host.
The reason is that on x86 you can run both x86 and e.g. Arm containers.
You just need to use register qemu-user-static [1] to perform emulation.
This is something widely used and I use that to test Arm images/containers on 
x86 host.
So you can run both alpine and alpine-arm64v8 on the same machine.

> 
> (patch is fine otherwise, just the patch description is a bit
> misleading)
> 
> Cheers,
> 
> --
> Anthony PERARD

~Michal

[1] https://github.com/multiarch/qemu-user-static



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.