Updating the Linux GPU driver
-
Check your VM's configuration type:
- Go to your VK Cloud personal account.
- Go to Cloud Computing → Virtual Machines.
- In the list, find the VM for which you need to update the GPU driver. Make sure the Type column shows a dedicated GPU configuration flavor.
-
Connect to the VM with the GPU.
-
Determine the installed driver version:
/usr/bin/nvidia-smi --query-gpu=driver_version --format=csv,noheader| head -n1A
No such file or directoryerror means the driver is not installed. Go to Installing the Linux GPU driver. -
Determine how the driver was installed:
Ubuntu/DebianRed Hat Enterprise Linuxdpkg -S "$(command -v nvidia-smi)" 2>/dev/nullAn empty response means the
nvidia-smicommand is not linked to your package manager. Usually this means the driver was installed without a package manager, using a ready-made*.runinstaller from the vendor's website.To update the version, the driver needs to be reinstalled. To do this, first remove the driver, and then install it again.
-
Determine the update source and the versions available for update:
Ubuntu/DebianRed Hat Enterprise Linuxapt-cache policy nvidia-driver-<BRANCH_VERSION><BRANCH_VERSION>is the major version number of the driver obtained when checking fornvidia-smi. For example,550.If the command succeeds and the
CandidateorInstalledfields in the output show a version from system or other third-party repositories other thandeveloper.download.nvidia.com, it's better to switch to the NVIDIA CUDA repository and reinstall the driver instead of updating.To reinstall, first remove the driver, and then install it again.
-
Update the driver:
Ubuntu/DebianRed Hat Enterprise Linuxsudo apt install --only-upgrade -y cuda-driver-<BRANCH_VERSION>Here
<BRANCH_VERSION>is the major version number to update the driver to. For example,550.