drivers-one-shot installation failed on linux kernel 4.4.0-148-generic
pai version: v0.12.0 I have 3 nodes in a cluster, 1 master and 2 worker. Master and Worker1: CPU: 12 cores mem: 256G GPU: Quadro M5000 * 1 Linux kernel: 4.4.0-142-generic Worker2: CPU: 6 cores mem: 64G GPU: Quadro P5000 * 1 Linux kernel: 4.4.0-148-generic
When start pai service, the nvidia driver reported error on worker2:
+ export MLNX_PREFIX=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode
+ MLNX_PREFIX=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode
+ export NV_DRIVER=/var/drivers/nvidia/410.73
+ NV_DRIVER=/var/drivers/nvidia/410.73
+ export LIBRARY_PATH=/usr/local/cuda/lib64/stubs:/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/lib
+ LIBRARY_PATH=/usr/local/cuda/lib64/stubs:/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/lib
+ export LD_LIBRARY_PATH=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/var/drivers/nvidia/410.73/lib:/var/drivers/nvidia/410.73/lib64:/usr/local/cuda/lib64
+ LD_LIBRARY_PATH=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/var/drivers/nvidia/410.73/lib:/var/drivers/nvidia/410.73/lib64:/usr/local/cuda/lib64
+ export PATH=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/drivers/nvidia/410.73/bin
+ PATH=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/drivers/nvidia/410.73/bin
+ export C_INCLUDE_PATH=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/include:/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/include/infiniband
+ C_INCLUDE_PATH=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/include:/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/include/infiniband
+ export CPLUS_INCLUDE_PATH=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/include:/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/include/infiniband
+ CPLUS_INCLUDE_PATH=/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/include:/var/drivers/mellanox/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu16.04-x86_64/usermode/include/infiniband
+ lspci
+ grep -qE '[0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F].[0-9] (3D|VGA compatible) controller: NVIDIA Corporation.*'
+ '[' -f /usr/local/nvidia/bin/nvidia-smi ']'
+ /bin/bash -x install-nvidia-drivers
++ uname -r
+ KERNEL_FULL_VERSION=4.4.0-148-generic
+ CURRENT_DRIVER=/var/drivers/nvidia/current
+ echo ======== If NVIDIA present exit early =========
======== If NVIDIA present exit early =========
+ nvidiaPresent
+ [[ -f /proc/driver/nvidia/version ]]
+ return 1
+ '[' 1 == 0 ']'
+ echo ======== If NVIDIA driver already running uninstall it =========
======== If NVIDIA driver already running uninstall it =========
+ lsmod
+ grep -qE '^nvidia'
+ echo === Building and installing NVIDIA modules
+ echo /var/drivers/nvidia/410.73/lib
=== Building and installing NVIDIA modules
+ echo /var/drivers/nvidia/410.73/lib64
+ mkdir -p /var/drivers/nvidia/410.73/lib /var/drivers/nvidia/410.73/lib64 /var/drivers/nvidia/410.73/bin
+ ./NVIDIA-Linux-x86_64-410.73/nvidia-installer --utility-prefix=/var/drivers/nvidia/410.73 --opengl-prefix=/var/drivers/nvidia/410.73 --x-prefix=/var/drivers/nvidia/410.73 --compat32-prefix=/var/drivers/nvidia/410.73 --opengl-libdir=lib64 --utility-libdir=lib64 --x-library-path=lib64 --compat32-libdir=lib --dkms -a -s -N
WARNING: The '--no-network' option is deprecated: nvidia-installer will
ignore this option.
WARNING: nvidia-installer was forced to guess the X library path 'lib64'
and X module path 'lib64/xorg/modules'; these paths were not
queryable from the system. If X fails to find the NVIDIA X driver
module, please install the `pkg-config` utility and the X.Org
SDK/development package for your distribution and reinstall the
driver.
WARNING: Unable to determine the path to install the libglvnd EGL vendor
library config files. Check that you have pkg-config and the
libglvnd development libraries installed, or specify a path with
--glvnd-egl-config-path.
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 410.73 -k
4.4.0-148-generic`:
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
'make' -j12 NV_EXCLUDE_BUILD_MODULES=''
KERNEL_UNAME=4.4.0-148-generic IGNORE_CC_MISMATCH=''
modules.....(bad exit status: 2)
Error! Bad return status for module build on kernel:
4.4.0-148-generic (x86_64)
Consult /var/lib/dkms/nvidia/410.73/build/make.log for more
information.
ERROR: Failed to install the kernel module through DKMS. No kernel module
was installed; please try installing again without DKMS, or check
the DKMS logs for more information.
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 www.nvidia.com.
+ echo === Loading NVIDIA UVM module
+ modprobe nvidia-uvm
=== Loading NVIDIA UVM module
modprobe: FATAL: Module nvidia-uvm not found in directory /lib/modules/4.4.0-148-generic
+ exit 1
+ exit 1
I tried 410.37 and 384.111, they have same problem.
Refer to https://github.com/microsoft/pai/issues/2446
Refer to #2446
Thanks! I temporary switched kernel to 4.4.0-142 and it is OK now. I‘m not very clear with your hardcode solution. And I noticed that the driver 418.30 is only for v0.11.0 in dockerhub but I'm running v0.12.0. If I just reinstall pai 0.11.0 and set the driver version 418.30 in services-configuration.yaml, will it be OK?
@leonfg
Nope and no need.
Just replace the line
image: {{ cluster_cfg["cluster"]["docker-registry"]["prefix"] }}drivers-{{ cluster_cfg["drivers"]["version"] }}:{{ cluster_cfg["cluster"]["docker-registry"]["tag"] }}
with
image: docker.io/openpai/drivers-418.30:v0.11.0.
@leonfg Nope and no need. Just replace the line
image: {{ cluster_cfg["cluster"]["docker-registry"]["prefix"] }}drivers-{{ cluster_cfg["drivers"]["version"] }}:{{ cluster_cfg["cluster"]["docker-registry"]["tag"] }}withimage: docker.io/openpai/drivers-418.30:v0.11.0.
OK, now I understand. Thank you!
Welcome for further updating about this driver version
hello, I also meet this error right now!
Follows are my coditions: one master with no gpus and one worker with teslav100 pai-version: v0.12.0 nvidia-driver-version: 410.73 worker-node-kernel: 4.18.0-17-generic worker-node-os: Ubuntu-18.04-lst
I also tried to change the kernel version to 4.18.0-15-generic and to use the driver with version of 418.30, but both of them are not work. By the way, I once successfully deployed pai by using these conditions without any linux-kernel errors. Right now, I am trying to clear old settings and repeat to deploy it but meet this type of error.
Any one can help? THX