NVIDIA / NVIDIA/nvidia-container-toolkit

Add ability to remove old configurations to not litter hanging symlinks

Open
#1,156 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

lifecycle/frozen needs-triage question
Dominant language
Go
Stars
4.6k
Forks
592
Avg merge
1d 33m
Merged PRs (30d)
61

Description

I use Incus to add a GPU to a container, but doing so creates a symlink over time for each driver version on each upgrade.

These broken symlinks make ldconfig spam every single file each time it is ran.

I raised this with Incus, but Incus claims there is no clean-up mechanism, so I would like for one to be added if possible.

(1/1) upgrading ollama-cuda                                                                                                                                               [----------------------------------------------------------------------------------------------------------] 100%
ldconfig: File /usr/lib/libnvidia-ml.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-cfg.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libcuda.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libcudadebugger.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-opencl.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-gpucomp.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-ptxjitcompiler.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-allocator.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-pkcs11.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-pkcs11-openssl3.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-nvvm.so.570.153.02 is empty, not checked.

[0] # ls -lah /usr/lib/libnvidia-ml.so.* # <ls> aliased to «lsd»
lrwxrwxrwx root   root    25 B  Sun Jun  8 12:53:41 2025  /usr/lib/libnvidia-ml.so.1 ⇒ libnvidia-ml.so.575.57.08
.rwxr-xr-x root   root     0 B  Tue Jun  3 16:01:30 2025  /usr/lib/libnvidia-ml.so.570.153.02
.rwxr-xr-x nobody nobody 2.2 MB Sun Jun  1 15:22:58 2025  /usr/lib/libnvidia-ml.so.575.57.08

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Incus GPU configuration creates versioned library symlinks and how the NVIDIA container toolkit could identify obsolete entries. Review the reported ldconfig output and the referenced Incus discussion; done means old configuration artifacts are cleaned up without leaving broken or empty library entries.

Written by the indexing model from the issue text.

Assessment

Domain
infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.