-
Notifications
You must be signed in to change notification settings - Fork 101
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
Auto install sudo #144
Comments
|
My goal is that one or more users can log into (via ssh) an enroot container started by slurm. I had read that remap root does not work with SSH: And in tests, got the error message myself.
And that's where I am now. |
Yeah that's not going to work, the whole point of Enroot (and Pyxis) is to have containers be simple chroot for a given user, not a system container where multiple users can log in. What you could do is start a separate jobstep in the job using the same container filesystem with |
One user would be fine for now, this would allow connecting their tools / IDE into the container. |
Is it possible to switch inside a container with "--container-remap-root" from a root user to a normal user or the other way around with "--no-container-remap-root" that would allow user to install packages but execute ssh on user level without restarting the container. |
No it needs a different process, using multiple srun with |
Hi,
in our environment, most if not all people need interactive access to the container. For this reason, remap_root needs to be disabled to allow ssh access for e.g. IDEs. As soon as images are created manually, this is not a problem, but if some are to be used directly from the registry there are:
srun -c 1 -p GPU1 --gres=gpu:1 --container-image=nvcr.io/nvidia/cuda:12.0.0-devel-ubuntu22.04 --pty bash
Turns out that you can't install packages with normal user privileges because most images don't have sudo installed.
Is there an easier way via slurm pre script or enroot hook to automatically install sudo for all containers and/or give the user the appropriate privileges to do so?
Cheers
Dominik
The text was updated successfully, but these errors were encountered: