You must install an NVIDIA GRID driver if your instances with GPU capabilities require Open Graphics Library (OpenGL). By default, the NVIDIA GRID license that is granted to NVIDIA GPUs is not activated. You can activate the license by using a trial license to use OpenGL. This topic describes how to install NVIDIA GRID drivers for lightweight vgn6i and vgn5i instances with GPU capabilities that are running the Ubuntu 16.04 64-bit operating system.

Prerequisites

  • A vgn6i or vgn5i instance that can access the Internet is created. For more information, see Create a compute optimized instance with GPU. We recommend that you select a Public Image when you create an instance.
  • A remote connection tool such as VNC Viewer is installed on your local machine.
  • An NVIDIA GRID license is obtained. To obtain a license, you can:
    • Submit a ticket to obtain a temporary license for trial. You do not need to build a license server to use this method.
      Note You can submit a ticket to obtain a temporary license for trial only when you use vgn6i or vgn5i instances.
    • Purchase a license from NVIDIA. You must build a license server to use this method. You can purchase an ECS instance and build a license server by following the tutorial that is on the official website of NVIDIA.

Procedure

  1. Disable nouveau.
    nouveau is an open source driver and it must be disabled before you can install another driver.
    1. Connect to the Linux instance. For more information, see Overview.
    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. Then, add the following content to the file to disable nouveau:
      blacklist nouveau
      blacklist lbm-nouveau
      options nouveau modeset=0
    4. Generate kernel initramfs.
      rmmod nouveau
      update-initramfs -u
    5. Restart the instance.
      reboot
  2. Download the NVIDIA GRID driver package.
    1. Connect to the Linux instance. For more information, see Overview.
    2. Download the NVIDIA GRID driver package.
      • vgn5i GRID Guest driver package:
        wget http://nvidia-418.oss-cn-shenzhen.aliyuncs.com/NVIDIA-Linux-x86_64-418.70-grid.run
      • vgn6i GRID Guest driver package:
        wget http://grid-9-2.oss-cn-hangzhou.aliyuncs.com/NVIDIA-Linux-x86_64-430.63-grid.run
  3. Install the NVIDIA GRID driver.
    • vgn5i
      chmod +x NVIDIA-Linux-x86_64-418.70-grid.run
      . /NVIDIA-Linux-x86_64-418.70-grid.run
    • vgn6i
      chmod +x NVIDIA-Linux-x86_64-430.63-grid.run
      . /NVIDIA-Linux-x86_64-430.63-grid.run
  4. Test whether the NVIDIA GRID driver is installed.
    nvidia-smi
    If a command output similar to the following one is displayed, the driver is installed.
  5. Add a license server.
    1. Switch to the /etc/nvidia directory.
      cd /etc/nvidia
    2. Create a file named gridd.conf.
      cp gridd.conf.template gridd.conf
    3. Add license server information to the 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 configurations to take effect.
    reboot
  7. Check whether the license is activated.
    1. Connect to the Linux instance. For more information, see Overview.
    2. Check the license status.
      systemctl status nvidia-gridd
      If License acquired successfully is displayed, the license is activated.