-
Notifications
You must be signed in to change notification settings - Fork 2k
nvidia-smi executable file not found in $PATH #1668
Comments
Hi @carlos-garcia-returnly. Your Would it be possible to do the following:
Another thing to try:
Note that this would append to the log(s) ( |
@elezar as you said those logs were from different cli, sorry. I reinstalled everything and still have the same error. Here are all the information for debugging purposes:
AND
Still producing the error: |
Thanks for the additional logs. The
whereas the earlier
Where is Since you are running the docker command as
|
The output of Edit: Running without sudo yields same error. |
seems nvidia-smi is none in the PATHs directive: not in /usr/bin/nvidia-smi either. PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
echo $PATH howeverroot@0d6fccc75e10:/# ls /usr/local/nvidia/bin/ This is on: nvidia/cuda:11.0.3-base-ubuntu20.04 |
@TonyTromp I assume this is in a docker container? How was docker installed? I see that the |
The error put me off-guard, as this is typical when the Docker OCI can not find the binairy in the PATH directive. However the root cause was all on me, i didnt release a VFIO driver and thus there was no GPU to be passed through. |
Closing this as done following the last comment. If there are still problems, please consider opening a new issue against https://github.com/NVIDIA/nvidia-container-toolkit. |
Hi,
1. Issue or feature description
I'm unable to reproduce the Nvidia Container Toolkit installation guide. I have the Nvidia driver installed and
nvidia-smi
works in my host computer, but it doesn't work inside the nvidia/cuda container.2. Steps to reproduce the issue
I followed all the installation steps but when I run
sudo docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi
it throws the following error:docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "nvidia-smi": executable file not found in $PATH: unknown.
3. Information to attach (optional if deemed irrelevant)
nvidia-container-cli -k -d /dev/tty info
uname -a
Linux ip-10-20-11-131 5.10.112-108.499.amzn2.x86_64 #1 SMP Wed Apr 27 23:39:40 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
nvidia-smi -a
docker version
Docker version 20.10.17, build 100c701
nvidia-container-cli -V
docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi
Thanks in advance!
The text was updated successfully, but these errors were encountered: