-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Compatibility for "cross-architecture" installation #18
Comments
I think there's nothings which should stop this from working on a Raspberry Pi in theory, but I don't believe it has been tried before. @Mic92 Just exposed aarch64 for the kexec images https://github.com/nix-community/nixos-images/pull/50/files, but this flake might need adaptions. |
I mainly need time to prepare ci for aarch64... |
Btw if you possess some other arm64 machine that can act as a remote builder, than you can already deploy nixos to a new machine as described here: https://github.com/numtide/nixos-remote#using-your-own-kexec-image This is what I have done for the nix-community oracle builder: https://github.com/nix-community/infra/blob/6e89a59895ef690e2918a5dabbf92241e7464c19/build04/configuration.nix#L42 |
Hi, has there been progress on this? I was hoping to use it to install a new aarch64 machine. I used the aarch64 kexec installer using this command:
but encountered the following error:
|
Iiuc you'd still need an aarch64 (remote) builder for the nixos-anywhere parts, even if you use a pre-built aarch64 installer image. We still don't have CI for aarch64 yet, maybe @Mic92 has plans for it? :) |
Some progress has been made on aarch64 CI: nix-community/nixos-images#87 |
Actually, it worked perfectly after adding the following line to my laptop's config:
I used the nixos-anywhere command I listed in my previous comment to successfully install an Oracle (free tier) aarch64 host. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cross-build-x86-64-ami-on-aarch64-using-nixos-generators/39098/2 |
I am also getting the
when I run this: nix run github:nix-community/nixos-anywhere -- \
--flake .#hetznix01 -i ~/.ssh/id_ed25519 \
--build-on-remote root@<redacted> (line breaks added to both things above to make them easier to read) The thing that has me confused, and may make this a different issue, is I am passing |
For this feature to work, your own local user needs to be a trusted nix user. |
The user is in the list of trusted ones. The one I tried from a NixOS host is in this one: When I tried from macOS, it is in this one: |
Thank you a lot for this !
Is it possible to use this method to remote install Raspberry Pi (and generally different architectures than the client connecting to ssh host to install nixos on) from a x86_64 system?
The text was updated successfully, but these errors were encountered: