Skip to content

add aarch64 to systems#140

Open
yu-re-ka wants to merge 2 commits intopdtpartners:mainfrom
yu-re-ka:main
Open

add aarch64 to systems#140
yu-re-ka wants to merge 2 commits intopdtpartners:mainfrom
yu-re-ka:main

Conversation

@yu-re-ka
Copy link

@yu-re-ka yu-re-ka commented Jun 9, 2024

This allows nix run .#vm and nix run .#vm-rootless to work on aarch64-linux systems such as Apple Silicon Macs

@RobbieBuxton
Copy link
Collaborator

Thanks for the contribution @yu-re-ka! Just to double check, I assume you've verified locally this works on Apple Silicon?

@yu-re-ka
Copy link
Author

yu-re-ka commented Jun 9, 2024

Ran the following tests successfully:

  • snapshotter
  • push-n-pull
  • kubernetes
  • k3s-external

Failing tests:

  • k3s (remote_image.go:167] "PullImage from image service failed" err="rpc error: code = Unimplemented desc = unknown service containerd.services.transfer.v1.Transfer" image="nix:0/nix/store/s3xs76345nl8pvcnaf3q2xk242j8prh2-nix-image-redis.tar:latest")
  • k3s-rootless (same as k3s)
  • gvisor (marked as broken)

on aarch64-linux

@RobbieBuxton
Copy link
Collaborator

RobbieBuxton commented Jun 10, 2024

I think there is an issue with the test runners atm, but I verified all the tests are still passing for x86 on my machine. It might be a good idea to have a table on the README showing support for different platforms now that we have more than one (i.e no gvisor or k3s on Apple Silicon) @elpdt852? Otherwise happy to merge!

@RobbieBuxton RobbieBuxton requested a review from elpdt852 June 10, 2024 20:51
flake.nixosConfigurations = {
vm = nixosSystemFor "x86_64-linux" ./vm.nix;
vm-rootless = nixosSystemFor "x86_64-linux" ./vm-rootless.nix;
vm-x86_64-linux = nixosSystemFor "x86_64-linux" ./vm.nix;
Copy link
Collaborator

@elpdt852 elpdt852 Jun 14, 2024

Choose a reason for hiding this comment

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

I think we should do something like x86_64-linux.vm.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah I think this is nicer, otherwise I think this is ready to merge!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Bump for @yu-re-ka, sorry if you've already seen this. Not sure if GitHub automatically notifies for comments.

@yu-re-ka
Copy link
Author

yu-re-ka commented Jun 14, 2024 via email

@RobbieBuxton RobbieBuxton added the ok-to-test Runs NixOS tests label Aug 12, 2024
@elpdt852
Copy link
Collaborator

Regarding aarch64, I only want to merge this once its covered by CI. Will have to see if aarch64 github action workers are available.

@yuyuyureka
Copy link

Hi, I have rebased and added aarch64 to the build workflow matrix.

@yuyuyureka
Copy link

I don't know about larger runners with kvm support (the equivalent to the "nix-snapshotter-runner") to run the NixOS / integration tests.

@alexkirsz
Copy link

Hey @elpdt852, any chance this could be merged into main? Would be greatly appreciated 🙂

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

Labels

ok-to-test Runs NixOS tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants