Method 1: Uninstall Driver Using TAT Automation Assistant
1. Log in to the CVM console, choose TencentCloud Automation Tools > Command List in the left sidebar. 2. On the Public Command page, select the region where your instance is located at the top, and click Execute command in the lower-left corner of the UninstallGPUDriverForLinux module. See the figure below:
3. Go to the Run Command page, select the GPU instances that require command execution. You can use the Instance Type Filter to identify GPU instance types:
4. Click Execute command to proceed.
Method 2: Manual Driver Uninstallation
1. Execute the following command in the command line to switch to the root user.
2. Enter the following command to uninstall the driver.
nvidia-installer --uninstall -s
See the figures below:
3. Execute the command lsmod | grep nvidia to check whether the driver has been completely uninstalled. If the result is empty, the driver has been successfully removed, as shown below:
If residual files are detected, you can repeatedly execute the following commands:
fuser -k /dev/nvidia*; rmmod nvidia_modeset; rmmod nvidia_drm; rmmod nvidia_uvm; rmmod nvidia;
Note:
Make sure to use sudo su to switch to root permissions before executing the command. The command can be executed multiple times without causing any side effects.
4. Execute lsmod | grep nvidia again to check if the driver has been completely removed. If the result is empty, the uninstallation was successful.
2. Click in the lower-left corner, go to Control Panel > Programs and Features, right-click and select Uninstall. 3. Follow the instructions in the interface to proceed to the next step.
4. In the final step, if the system prompts you to restart the machine, click Restart Now.
5. After the machine restarts, go to Control Panel > Programs and Features to confirm that the Tesla driver is no longer listed, indicating that it has been completely uninstalled.