From fb7485788fd7db3b95f4e7fc9bfdfe9ef38e383f Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Thu, 29 Sep 2022 10:51:31 +0100 Subject: [PATCH] automation: Information about running containers for a different arch Adding pointer to 'qemu-user-static'. Signed-off-by: Anthony PERARD Reviewed-by: Michal Orzel Acked-by: Stefano Stabellini Release-acked-by: Henry Wang --- 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). -- 2.39.5