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

NixOS / CPU Type - Intel #54

Closed
c4710n opened this issue Mar 26, 2023 · 7 comments
Closed

NixOS / CPU Type - Intel #54

c4710n opened this issue Mar 26, 2023 · 7 comments
Labels
f/machines Affects Linux machine users t/improvement Minor improvement

Comments

@c4710n
Copy link

c4710n commented Mar 26, 2023

I'm using a M1 MBP, and NixOS CPU Type - Intel is not available for now.

I noticed the NixOS card on roadmap has been marked as done. It that(NixOS Intel) still on the plan?

Screenshot 2023-03-27 at 07 43 45

@c4710n c4710n added the t/feature New feature label Mar 26, 2023
@c4710n c4710n changed the title NixOS CPU Type - Intel is not available NixOS / CPU Type - Intel Mar 26, 2023
@kdrag0n
Copy link
Member

kdrag0n commented Mar 27, 2023

None of the current x86 emulators for Linux can run NixOS correctly on ARM. NixOS tries to use seccomp-bpf, which Rosetta and alternatives don't support.

If you want to run x86 programs in NixOS, I'd recommend doing it like this, but it has its own issues with Rosetta: NixOS/nixpkgs#209242 (comment)

Looks like it's possible to disable seccomp by modifying nix.conf so I'll leave this open, but it's not planned.

@kdrag0n kdrag0n added the f/machines Affects Linux machine users label May 3, 2023
@jpittis
Copy link

jpittis commented Jul 23, 2023

Do we have any sense if any x86 emulators will support eBPF in the future?

For context, I'm currently using eBPF with OrbStack on aarch64 and it works great! I'm looking forward to the day I'll also be able to do that on amd64.

@kdrag0n
Copy link
Member

kdrag0n commented Jul 24, 2023

@jpittis I don't think it's possible to support eBPF correctly. Tracing will be broken due to differences in register sets, syscall numbers, etc. that can't be reliably translated without manually disassembling and inspecting bytecode The same applies to seccomp (cBPF).

@kdrag0n
Copy link
Member

kdrag0n commented Jul 24, 2023

OrbStack can now run x86 NixOS binaries correctly under Rosetta, so I'd highly recommend using NixOS' native multi-architecture support instead.

@xukai92
Copy link

xukai92 commented Aug 27, 2023

how does "NixOS' native multi-architecture support" work? is it what's suggested in #437?

@kdrag0n
Copy link
Member

kdrag0n commented Aug 27, 2023

@xukai92 Like this, with an x86_64 nixpkgs source: NixOS/nixpkgs#209242 (comment)

#437 is for building packages.

@kdrag0n kdrag0n added t/improvement Minor improvement and removed t/feature New feature labels Dec 20, 2023
@kdrag0n
Copy link
Member

kdrag0n commented Feb 28, 2024

Closing as infeasible for now. NixOS has great multi-arch support so I'd recommend using that instead.

@kdrag0n kdrag0n closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f/machines Affects Linux machine users t/improvement Minor improvement
Projects
None yet
Development

No branches or pull requests

4 participants