Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950233 - app-containers/nvidia-container-toolkit: not longer working -- nvidia-container-cli configure: unrecognized option '--no-cntlibs'
Summary: app-containers/nvidia-container-toolkit: not longer working -- nvidia-contain...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: vowstar
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-02-24 16:01 UTC by Oriol D
Modified: 2025-02-26 10:51 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oriol D 2025-02-24 16:01:52 UTC
As we can see from the changelog: https://github.com/NVIDIA/nvidia-container-toolkit/releases/tag/v1.17.4 there are options that have been added required for it to work. When you start a docker that requires it you get this error:

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running prestart hook #0: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli configure: unrecognized option '--no-cntlibs'
Try `nvidia-container-cli configure --help' or `nvidia-container-cli configure
--usage' for more information.: unknown
Comment 1 Paul Zander 2025-02-24 16:20:26 UTC
> To set the feature flag ensure that the NVIDIA Container Toolkit config file at /etc/nvidia-container-runtime/config.toml includes:[features] allow-cuda-compat-libs-from-container = true
Comment 3 Zhixu Liu 2025-02-25 08:08:33 UTC
> [features]
>   allow-cuda-compat-libs-from-container = true

please try add config above to /etc/nvidia-container-runtime/config.toml

but for security reason, maybe it's not a good idea to add it in ebuild?
Comment 4 vowstar 2025-02-25 08:49:18 UTC
Fixed by bump sys-libs/libnvidia-container to 1.17.4
Comment 5 vowstar 2025-02-25 08:50:29 UTC
(In reply to Zhixu Liu from comment #3)
> > [features]
> >   allow-cuda-compat-libs-from-container = true
> 
> please try add config above to /etc/nvidia-container-runtime/config.toml
> 
> but for security reason, maybe it's not a good idea to add it in ebuild?

No need to add this config, just bump sys-libs/libnvidia-container to match 1.17.4
Comment 6 Larry the Git Cow gentoo-dev 2025-02-26 10:51:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b88ed6e58afe7edff73502ae7dec8d549cd6b48

commit 1b88ed6e58afe7edff73502ae7dec8d549cd6b48
Author:     Huang Rui <vowstar@gmail.com>
AuthorDate: 2025-02-25 08:45:52 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2025-02-26 10:50:30 +0000

    sys-libs/libnvidia-container: add 1.17.4
    
    Closes: https://bugs.gentoo.org/950233
    Signed-off-by: Huang Rui <vowstar@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 sys-libs/libnvidia-container/Manifest              |   1 +
 .../libnvidia-container-1.17.4.ebuild              | 131 +++++++++++++++++++++
 2 files changed, 132 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3302465d6063f3f0e5b301103f3b34b1b2683ed0

commit 3302465d6063f3f0e5b301103f3b34b1b2683ed0
Author:     Huang Rui <vowstar@gmail.com>
AuthorDate: 2025-02-25 09:17:52 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2025-02-26 10:50:34 +0000

    app-containers/nvidia-container-toolkit: fix version dependency
    
    version should not be newer than libnvidia-container
    
    Bug: https://bugs.gentoo.org/950233
    Closes: https://github.com/gentoo/gentoo/pull/40749
    Signed-off-by: Huang Rui <vowstar@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 ...toolkit-1.17.3.ebuild => nvidia-container-toolkit-1.17.3-r1.ebuild} | 2 ++
 ...toolkit-1.17.4.ebuild => nvidia-container-toolkit-1.17.4-r1.ebuild} | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)