Skip to content

Fix NVIDIA driver installation on Debian 12 security kernels - #1400

Open
nvliyuan wants to merge 2 commits into
GoogleCloudDataproc:mainfrom
nvliyuan:fix-debian12-nvidia-580-dkms
Open

Fix NVIDIA driver installation on Debian 12 security kernels#1400
nvliyuan wants to merge 2 commits into
GoogleCloudDataproc:mainfrom
nvliyuan:fix-debian12-nvidia-580-dkms

Conversation

@nvliyuan

@nvliyuan nvliyuan commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Switch Debian 12 from the CUDA 12.4 local repository's NVIDIA 550 driver to the NVIDIA online repository's pinned 580 driver branch.
  • Install the headless nvidia-kernel-open-dkms and nvidia-driver-cuda packages to avoid desktop EGL/Wayland dependencies.
  • Keep the CUDA toolkit at 12.4 and leave other operating-system installation paths unchanged.

Root cause

Jenkins build 1631 failed after the Dataproc Debian 12 image picked up kernel 6.1.0-52-cloud-amd64 (6.1.178). That security kernel uses the four-argument pci_resize_resource API, while the bundled NVIDIA 550 open module calls the old three-argument API and fails DKMS compilation.

Test plan

  • bash -n spark-rapids/spark-rapids.sh
  • git diff --check
  • Created a two-worker T4 cluster using 2.3-debian12 (2.3.34-debian12) with the patched init action.
  • Verified both workers on kernel 6.1.0-50-cloud-amd64 loaded NVIDIA driver 580.178.04.
  • Verified /usr/local/cuda/bin/nvcc reports CUDA 12.4 on both workers.

Validation artifacts are under yuanli@spark-yuanli:~/work/csps/dataproc/v26.06/debian12-580-fix.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a repository-based installation path for the NVIDIA GPU driver on Debian 12 to address compatibility issues with kernel 6.1.0-52. The feedback recommends using curl with retries and downloading the keyring package to /tmp instead of using wget in the current working directory, ensuring consistency with the rest of the script and preventing workspace pollution.

Comment thread spark-rapids/spark-rapids.sh Outdated
@nvliyuan
nvliyuan marked this pull request as ready for review August 6, 2026 07:03
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant