Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add aarch64 to systems #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add aarch64 to systems #140

wants to merge 1 commit into from

Conversation

yu-re-ka
Copy link
Contributor

@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
Contributor 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!

@@ -64,8 +64,10 @@ in {
```
*/
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
Contributor 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.

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.

3 participants