Updated on 2025-07-30 GMT+08:00

How Do I Handle Driver Compatibility Issues?

Symptom

The error message "No devices were found" is displayed after you run the nvidia-smi command.

No devices were found

Solution

  1. View ECS specifications and check the image information.
    • If the ECS is using NVIDIA Tesla T4 GPUs (for example, of the Pi2 or G6 flavor), refer to Why Is the T4 GPU Display Abnormal?
    • If you use GPU-accelerated ECSs of other specifications, go to the next step.
  2. Check the system log /var/log/message for any reported driver-related errors.
    • If the error message "Failed to copy vbios to system memory" is displayed, the possible cause may be frequent driver loading/uninstallation. You are advised to enable the driver's persistence mode to keep the driver in loading state.

      1. Run the following command to enable the driver's persistence mode.

        nvidia-smi -pm 1

      2. Run the following command to open and edit the /etc/rc.local file.

        vim /etc/rc.local

      3. Configure automatic startup and write the nvidia-smi -pm 1 command to the /etc/rc.local file.
      4. Press Esc and enter :wq to save the settings and exit.
      5. Run the following command to add startup permissions.

        chmod +x /etc/rc.d/rc.local

    • If no error is found, go to the next step.
  3. Check whether the ECS uses Tesla 510.xx.xx.
    • If yes, the driver version may be incompatible with the image. You are advised to change the driver version. For details, see GPU Driver.
    • If no, go to the next step.
  4. If the root cause fails to be identified, collect fault information by referring to Fault Information Collection and contact technical support.