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

enroot issue with installation inside #216

Open
lucyzhang0106 opened this issue Oct 30, 2024 · 4 comments
Open

enroot issue with installation inside #216

lucyzhang0106 opened this issue Oct 30, 2024 · 4 comments

Comments

@lucyzhang0106
Copy link

After installing enroot in our dgx box, we tried starting the sqsh file.

enroot start -m /ads_ds3/data/eclair trtllm_2024022700.sqsh

We are able to get inside the container. Then we tried below installing and it failed with error of "read-only file system for my home directory".

Please advise.

luzhang@dc7nvdgxluna001:/ads_ds3/data/eclair$ pip install einops
WARNING: The directory '/home/luzhang/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
Collecting einops
Downloading einops-0.8.0-py3-none-any.whl (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.2/43.2 KB 3.5 MB/s eta 0:00:00
Installing collected packages: einops
ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: '/home/luzhang/.local'

luzhang@dc7nvdgxluna001:/ads_ds3/data/eclair$ df -h /home
Filesystem Size Used Avail Use% Mounted on
fuse-overlayfs 1008G 128K 1008G 1% /

@lucyzhang0106
Copy link
Author

luzhang@dc7nvdgxluna001:$ chmod 777 /home/luzhang
chmod: changing permissions of '/home/luzhang': Read-only file system
luzhang@dc7nvdgxluna001:
$ chmod 777 /home/
chmod: changing permissions of '/home/': Read-only file system
luzhang@dc7nvdgxluna001:$ chmod 777 /
chmod: changing permissions of '/': Read-only file system
luzhang@dc7nvdgxluna001:
$ ps -ax |grep fuse
3425165 pts/21 T 0:00 fuse-shim
3425168 pts/21 S 0:04 squashfuse -f -o uid=27139,gid=27139 /ads_ds3/data/eclair/trtllm_2024022700.sqsh /run/user/27139/enroot/overlay/lower
3425177 pts/21 S 0:00 fuse-overlayfs -f -o lowerdir=/run/user/27139/enroot/overlay/lower,upperdir=/run/user/27139/enroot/overlay/upper,workdir=/run/user/27139/enroot/overlay/work /run/user/27139/enroot/overlay
3428962 pts/21 S+ 0:00 grep --color=auto fuse
luzhang@dc7nvdgxluna001:$ cd /run/user/
bash: cd: /run/user/: No such file or directory
luzhang@dc7nvdgxluna001:
$ cd /run
luzhang@dc7nvdgxluna001:/run$ ls
lock nvidia-fabricmanager nvidia-persistenced

@flx42
Copy link
Member

flx42 commented Oct 30, 2024

Use the --rw argument:

$ enroot start --help
Usage: enroot start [options] [--] NAME|IMAGE [COMMAND] [ARG...]

Start a container and invoke the command script within its root filesystem.
Command and arguments are passed to the script as input parameters.

In the absence of a command script and if a command was given, it will be executed directly.
Otherwise, an interactive shell will be started within the container.

 Options:
   -c, --conf CONFIG    Specify a configuration script to run before the container starts
   -e, --env KEY[=VAL]  Export an environment variable inside the container
       --rc SCRIPT      Override the command script inside the container
   -r, --root           Ask to be remapped to root inside the container
   -w, --rw             Make the container root filesystem writable
   -m, --mount FSTAB    Perform a mount from the host inside the container (colon-separated)

@lucyzhang0106
Copy link
Author

lucyzhang0106 commented Oct 30, 2024 via email

@lucyzhang0106
Copy link
Author

lucyzhang0106 commented Oct 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants