[Error] nvidia-smi not working on Arch container, even with --nvidia flag
- Linguagem predominante
- Go
- Estrelas
- 13k
- Forks
- 541
- Merge médio
- 20h 47min
- PRs com merge (30d)
- 4
Descrição
**Describe the bug**
After making an Arch distrobox with the `--nvidia` flag, running `nvidia-smi` in that container leads to this error:
NVIDIA-SMI couldn't find libnvidia-ml.so library in your system. Please make sure that the NVIDIA Display Driver is properly installed and present in your system.
Please also try adding directory that contains libnvidia-ml.so to your system PATH.
**To Reproduce**
Install Arch Linux as a Distrobox, adding `--nvidia` in your command, and then run `nvidia-smi`.
**Expected behavior**
Something like this:
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.58.03 Driver Version: 595.58.03 CUDA Version: 13.2 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 Quadro T2000 Off | 00000000:01:00.0 Off | N/A |
| N/A 54C P8 3W / 60W | 1MiB / 4096MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
**Logs**
https://pastebin.com/qC4Apap0
**Desktop (please complete the following information):**
- Are you using podman, docker or lilipod?
Podman
- Which version or podman, docker or lilipod?
5.8.2
- Which version of distrobox?
1.8.2.4
- Which host distribution?
Nobara Linux
- How did you install distrobox?
Through the terminal with `sudo dnf install distrobox`.
**Additional context**
`nvidia-smi` works perfectly fine on the host machine. Installing `nvidia-open` drivers in the Arch container does not resolve the issue.
Guia de contribuição
Direção de pesquisa
A issue trata da integração de drivers NVIDIA em contêineres Distrobox no Arch. Comece examinando como a flag --nvidia funciona nos comandos distrobox (provavelmente em scripts de shell). Verifique os caminhos das bibliotecas e as variáveis de ambiente do contêiner em busca de libnvidia-ml.so. Reproduza o bug criando um contêiner Arch com a flag e inspecionando o sistema de arquivos e PATH do contêiner. Procure por testes ou documentação existentes sobre o suporte a NVIDIA.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- docker, shell
- Domínio
- cli, tooling
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 45/100