Getting Error while installing Nvidia Driver on GCP VM with image c0-deeplearning-common-gpu-v20240128-debian-11-py310

we had created after VM in GCP using image c0-deeplearning-common-gpu-v20240128-debian-11-py310 (Debian 11, Python 3.10. With CUDA 11.8 preinstalled.)

We faced the issue where nvidia driver were not able to detect GPU. So it mention that we need to run script
sudo /opt/deeplearning/

While running mentioned script we were getting below error

ERROR: An error occurred while performing the step: “Building kernel modules”. See
/var/log/nvidia-installer.log for details.

ERROR: An error occurred while performing the step: “Checking to see whether the nvidia kernel module was
successfully built”. See /var/log/nvidia-installer.log for details.

ERROR: The nvidia kernel module was not created.

ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find
suggestions on fixing installation problems in the README available on the Linux driver download page at

nvidia-installer.log (53.1 KB)