[XEN PATCH v2] automation: Information about running containers for a different arch

Anthony PERARD posted 1 patch 1 year, 7 months ago
Test gitlab-ci failed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20220929095131.61034-1-anthony.perard@citrix.com
automation/build/README.md | 13 +++++++++++++
1 file changed, 13 insertions(+)
[XEN PATCH v2] automation: Information about running containers for a different arch
Posted by Anthony PERARD 1 year, 7 months ago
Adding pointer to 'qemu-user-static'.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---

Notes:
    v2:
    - reword to point out that it's an x86 thing

 automation/build/README.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/automation/build/README.md b/automation/build/README.md
index 00305eed03..4cc1acb6b4 100644
--- a/automation/build/README.md
+++ b/automation/build/README.md
@@ -102,3 +102,16 @@ make -C automation/build suse/opensuse-tumbleweed PUSH=1
 
 [registry]: https://gitlab.com/xen-project/xen/container_registry
 [registry help]: https://gitlab.com/help/user/project/container_registry
+
+
+Building/Running container for a different architecture
+-------------------------------------------------------
+
+On a x86 host, it is possible to build and run containers for other arch (like
+running a container made for Arm) with docker taking care of running the
+appropriate software to emulate that arch. For this, simply install the package
+`qemu-user-static`, and that's it. Then you can start an Arm container on x86
+host like you would start an x86 container.
+
+If that doesn't work, you might find some information on
+[multiarch/qemu-user-static](https://github.com/multiarch/qemu-user-static).
-- 
Anthony PERARD
Re: [XEN PATCH v2] automation: Information about running containers for a different arch
Posted by Michal Orzel 1 year, 7 months ago
Hi Anthony,

On 29/09/2022 11:51, Anthony PERARD wrote:
> 
> 
> Adding pointer to 'qemu-user-static'.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

Reviewed-by: Michal Orzel <michal.orzel@amd.com>

~Michal
Re: [XEN PATCH v2] automation: Information about running containers for a different arch
Posted by Stefano Stabellini 1 year, 7 months ago
On Thu, 29 Sep 2022, Michal Orzel wrote:
> Hi Anthony,
> 
> On 29/09/2022 11:51, Anthony PERARD wrote:
> > 
> > 
> > Adding pointer to 'qemu-user-static'.
> > 
> > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> 
> Reviewed-by: Michal Orzel <michal.orzel@amd.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>
RE: [XEN PATCH v2] automation: Information about running containers for a different arch
Posted by Henry Wang 1 year, 7 months ago
Hi Anthony,

> -----Original Message-----
> From: Anthony PERARD <anthony.perard@citrix.com>
> Subject: [XEN PATCH v2] automation: Information about running containers
> for a different arch
> 
> Adding pointer to 'qemu-user-static'.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

I didn't see the for-4.17 tag in the title but I assume you want this
patch to go into the release since I am in the CC. Since this is a pure doc
change and everyone can be benefited from this, so if this patch is
acked/reviewed by CI maintainers, feel free to add my:

Release-acked-by: Henry Wang <Henry.Wang@arm.com>

Kind regards,
Henry

> ---
> 
> Notes:
>     v2:
>     - reword to point out that it's an x86 thing
> 
>  automation/build/README.md | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/automation/build/README.md b/automation/build/README.md
> index 00305eed03..4cc1acb6b4 100644
> --- a/automation/build/README.md
> +++ b/automation/build/README.md
> @@ -102,3 +102,16 @@ make -C automation/build suse/opensuse-
> tumbleweed PUSH=1
> 
>  [registry]: https://gitlab.com/xen-project/xen/container_registry
>  [registry help]: https://gitlab.com/help/user/project/container_registry
> +
> +
> +Building/Running container for a different architecture
> +-------------------------------------------------------
> +
> +On a x86 host, it is possible to build and run containers for other arch (like
> +running a container made for Arm) with docker taking care of running the
> +appropriate software to emulate that arch. For this, simply install the
> package
> +`qemu-user-static`, and that's it. Then you can start an Arm container on
> x86
> +host like you would start an x86 container.
> +
> +If that doesn't work, you might find some information on
> +[multiarch/qemu-user-static](https://github.com/multiarch/qemu-user-
> static).
> --
> Anthony PERARD