diff options
| author | Alexander Potapenko <glider@google.com> | 2024-10-21 11:04:15 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2024-10-21 11:10:43 +0000 |
| commit | 14517542a3bd08a1b323746361cf4d09eedeed9e (patch) | |
| tree | 051397194aca81782d70bdaa896ba21bfbf461f5 /tools/docker | |
| parent | cd6fc0a3018e5d793bdcca6530622493f5e88307 (diff) | |
tools/docker: add QEMU packages to ARM64 docker container
ARM64 instances may require running QEMU, so add them to the container.
Do not install packages for MIPS/PPC/s390, as we currently do not need them.
Also fix a minor nit in the comment: Debian Bookworm seems to be providing
QEMU 7.2, not 7.4.
Diffstat (limited to 'tools/docker')
| -rw-r--r-- | tools/docker/syzbot/Dockerfile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/docker/syzbot/Dockerfile b/tools/docker/syzbot/Dockerfile index b40213ef5..fff23e3d5 100644 --- a/tools/docker/syzbot/Dockerfile +++ b/tools/docker/syzbot/Dockerfile @@ -57,15 +57,19 @@ RUN mkdir -p /usr/grte/v5/bin && ln -s /usr/bin/python3 /usr/grte/v5/bin/python2 RUN sh -c 'curl -o /usr/local/bin/bazel https://releases.bazel.build/7.1.2/release/bazel-7.1.2-linux-$(uname -m | sed s/aarch64/arm64/) && chmod ugo+x /usr/local/bin/bazel' # Install qemu from the backports. -# The currently stable version (7.4) cannot properly run arm64-MTE kernels. +# The currently stable version (7.2) cannot properly run arm64-MTE kernels. RUN add-apt-repository "deb http://deb.debian.org/debian bookworm-backports main" RUN DEBIAN_FRONTEND=noninteractive apt-get install -t bookworm-backports -y -q \ # This is required to run alien arch binaries in pkg/cover tests: qemu-user + +# QEMU packages required to run x86/arm64 kernels - install them for both x86 and arm64. +RUN DEBIAN_FRONTEND=noninteractive apt-get install -t bookworm-backports -y -q \ + qemu-utils qemu-system-misc qemu-system-x86 qemu-system-arm qemu-system-aarch64 + +# Install QEMU packages for other arches on x86 machines only. RUN test "$(uname -m)" != x86_64 && exit 0 || \ DEBIAN_FRONTEND=noninteractive apt-get install -t bookworm-backports -y -q \ - # These are required to run foreign arch kernels: - qemu-utils qemu-system-misc qemu-system-x86 qemu-system-arm qemu-system-aarch64 \ qemu-system-s390x qemu-system-mips qemu-system-ppc # Install gcloud https://cloud.google.com/sdk/docs/install#deb. |
