Skip to content

Feature Request: Support for LoongArch (loong64) architecture #13641

Closed

Description

@xuxiaowei-com-cn

What is the problem you're trying to solve

containerd currently does not provide official support for the LoongArch (also known as Loongson, loong64) architecture. LoongArch is a domestic CPU architecture developed in China, and it has gained significant traction in the domestic ecosystem — including Loongson 3A5000/3A6000 series processors, the Loongnix and UOS operating systems, and an increasing number of deployments in data centers, cloud environments, and edge computing scenarios.

Without official linux/loong64 support in containerd, users on LoongArch hardware face the following difficulties:

  • No prebuilt binary releases: Users must compile containerd and its dependencies (like runc) from source on LoongArch hosts, which is time-consuming, error-prone, and not feasible for production environments.
  • No CI coverage: There is no automated testing on LoongArch, so regressions that break LoongArch compatibility may go unnoticed.
  • Missing multi-arch image manifests: Official container images cannot be pulled natively on LoongArch hosts without manually building and tagging architecture-specific images.
  • Ecosystem fragmentation: Downstream projects (Kubernetes, K3s, etc.) that depend on containerd cannot easily support LoongArch without containerd supporting it first.

Describe the solution you'd like

I would like containerd to officially support the linux/loong64 platform as a first-class architecture, including:

  1. Binary releases: Provide prebuilt containerd (and related binaries like containerd-shim-runc-v2, ctr, etc.) for linux/loong64 as part of the GitHub Releases artifacts.

  2. Multi-arch container images: Build and push multi-arch container images (e.g., docker.io/library/containerd:latest) that include a linux/loong64 manifest, allowing native image pulls on LoongArch machines.

  3. CI pipeline: Add a LoongArch build and smoke-test stage to the project's CI (GitHub Actions with QEMU user-mode emulation or a self-hosted LoongArch runner) to catch regressions early.

  4. Documentation: Add LoongArch to the list of supported architectures in the project README and installation guide, with links to the appropriate binary/image artifacts.

  5. Go compilation target: Ensure the build system and Makefile recognize GOARCH=loong64 and GOOS=linux as a valid compilation target.

Go has supported GOARCH=loong64 since Go 1.21 (as a first-class port), so the compiler and standard library are ready.

Additional context

Relevant links

Status of dependencies

Dependency LoongArch Support Notes
Go ✅ First-class Supported since Go 1.21
containerd ❌ Not yet This request

Use cases

  • Cloud-native infrastructure on domestic CPUs: Government and enterprise customers in China are increasingly adopting LoongArch servers; they need containerd as the container runtime for Kubernetes clusters.
  • Edge computing: LoongArch-based edge devices need lightweight container runtimes like containerd.
  • Development and CI/CD: Developers targeting LoongArch need prebuilt binaries for local development and CI testing.

Potential implementation considerations

  • Go 1.21+ is required for loong64 support; the containerd build system should ensure the minimum Go version is met.
  • QEMU 7.1+ provides qemu-loongarch64 for user-mode emulation, which can be used in GitHub Actions for cross-compilation testing.
  • The Linux kernel has supported LoongArch since 5.19 (upstream); LoongArch-based distributions (Loongnix, UOS) typically ship with kernel >= 5.10 (with backported LoongArch patches).
  • If self-hosted CI runners are needed, Loongson hardware (e.g., 3A6000-based machines) running Loongnix or a LoongArch-compatible Linux distribution can be configured as GitHub Actions runners.

Activity

  1. added
    area/toolchain
    on Jun 22, 2026
  2. samuelkarp commented on Jun 22, 2026

    @samuelkarp
    Member

    The only platforms with first-class support in containerd are:

    • Linux on amd64
    • Linux on arm64
    • Windows on amd64

    We currently produce release builds of these other platforms, but have no testing infrastructure for them and they are supported on a best-effort basis only:

    • Linux on ppc64le
    • Linux on riscv64
    • Linux on s390x

    We have test compilation for these other platforms, but do not have further testing infrastructure, so these are even less of a best-effort basis:

    • Linux on arm v7
    • Linux on arm v5
    • FreeBSD on amd64
    • FreeBSD on arm64
    • Windows on arm64

    Our Linux releases are primarily tested on Ubuntu via GitHub actions. While we have VM-based tests for Fedora and Alma Linux, the VM infrastructure is particularly unreliable and slow.

    I don't think it'd be a problem to add test compilation for loong64. This at least would make sure we don't break compilation as we continue to develop containerd. However, I'm iffy about producing release builds without either (a) a way to test ourselves or (b) someone invested in providing a degree of testing and support for the platform (i.e., IBM for ppc64le and s390x).

    I think adding additional VM-based tests would only exacerbate problems we already have today, so I don't think that's currently a good idea. We do not have any Loongson hardware available or anyone to administer self-hosted runners today, so I also don't think that's currently a good option.

  3. xuxiaowei-com-cn commented on Jun 22, 2026

    @xuxiaowei-com-cn
    ContributorAuthor

    Thank you for the prompt and detailed response, @samuelkarp.

    We fully understand the platform support policy and the concerns you raised. We are very happy to accept your proposal to add test compilation for loong64. This is a great first step to ensure compatibility.

  4. xuxiaowei-com-cn commented on Jun 23, 2026

    @xuxiaowei-com-cn
    ContributorAuthor

    @samuelkarp

    Dear team, PR #13642 has been approved.

    Please note that this PR does not include a release. Should any adjustments be required, please do not hesitate to reach out to me, and I will handle them in a timely manner.

  5. samuelkarp commented on Jun 23, 2026

    @samuelkarp
    Member

    Approved by who? There are no reviews on that PR, much less approvals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/toolchainkind/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions