[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#929046: RFP: libnvidia-container-tools -- Utility for exposing nVidia hardware to linux containers



Package: wnpp
Severity: wishlist

  Package name    : libnvidia-container-tools
  Version         : 1.0.2
  URL             : https://github.com/NVIDIA/libnvidia-container
  License         : BSD
  Programming Lang: C
  Description     : Utility for exposing nVidia hardware to linux containers

A library and simple command line utility to automatically configure linux
containers for access to nVidia hardware. This enables GPU graphics, compute,
and video features with minimal configuration and without having to install the
nVidia driver in each container. It is designed to be agnostic of the container
runtime.


I have been running games within lxc containers for years, but getting my
nVidia GPU to work with them was a painful process that consumed a lot of time,
required more systems knowledge than should be necessary, occasionally broke
when nVidia restructured their drivers, and practically required installing
(and regularly updating) a copy of the driver package within each container.
People using containers for video encoding, AI, and other graphics-related
applications would likely face the same issues. For most people, navigating it
all is out of reach. With this tool and library, all that nonsense can be
replaced with just a little container configuration. Here's an example for lxc:

lxc.environment = NVIDIA_VISIBLE_DEVICES=all
lxc.environment = NVIDIA_DRIVER_CAPABILITIES=all
lxc.hook.mount = /usr/share/lxc/hooks/nvidia

That's far more accessible and maintainable. More info here:

https://devblogs.nvidia.com/gpu-containers-runtime/


Reply to: