This topic describes how to install an NVIDIA GRID driver for instances running 64-bit Ubuntu 16.04 of the vgn5i instance type family. You must install an NVIDIA GRID driver if your GPU-equipped compute optimized instance requires Open Graphics Library (OpenGL). By default, the NVIDIA GRID license granted to NVIDIA GPUs is not activated, but you can activate the license by using a trial license to build a license server.

Prerequisites

  • A vgn5i instance that can access the Internet is created. For more information, see Create a compute optimized instance with GPU.
    Note We recommend that you select a Public Image when you create the instance.
  • A remote connection tool such as VNC Viewer is installed on your local machine.
  • An NVIDIA GRID license is obtained. If you need to obtain a license, you can:
    • Visit the NVIDIA official website and register an account to apply for a 90-day trial license.
    • Obtain a temporary license from Alibaba Cloud technical support.
    • Buy a license from NVIDIA.

Procedure

  1. Disable Nouveau.
    1. Connect to the instance.
    2. Check whether the blacklist-nouveau.conf file exists.
      ls /etc/modprobe.d/blacklist-nouveau.conf
    3. If the file exists, skip this step. If the file does not exist, run the vim /etc/modprobe.d/blacklist-nouveau.conf command to create the file and then add the following content to the file:
      blacklist nouveau
      blacklist lbm-nouveau
      options nouveau modeset=0
    4. Remove Nouveau and generate kernel initramfs.
      rmmod nouveau
      update-initramfs -u
    5. Restart the instance.
      reboot
  2. Download the NVIDIA GRID driver package.
    1. Connect to the instance.
    2. Download the NVIDIA GRID driver package.
      • If your instance is located in China (Shenzhen) Zone C or Zone D, run the following command to download GRID 7.0 Guest:
        wget http://nvdia-driver-410.oss-cn-shenzhen.aliyuncs.com/NVIDIA-Linux-x86_64-410.39-grid.run
      • If your instance is located in other regions or zones, run the following command to download GRID 8.0 Guest:
        wget http://nvidia-418.oss-cn-shenzhen.aliyuncs.com/NVIDIA-Linux-x86_64-418.70-grid.run
  3. Install the NVIDIA GRID driver.
    chmod +x NVIDIA-Linux-x86_64-410.39-grid.run
    ./NVIDIA-Linux-x86_64-410.39-grid.run
  4. Check whether the NVIDIA GRID driver is installed.
    nvidia-smi
    The driver is installed if GRID driver information similar to the following figure is displayed.

  5. Add a license server.
    1. Switch to the /etc/nvidia directory.
      cd /etc/nvidia
    2. Create a gridd.conf file.
      cp gridd.conf.template gridd.conf
    3. Add license server information to the created gridd.conf file.
      ServerAddress=IP address of the license server
      ServerPort=Port of the license server (default port: 7070)
      FeatureType=1
  6. Restart the instance for the license server configuration to take effect.
    reboot
  7. Check whether the license is activated.
    1. Connect to the instance.
    2. Check the license status.
      systemctl status nvidia-gridd
      The license is activated if License acquired successfully is displayed.