Repository navigation
Description
Bug Report
-
At what date and time did you most recently experience the problem?
2026-10-30, about 20:30 UTC. Reproduced against Oryx
mainat3dabe3d(2026-10-30). -
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
Offline use, inside a dev container: the
ghcr.io/devcontainers/features/oryxfeature, as used bymcr.microsoft.com/devcontainers/universal(the default GitHub Codespaces image). Host: Apple silicon Mac, Docker Desktop 29.9.2, nativeaarch64Linux VM. The same applies to any native arm64 Linux host (Graviton, Ampere, Raspberry Pi 5, etc.). -
If your repo is publicly available please share its URL:
https://github.com/devcontainers/images/tree/main/src/universal (the image I was building)
-
What happened?
On an arm64 host, Oryx's dynamic install (
oryx prep, ororyx buildwhen the requested SDK version isn't preinstalled) downloads x86-64 SDK builds fromhttps://oryx-cdn.microsoft.io, verifies their checksums, extracts them, and puts them onPATH. The first time the SDK is executed it crashes. Nothing fails at download time, so users only see a confusing crash later in the build. -
What did you expect or want to happen?
Either:
- Oryx downloads an SDK built for the host architecture (
linux/arm64on aarch64), or - until arm64 SDKs exist, Oryx detects the architecture mismatch and fails at download time with a clear message (for example "dynamic install is not supported on aarch64"), instead of installing binaries that cannot run.
- Oryx downloads an SDK built for the host architecture (
-
How can we reproduce it?
On any arm64 Linux machine (or Docker Desktop on Apple silicon) with an arm64 build of the Oryx CLI:
oryx prep --skip-detection --platforms-and-versions nodejs=20.11.0 file /opt/nodejs/20.11.0/bin/node /opt/nodejs/20.11.0/bin/node --version
-
Do you have log output? Please include between the backticks:
$ uname -m
aarch64
$ oryx prep --skip-detection --platforms-and-versions nodejs=20.11.0
Oryx Version: 0.2.0.0+3dabe3d602ade121028a1f80ae8b04ce9b794f5d, Commit: , ReleaseTagName:
Skipping platform detection since '--skip-detection' switch was used...
Version resolved using blob SDK storage provider(CDN).
Falling back to CDN for 'nodejs' version '20.11.0'.
Version '20.11.0' of platform 'nodejs' is not installed. Generating script to install it...
Setting up environment...
Downloading and extracting 'nodejs' version '20.11.0' to '/opt/nodejs/20.11.0'...
Detected image debian flavor: bookworm.
Binaries download done in 2 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: nodejs...
Checksum verification done in 0 sec(s).
image detector file exists, platform is nodejs..
Done setting up environment.
$ file /opt/nodejs/20.11.0/bin/node /opt/php/8.1.30/bin/php
/opt/nodejs/20.11.0/bin/node: ELF 64-bit LSB executable, x86-64
/opt/php/8.1.30/bin/php: ELF 64-bit LSB pie executable, x86-64
$ oryx build ./sample/node
...
Using Node version:
rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
/tmp/BuildScriptGenerator/0f9f4b3ac2f645dcaa8f1874a7fe63e0/build.sh: line 297: 5342 Trace/breakpoint trap node --version
(On native arm64 Linux without Rosetta or QEMU the error is exec format error.)
Root cause
Neither the download path nor the CDN is architecture-aware.
1. The SDK filename has no architecture component. images/installPlatform.sh:
osFlavor=${DEBIAN_FLAVOR:-$OS_FLAVOR}
...
fileName="$PLATFORM_NAME-$osFlavor-$VERSION.tar.gz" # e.g. nodejs-bookworm-20.11.0.tar.gzI found no uname -m / RuntimeInformation.OSArchitecture handling in images/installPlatform.sh, images/__common.sh, or src/BuildScriptGenerator.
2. The CDN has one blob per platform/flavor/version, with no architecture metadata. For example:
GET https://oryx-cdn.microsoft.io/nodejs?restype=container&comp=list&include=metadata&prefix=nodejs-bookworm-20.11.0
<Name>nodejs-bookworm-20.11.0.tar.gz</Name>
<Metadata>
<buildnumber>20240112.1</buildnumber>
<checksum>7681a8d7…</checksum>
<os_type>bookworm</os_type>
<sdk_version>20.11.0</sdk_version>
</Metadata>
os_type is recorded, but no architecture, and there is no arm64 variant of the blob.
Why this matters now
- The Oryx CLI itself already runs fine on arm64. It's a self-contained .NET app.
dotnet publish -r linux-arm64ofBuildScriptGeneratorClibuilds cleanly, andoryx --version,oryx buildwith preinstalled SDKs, andoryx prepall work. The only missing piece is the SDK artifacts. - It's the last Oryx blocker for an arm64
devcontainers/universalimage. The devcontainers Oryx feature hard-coded-r linux-x64. That's fixed in [oryx] - Publish Oryx for the host architecture (arm64 support) devcontainers/features#1759 (verified natively on arm64). With an arm64 Oryx CLI in place, the only remaining arm64 failures in the universal image's test suite are the checks that execute dynamically installed SDKs (oryx buildof the Node sample, and running the Oryx-installed Node 20.11.0 and PHP 8.1.30). Everything else in the suite passes natively on arm64, including .NET, Python, Java, Node, Ruby, PHP, Go, conda with PyTorch and TensorFlow, and Docker-in-Docker. - Demand is long-standing. Support arm64 architecture on Oryx #2133 ("Support arm64 architecture on Oryx", open since 2023-09, 10 👍) asks for general arm64 support. Its most recent comment is an M4 MacBook user failing to pull
devcontainers/universalwithno matching manifest for linux/arm64/v8. This issue is narrower and concrete: the dynamic-install SDK pipeline is the specific component that blocks it. See also [buildpacks] cannot buildnodeon macOS-arm64 #2525 and [buildpacks] build dotnet-amd64 on arm64 machine #2157.
Suggested fix
- Build arm64 SDKs in the existing SDK pipeline (Node, Python, PHP, .NET, etc. all have upstream arm64 support) and publish them under an arch-qualified name, e.g.
nodejs-bookworm-arm64-20.11.0.tar.gz, or with anarchmetadata field. Keep the current names for amd64 so existing consumers don't break. - Have
installPlatform.shand the C# version providers select byuname -m/RuntimeInformation.OSArchitecture. - As an interim step that doesn't depend on the pipeline work: on non-x64 hosts, refuse dynamic install with a clear error rather than installing x86-64 binaries. This alone would turn a confusing runtime crash into an actionable message.
I'm happy to test any arm64 SDK builds or a PR for step 3.
Activity
[universal] - Bump to 6.2.0 and skip Oryx dynamic-install checks on a…