-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cannot install in an LXD container without workarounds: error: mounting /proc: Operation not permitted
#5460
Comments
error: mounting /proc: Operation not permitted
I marked this as stale due to inactivity. → More info |
Still an issue in 2.8.0. |
Still an issue in 2.11.0. I'm trying to install Nix in |
Same issue on RHEL |
Tried installing Nix in an Ubuntu LXD container on a Ubuntu host, but got the same issue. Is this even a NixOS issue? (edit: Nonetheless, the workaround works: |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/how-to-run-the-nix-installer-silently-from-a-shell-script/25633/1 |
I am aware of two workarounds:
sudo umount /proc/sys/fs/binfmt_misc /proc/sys/kernel/random/boot_id
in the container.lxc launch -c security.nesting=true
.These workarounds should not be necessary. The installer should detect this problem and either correct it or print a helpful message.
The text was updated successfully, but these errors were encountered: