Skip to content

Conversation

@rgarcia
Copy link
Contributor

@rgarcia rgarcia commented Dec 22, 2025

Summary

Add support for arm64 architecture to enable running hypeman on ARM-based systems.

Changes

  • lib/system/versions.go: Map arm64 to aarch64 in GetArch() for kernel/binary paths
  • lib/vmm/binaries.go: Map arm64 to aarch64 in cloud-hypervisor binary extraction
  • lib/images/oci.go: Add platform-specific OCI image pulling with remote.WithPlatform() to correctly pull the right architecture for multi-arch container images
  • go.mod: Add golang/protobuf dependency for gRPC compatibility

Testing

  • Tested on arm64 ubuntu vm running via UTM on mac os

Note

Enables running on ARM by aligning architecture naming and ensuring OCI pulls resolve to the host platform.

  • Map arm64aarch64 in system.GetArch() and vmm.ExtractBinary() for kernel and Cloud Hypervisor binary paths
  • Add platform-aware OCI operations in lib/images/oci.go via remote.WithPlatform() and currentPlatform(); inspectManifest now returns the host-specific manifest digest
  • Add github.com/golang/protobuf v1.5.4 and adjust protobuf deps in go.mod

Written by Cursor Bugbot for commit 0c85a3c. This will update automatically on new commits. Configure here.

Add support for arm64 architecture:

- Map arm64 to aarch64 in GetArch() for kernel/binary paths
- Map arm64 to aarch64 in cloud-hypervisor binary extraction
- Add platform-specific OCI image pulling with remote.WithPlatform()
  to correctly pull the right architecture for multi-arch images
- Add golang/protobuf dependency for grpc compatibility
@rgarcia rgarcia requested a review from sjmiller609 December 23, 2025 00:03
Copy link
Collaborator

@sjmiller609 sjmiller609 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can consider adding a self hosted arm64 builder for running the tests on arm64 if we want, but that seems not worth it yet

@rgarcia rgarcia merged commit 8328365 into main Dec 23, 2025
4 checks passed
@rgarcia rgarcia deleted the feature/multi-arch-support branch December 23, 2025 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants