From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Cc: qemu-devel@nongnu.org,
"Richard Henderson" <richard.henderson@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Subject: Re: [PATCH 1/7] tests/tcg/meson.build: force use of linux/amd64 platform for containers
Date: Tue, 22 Sep 2026 19:10:29 +0100 [thread overview]
Message-ID: <arLElaXA4vLEPL6h@redhat.com> (raw)
In-Reply-To: <20260921231458.3369-2-pierrick.bouvier@oss.qualcomm.com>
On Mon, Sep 21, 2026 at 11:14:52PM +0000, Pierrick Bouvier wrote:
> On hosts != x64_64, we detect if host can run amd64 containers (usually
> through qemu-user-binfmt). If not, we deactivate container support.
>
> We could technically stop here and force container engine to use this
> platform. Since existing base image (docker.io/library/debian:13-slim)
> is multi platforms, container engine will enable this variant by
> default.
>
> Now the problem is that if user reuses this image for their own
> Dockerfiles, they will run into unpleasant surprise that now, their
> container engine is using x86_64 variant by default, on any host.
>
> So, in next commit, we'll change base image we use to x86_64 variant,
> which has a single platform: linux/amd64. This ensures we don't generate
> any unwanted side effect when building our images.
>
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
> tests/tcg/meson.build | 19 ++++++++++++++-----
> 1 file changed, 14 insertions(+), 5 deletions(-)
>
> diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build
> index 75f0a52fd22..4cf4865461e 100644
> --- a/tests/tcg/meson.build
> +++ b/tests/tcg/meson.build
> @@ -81,6 +81,7 @@ tcg_tests_summary += {'gdb': gdb}
>
> docker_supported = false
> container_command = false
> +docker_platform = ['--platform', 'linux/amd64']
> if get_option('containers')
> if get_option('container_command') != ''
> # make sure command is working
> @@ -99,6 +100,15 @@ if get_option('containers')
> container_command]
> endif
> endif
> +
> + if docker_supported
> + docker_supported = run_command([docker_wrapper, 'run', '--',
> + docker_platform,
> + 'docker.io/amd64/debian:13-slim',
> + '/bin/true'],
> + check: false).returncode() == 0
IIUC, this is checking that podman/docker is capable of running
(potentially) foreign-arch containers ? ie that qemu-user is
setup on the host. If so, would be worth a short comment here.
> + tcg_tests_summary += {'x86_64 container support': docker_supported}
> + endif
> endif
> tcg_tests_summary += {'container command': container_command}
> if get_option('container_registry') != ''
None the less:
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
next prev parent reply other threads:[~2026-09-22 18:11 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 23:14 [PATCH 0/7] tests/tcg: use x86_64 cross containers on all host architectures Pierrick Bouvier
2026-09-21 23:14 ` [PATCH 1/7] tests/tcg/meson.build: force use of linux/amd64 platform for containers Pierrick Bouvier
2026-09-22 4:34 ` Philippe Mathieu-Daudé
2026-09-22 18:10 ` Daniel P. Berrangé [this message]
2026-09-22 18:17 ` Pierrick Bouvier
2026-09-21 23:14 ` [PATCH 2/7] tests/docker/dockerfiles: refresh images Pierrick Bouvier
2026-09-22 4:29 ` Philippe Mathieu-Daudé
2026-09-22 16:15 ` Pierrick Bouvier
2026-09-22 16:41 ` Philippe Mathieu-Daudé
2026-09-22 16:54 ` Daniel P. Berrangé
2026-09-22 17:16 ` Pierrick Bouvier
2026-09-22 17:35 ` Daniel P. Berrangé
2026-09-22 17:41 ` Philippe Mathieu-Daudé
2026-09-22 17:41 ` Pierrick Bouvier
2026-09-22 17:42 ` Pierrick Bouvier
2026-09-22 17:44 ` Daniel P. Berrangé
2026-09-22 17:46 ` Pierrick Bouvier
2026-09-22 17:54 ` Pierrick Bouvier
2026-09-21 23:14 ` [PATCH 3/7] tests/lci/refresh: add parameter to override container registry Pierrick Bouvier
2026-09-22 4:31 ` Philippe Mathieu-Daudé
2026-09-22 17:55 ` Daniel P. Berrangé
2026-09-22 18:04 ` Daniel P. Berrangé
2026-09-22 18:22 ` Pierrick Bouvier
2026-09-22 18:29 ` Daniel P. Berrangé
2026-09-22 18:33 ` Pierrick Bouvier
2026-09-22 19:01 ` Daniel P. Berrangé
2026-09-22 19:03 ` Pierrick Bouvier
2026-09-23 12:13 ` Daniel P. Berrangé
2026-09-23 14:00 ` Pierrick Bouvier
2026-09-21 23:14 ` [PATCH 4/7] tests/docker/dockerfiles: use docker.io/amd64 for tcg-tests containers Pierrick Bouvier
2026-09-22 4:31 ` Philippe Mathieu-Daudé
2026-09-21 23:14 ` [PATCH 5/7] tests/docker/dockerfiles/debian-all-test: remove arch specific bits Pierrick Bouvier
2026-09-21 23:14 ` [PATCH 6/7] tests/tcg/meson.build: remove cc_docker_host_arch Pierrick Bouvier
2026-09-21 23:14 ` [PATCH 7/7] tests/tcg/loongarch64/system: deactivate loongarch64-softmmu-memory (hang on aarch64 host) Pierrick Bouvier
2026-09-23 18:59 ` [PATCH 0/7] tests/tcg: use x86_64 cross containers on all host architectures Pierrick Bouvier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=arLElaXA4vLEPL6h@redhat.com \
--to=berrange@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=philmd@oss.qualcomm.com \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.