A Tesla driver is required for a GPU to deliver high performance for computing workloads, such as deep learning and AI, and for graphics acceleration, such as OpenGL and cloud gaming. If you did not install a Tesla driver when you created your GPU-accelerated compute-optimized instance, you must install it manually.
Procedure
This topic applies to all GPU-accelerated compute-optimized instances that run a Linux operating system. For more information, see GPU-accelerated compute-optimized instance families (gn, ebm, and scc series). You must install a Tesla driver compatible with your instance's operating system.
Step 1: Download the NVIDIA Tesla driver
-
Go to the NVIDIA driver download page.
NoteFor more information about how to install and configure NVIDIA drivers, see the NVIDIA Driver Installation Quickstart Guide.
-
Set the search conditions and click SEARCH to find a suitable driver.

The following table describes the search conditions.
Setting
Description
Example
-
product type
-
product series
-
product family
Select the product type, product series, and product family that correspond to the GPU model of your instance type.
NoteFor more information about how to view the details of a GPU instance, such as the instance ID, instance type, and operating system, see View instance information.
-
Data Center / Tesla
-
A-Series
-
NVIDIA A10
Operating system
Select the Linux operating system version that matches the image used by your instance.
Linux 64-bit
CUDA Toolkit
Select a CUDA Toolkit version.
11.4
Language
Select a language for the driver.
Chinese (Simplified)
-
-
On the search results page, click BETA, OLDER DRIVERS, AND MORE.
-
Find the driver that you want to download and click View next to the driver.
For example, select Data Center Driver for Linux x64 with driver version 470.161.03 and CUDA Toolkit version 11.4.
-
On the driver details page, right-click Download and select Copy Link Address.

-
Connect to the GPU instance that runs Linux.
For more information, see Connect to a Linux instance by using Workbench.
-
Run the following
wgetcommand to download the driver installation package.The driver download URL in the command example is the link that you obtained in Step 5.
wget --referer=https://www.nvidia.cn/ https://cn.download.nvidia.com/tesla/470.161.03/NVIDIA-Linux-x86_64-470.161.03.run
Step 2: Install the NVIDIA Tesla driver
The installation method varies based on the operating system.
CentOS
-
Run the following command to check whether the kernel-devel and kernel-headers packages are installed on the GPU instance.
sudo rpm -qa | grep $(uname -r)-
If output similar to the following is returned, the packages are installed.
kernel-3.10.0-1062.18.1.el7.x86_64 kernel-devel-3.10.0-1062.18.1.el7.x86_64 kernel-headers-3.10.0-1062.18.1.el7.x86_64 -
If kernel-devel-* and kernel-headers-* are not included in the output, you must download and install the corresponding versions of the kernel-devel and kernel-headers packages.
ImportantA mismatch between the kernel-devel and kernel versions causes a compilation error during the driver installation. Before you download the kernel-devel package, check the version number of kernel-* in the output to ensure version consistency. In the example output, the kernel version is 3.10.0-1062.18.1.el7.x86_64.
-
-
Grant permissions and install the Tesla driver.
We recommend using the Tesla driver in
.runformat for 64-bit Linux operating systems. Run the following commands to grant permissions and install the Tesla driver.NoteIf you use a Tesla driver in another format, such as
.debor.rpm, see the NVIDIA CUDA Installation Guide for Linux for installation instructions.sudo chmod +x NVIDIA-Linux-x86_64-xxxx.runsudo sh NVIDIA-Linux-x86_64-xxxx.run -
Run the following command to verify that the Tesla driver is installed.
nvidia-smiIf output similar to the following is returned, the Tesla driver is installed.

-
(Optional) Enable Persistence Mode by using the NVIDIA Persistence Daemon.
After the Tesla driver is installed, Persistence-M is disabled (
off) by default. The Tesla driver provides more stable performance when Persistence-M is enabled. To ensure that your services run more stably, we recommend that you enable Persistence-M by using the NVIDIA Persistence Daemon. For more information, see Persistence Daemon.Note-
Persistence Mode is a user-configurable driver property that keeps the target GPU initialized even when no clients are connected to the GPU.
-
Enabling Persistence Mode by using the
nvidia-smi -pm 1command causes the setting to be lost after the instance is rebooted. For more information, see Persistence Mode is lost and ECC or MIG settings fail after a GPU instance is rebooted. We recommend that you enable Persistence Mode by using the NVIDIA Persistence Daemon.
-
Run the following command to start the NVIDIA Persistence Daemon.
sudo nvidia-persistenced --user username # Replace username with your username. -
Run the following command to check the status of Persistence Mode.
nvidia-smiThe returned message is similar to the following, which indicates that Persistence-M is in the enabled (
on) state.
-
-
(Optional) Configure Persistence Mode to start on boot.
If the system restarts, the enabled (
on) state of the Persistence-M property is lost. You can perform the following operations to re-enable the Persistence-M property.Installing the Tesla driver installation package installs the installation scripts provided by NVIDIA, such as example scripts and installer scripts, to the
/usr/share/doc/NVIDIA_GLX-1.0/samples/nvidia-persistenced-init.tar.bz2path.-
Run the following commands to decompress and install the NVIDIA-provided scripts.
cd /usr/share/doc/NVIDIA_GLX-1.0/samples/ sudo tar xf nvidia-persistenced-init.tar.bz2 cd nvidia-persistenced-init sudo sh install.sh -
Run the following command to check whether the NVIDIA Persistence Daemon is running as expected.
sudo systemctl status nvidia-persistencedIf output similar to the following is returned, the NVIDIA Persistence Daemon is running as expected.
NoteYou can adapt the NVIDIA Persistence Daemon installation script to your operating system to ensure that the daemon works as expected.
-
Run the following command to confirm that the Persistence-M property is enabled (
on).nvidia-smi -
(Optional) Run the following commands to stop the NVIDIA Persistence Daemon.
You can stop the NVIDIA Persistence Daemon if it is no longer required.
sudo systemctl stop nvidia-persistenced sudo systemctl disable nvidia-persistenced
-
-
(Conditionally required) If your GPU instance belongs to the ebmgn8v, ebmgn7, or ebmgn7e, ebmgn7ex, or sccgn7ex instance family, install the nvidia-fabricmanager service that corresponds to your driver version.
Important-
For instances in the ebmgn8v, ebmgn7, or ebmgn7e, ebmgn7ex, or sccgn7ex instance family, you cannot use the GPU if the corresponding nvidia-fabricmanager service is not installed.
-
If the GPU instance family is not ebmgn8v, ebmgn7, ebmgn7e, ebmgn7ex, or sccgn7ex, skip this step.
-
Install the nvidia-fabricmanager service.
You can install the nvidia-fabricmanager service by using the source code or an installation package. The following command examples are for the CentOS 7.x and CentOS 8.x operating systems. In the commands, replace
driver_versionwith the version number of the driver that you downloaded in Step 1: Download the NVIDIA Tesla driver. For example, the driver version can be 460.91.03.-
source code
-
installation package
-
-
Run the following commands to start the nvidia-fabricmanager service.
sudo systemctl enable nvidia-fabricmanager sudo systemctl start nvidia-fabricmanager -
Run the following command to check whether the nvidia-fabricmanager service is installed.
systemctl status nvidia-fabricmanagerIf output similar to the following is returned, the nvidia-fabricmanager service is installed.

-
Ubuntu and other operating systems
-
Grant permissions and install the Tesla driver.
We recommend using the Tesla driver in
.runformat for 64-bit Linux operating systems. Run the following commands to grant permissions and install the Tesla driver.NoteIf you use a Tesla driver in another format, such as
.debor.rpm, see the NVIDIA CUDA Installation Guide for Linux for installation instructions.sudo chmod +x NVIDIA-Linux-x86_64-xxxx.runsudo sh NVIDIA-Linux-x86_64-xxxx.run -
Run the following command to verify that the Tesla driver is installed.
nvidia-smiIf output similar to the following is returned, the Tesla driver is installed.

-
(Optional) Enable Persistence Mode by using the NVIDIA Persistence Daemon.
After the Tesla driver is installed, Persistence-M is disabled (
off) by default. The Tesla driver provides more stable performance when Persistence-M is enabled. To ensure that your services run more stably, we recommend that you enable Persistence-M by using the NVIDIA Persistence Daemon. For more information, see Persistence Daemon.Note-
Persistence Mode is a user-configurable driver property that keeps the target GPU initialized even when no clients are connected to the GPU.
-
Enabling Persistence Mode by using the
nvidia-smi -pm 1command causes the setting to be lost after the instance is rebooted. For more information, see Persistence Mode is lost and ECC or MIG settings fail after a GPU instance is rebooted. We recommend that you enable Persistence Mode by using the NVIDIA Persistence Daemon.
-
Run the following command to start the NVIDIA Persistence Daemon.
sudo nvidia-persistenced --user username # Replace username with your username. -
Run the following command to check the status of Persistence Mode.
nvidia-smiThe returned message is similar to the following, which indicates that Persistence-M is in the enabled (
on) state.
-
-
(Optional) Configure Persistence Mode to start on boot.
If the system restarts, the enabled (
on) state of the Persistence-M property is lost. You can perform the following operations to re-enable the Persistence-M property.Installing the Tesla driver installation package installs the installation scripts provided by NVIDIA, such as example scripts and installer scripts, to the
/usr/share/doc/NVIDIA_GLX-1.0/samples/nvidia-persistenced-init.tar.bz2path.-
Run the following commands to decompress and install the NVIDIA-provided scripts.
cd /usr/share/doc/NVIDIA_GLX-1.0/samples/ sudo tar xf nvidia-persistenced-init.tar.bz2 cd nvidia-persistenced-init sudo sh install.sh -
Run the following command to check whether the NVIDIA Persistence Daemon is running as expected.
sudo systemctl status nvidia-persistencedIf output similar to the following is returned, the NVIDIA Persistence Daemon is running as expected.
NoteYou can adapt the NVIDIA Persistence Daemon installation script to your operating system to ensure that the daemon works as expected.
-
Run the following command to confirm that the Persistence-M property is enabled (
on).nvidia-smi -
(Optional) Run the following commands to stop the NVIDIA Persistence Daemon.
You can stop the NVIDIA Persistence Daemon if it is no longer required.
sudo systemctl stop nvidia-persistenced sudo systemctl disable nvidia-persistenced
-
-
(Conditionally required) If your GPU instance belongs to the ebmgn8v, ebmgn7, or ebmgn7e, ebmgn7ex, or sccgn7ex instance family, install the nvidia-fabricmanager service that corresponds to your driver version.
Important-
For instances in the ebmgn8v, ebmgn7, or ebmgn7e, ebmgn7ex, or sccgn7ex instance family, you cannot use the GPU if the corresponding nvidia-fabricmanager service is not installed.
-
If the GPU instance family is not ebmgn8v, ebmgn7, ebmgn7e, ebmgn7ex, or sccgn7ex, skip this step.
-
Install the nvidia-fabricmanager service.
You can install the nvidia-fabricmanager service from the source code or an installation package. The following command is an example for the Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, or Ubuntu 24.04 operating system. In the command, replace
driver_versionwith the version number of the driver that you downloaded in Step 1: Download the NVIDIA Tesla driver.Important-
On Ubuntu 22.04, the nvidia-fabricmanager service requires a Tesla driver version later than 515.48.07. The following example for Ubuntu 22.04 uses driver version 535.154.05.
-
On Ubuntu 24.04, the nvidia-fabricmanager service requires a Tesla driver version later than 550.90.07. The following example for Ubuntu 24.04 uses driver version 570.133.20.
-
source code
-
installation package
-
-
Run the following commands to start the nvidia-fabricmanager service.
sudo systemctl enable nvidia-fabricmanager sudo systemctl start nvidia-fabricmanager -
Run the following command to check whether the nvidia-fabricmanager service is installed.
systemctl status nvidia-fabricmanagerIf output similar to the following is returned, the nvidia-fabricmanager service is installed.
NoteThe nvidia-fabricmanager package version must match the Tesla driver version for the GPU to function correctly. On an Ubuntu system, if you install the nvidia-fabricmanager service from an installation package, the apt-daily service may automatically update the package. This can cause a version mismatch between the nvidia-fabricmanager package and the Tesla driver. As a result, the nvidia-fabricmanager service fails to start, making the GPU unavailable. For information about how to resolve this issue, see GPU becomes unavailable due to a version mismatch between nvidia-fabricmanager and the Tesla driver.
-
Related topics
-
To use a Windows-based GPU-accelerated compute-optimized instance for workloads like deep learning and AI, you must also manually install the Tesla driver. For more information, see Manually install the Tesla driver on a GPU-accelerated compute-optimized instance (Windows).
-
To install the Tesla driver during instance creation, see Automatically install or load the Tesla driver when you create a GPU instance.
-
To uninstall the Tesla driver, see Uninstall a Tesla driver.
-
If the installed driver version is incorrect or does not meet your requirements, you can upgrade the driver, or uninstall it and then install a new one. For more information, see Upgrade an NVIDIA driver.

