All Products
Search
Document Center

Elastic GPU Service:How do I disable the automatic installation feature of the Tesla driver when I replace the operating system of a GPU-accelerated instance?

Last Updated:Sep 05, 2024

If you select an image and select Auto-install GPU Driver when you create a GPU-accelerated instance, the Tesla driver is automatically installed after the instance is created. If you want to replace the operating system of the GPU-accelerated instance, you must disable the automatic installation feature of the Tesla driver and manually install the Tesla driver that is compatible with the new operating system. This ensures that you can use the high-performance features of the GPU-accelerated instance.

Procedure

  1. Connect to the GPU-accelerated instance.

    For more information, see Connect to a Linux instance by using a password or key.

  2. Run the nvidia-smi command to query the version of the Tesla driver.

    驱动版本.jpg

  3. Stop the GPU-accelerated instance.

    We recommend that you set the Stop Mode parameter to Standard Mode to prevent the instance from failing to restart when you replace the operating system of the instance. For more information, see Stop instances.

  4. In the instance list, find the GPU-accelerated instance that you stopped and choose icon1 > Instance Settings > Set User Data in the Actions column.

  5. In the User Data field, delete the user data and click Confirm.

  6. Replace the operating system of the GPU-accelerated instance.

    The system replaces the operating system of a GPU-accelerated instance by replacing the system disk of the instance. You can replace the operating system of a GPU-accelerated instance by replacing the image of the instance. For more information, see Replace the operating system (system disk) of an instance.

  7. In the instance list, click the ID of the instance whose operating system you replaced. On the Instance Details tab, confirm that the operating system and image of the instance are changed.

    验证更换.jpg

  8. Reconnect to the GPU-accelerated instance and run the nvidia-smi command to confirm that the automatic installation feature of the Tesla driver is disabled.

    Dingtalk_20240807181010.jpg

What to do next

After you change the operating system of a GPU-accelerated instance and disable the automatic installation feature of the Tesla driver, manually install the Tesla driver that is compatible with the new operating system of the GPU-accelerated instance based on your business requirements. This way, you can use the high-performance features of the GPU-accelerated instance. For more information, see Manually install a Tesla driver on a GPU-accelerated compute-optimized Linux instance.