This component compiles NVIDIA kernel modules for Garden Linux in a Container image at build time. Running the image in a cluster via the NVIDIA GPU Operator installs the GPU driver on the required nodes.
helm upgrade --install -n gpu-operator gpu-operator nvidia/gpu-operator --values \
https://raw.githubusercontent.com/gardenlinux/gardenlinux-nvidia-installer/refs/heads/main/helm/gpu-operator-values.yaml helm upgrade --install -n gpu-operator gpu-operator nvidia/gpu-operator --values \
https://raw.githubusercontent.com/gardenlinux/gardenlinux-nvidia-installer/refs/heads/main/helm/gpu-operator-values.yaml \
--set driver.repository=ghcr.io/gardenlinux/gardenlinux-nvidia-installer/openBuilt images are maintained at ghcr.io/gardenlinux/gardenlinux-nvidia-installer/<kernel_type>/driver:<driver_major_version>-<kernel_version>-gardenlinux0
If you have built the images yourself, you can use the --set option to specify the image repository and tag:
helm upgrade --install -n gpu-operator gpu-operator nvidia/gpu-operator --values \
https://raw.githubusercontent.com/gardenlinux/gardenlinux-nvidia-installer/refs/heads/main/helm/gpu-operator-values.yaml \
--set driver.repository=$REGISTRY/$FOLDER \
--set driver.image=$IMAGETo build the image for NVIDIA driver version 570.172.08 on Garden Linux (GL) 1877.3 for amd64-based CPUs:
export DRIVER_VERSION=570.172.08
export GL_VERSION=1877.3
export KERNEL_TYPE=proprietary
make build
This builds a container image with an image name like
ghcr.io/gardenlinux/gardenlinux-nvidia-installer/proprietary/driver:<driver_major_version>-<GL_kernel_version>-<arch>-gardenlinux0
and
ghcr.io/gardenlinux/gardenlinux-nvidia-installer/proprietary/driver:<driver_major_version>-<GL_kernel_version>-<arch>-gardenlinux<GL_version>
Notes:
-
The image is built by default for amd64. If arm64 architecture needs to be built then
export TARGET_ARCH=arm64 -
If a bare-metal kernel module needs to be built then
export KERNEL_FLAVOR=baremetal
We can list supported driver version for Garden Linux versions with
python3 list_versions.py
Supported OS ↔ Driver Versions
---------------------------------------------
OS 1592.14: 570.195.03, 565.57.01, 550.163.01
OS 1877.5: 570.195.03, 565.57.01, 550.163.01
The Makefile compiles the driver modules and builds the container image in 2 stages. To build only the driver modules:
export GL_VERSION=1877.3
export DRIVER_VERSION=570.172.08
export KERNEL_TYPE=proprietary
make build-driver
This builds the driver modules and stores them in current working directory under the out folder
To build only the container image:
export GL_VERSION=1877.3
export DRIVER_VERSION=570.172.08
export KERNEL_TYPE=proprietary
make build-image
Note: Make sure driver modules are first available under the out folder before building the image.
This project builds and maintains the latest NVIDIA driver releases, continuously supporting the two most recent major versions.
Driver and Garden Linux version is update automatically based on the available version
Garden Linux version gets automatically updated from
https://github.com/gardenlinux/gardenlinux/releases when there is a latest release available
Driver Version is updated if there is a minor version release from.
https://www.nvidia.com/en-us/drivers/
Note: Major version for driver is updated manually
Compiling drivers for Garden Linux is typically non-trivial because the OS ships without build tools and no obvious way to access the kernel sources. This project works by compiling the kernel modules at build-time inside a Garden Linux developer container (which contains the kernel headers and compiler) and then placing the resulting files into a container image from which they can be installed at runtime.
Drivers built with this project are only supported on Garden Linux, the open source operating system. Furthermore, only drivers for data center (i.e. non-consumer) graphics cards are supported.
The Open Kernel Module is supported only with Garden Linux versions 1877.6 and 1592.15 (or later patch versions).