Open cfhammill opened 2 years ago
Hi @cfhammill! I think this is because it's using unsquashfs from the system not nixpkgs, would you be able to test my branch?
Sure thing. I'm testing on a different computer using a linux vm, without switching to your branch I'm now getting
singularity exec alpine.sif bash
ERROR : No setuid installation found, for unprivileged installation use: ./mconfig --without-suid
this is more along the lines of what I was expecting when I tried on the other machine - possibly a different issue. With sudo, and creating the directory /var/singularity/mnt/session I was able to get a shell inside the container.
A possibly important detail, on the system above nix was installed using nix-user-chroot, could this be related?
I will try your branch on the other machine likely early next week
The suid error is expected as it's not possible to have suid binaries in the nix store. We patch around this in the NixOS singularity module using some wrappers, on other systems there's not much we can do. singularity-tools
does work on other systems (without root) as it uses a VM to build the image.
I don't think the nix-user-chroot will change anything.
Describe the bug
I successfully installed singularity on a non-nixOS linux system, then I went to try a demonstration container, a small alpine linux container
https://cloud.sylabs.io/library/_container/5baba5e594feb900016ea41c
I tried to open the container with
but failed to run the container, citing conflicting glibc versions
I tried to fix with
LD_PRELOAD
, but that can only fix one of the two versions, for some reason it appears to require both GLIBC_2.33 and 2.32.Steps To Reproduce
Expected behavior
Should start a shell inside the container
Additional context
Add any other context about the problem here.
Notify maintainers
@jbedo (hi!)
Metadata