VK Cloud logo

Removing the GPU/vGPU driver

Removing the Linux GPU driver

  1. Connect to the VM with the GPU.

  2. Remove the driver and its dependencies from the package manager:

    sudo apt purge cuda-drivers 'nvidia-driver-*' 'libnvidia-*' 'nvidia-utils-*' 'nvidia-dkms-*' 'nvidia-kernel-*'  'xserver-xorg-video-nvidia*' 'nvidia-settings'sudo apt autoremove --purge
  3. Run nvidia-uninstall or nvidia-installer --uninstall.

    sudo /usr/bin/nvidia-uninstall 2>/dev/null || sudo /usr/bin/nvidia-installer --uninstall

    If a driver installed from a file with the *.run extension was previously present on the system, its removal will start. Otherwise, a No such file or directory error will occur, indicating there is no driver installed from a *.run file. No further action is required.

  4. Reboot the VM.

Removing the Linux vGPU driver

  1. Connect to the VM with vGPU.

  2. Remove the driver:

    sudo /usr/bin/nvidia-uninstall 2>/dev/null || sudo /usr/bin/nvidia-installer --uninstall
  3. Reboot the VM.

Removing the Windows GPU/vGPU driver

  1. Connect to the VM with vGPU.
  2. Press WIN + X.
  3. Type appwiz.cpl and press ENTER.
  4. Remove all components published by NVIDIA Corporation.
  5. Reboot the VM.
Was this article helpful?