Removing the GPU/vGPU driver
-
Connect to the VM with the GPU.
-
Remove the driver and its dependencies from the package manager:
Ubuntu/DebianRed Hat Enterprise Linuxsudo apt purge cuda-drivers 'nvidia-driver-*' 'libnvidia-*' 'nvidia-utils-*' 'nvidia-dkms-*' 'nvidia-kernel-*' 'xserver-xorg-video-nvidia*' 'nvidia-settings'sudo apt autoremove --purge -
Run
nvidia-uninstallornvidia-installer --uninstall.sudo /usr/bin/nvidia-uninstall 2>/dev/null || sudo /usr/bin/nvidia-installer --uninstallIf a driver installed from a file with the
*.runextension was previously present on the system, its removal will start. Otherwise, aNo such file or directoryerror will occur, indicating there is no driver installed from a*.runfile. No further action is required. -
Reboot the VM.
-
Connect to the VM with vGPU.
-
Remove the driver:
sudo /usr/bin/nvidia-uninstall 2>/dev/null || sudo /usr/bin/nvidia-installer --uninstall -
Reboot the VM.
- Connect to the VM with vGPU.
- Press WIN + X.
- Type
appwiz.cpland press ENTER. - Remove all components published by
NVIDIA Corporation. - Reboot the VM.
Was this article helpful?