NVIDIA GRID drivers must be installed on vGPU-accelerated instances. By default, the NVIDIA GRID license granted to NVIDIA GPUs is not activated. You must purchase and activate the license to use Open Graphics Library (OpenGL). This topic describes how to install an NVIDIA GRID driver and activate the NVIDIA GRID license. In the examples, vgn6i or vgn5i vGPU-accelerated instances that run the Ubuntu 16.04 64-bit operating system are used.

Prerequisites

  • A vgn6i or vgn5i instance is created and is able to access the Internet. When you create the instance, we recommend that you select an image from the Public Image drop-down list.
    Note This topic describes how to install NVIDIA GRID drivers on vGPU-accelerated Linux instances. For vGPU-accelerated Windows instances, you can select paid images that have NVIDIA GRID drivers pre-installed when you create the instances.
  • A Virtual Network Computing (VNC) application is installed. In this example, VNC Viewer is used.
  • A GRID license is obtained. To obtain a GRID license, submit a ticket.

Background information

This topic describes how to install NVIDIA GRID drivers on vgn6i or vgn5i vGPU-accelerated instances. For information about how to install NVIDIA GRID drivers on GPU-accelerated compute-optimized instances, see Install a NVIDIA GRID driver on a GPU-accelerated compute-optimized Linux instance.

Procedure

  1. Disable nouveau.
    nouveau is an open source driver. It must be disabled before you can install another driver.
    1. Connect to the Linux instance. For more information, see Guidelines on instance connection.
    2. Check whether the blacklist-nouveau.conf file exists.
      ls /etc/modprobe.d/blacklist-nouveau.conf
    3. If the blacklist-nouveau.conf file exists and contains the following content, skip this step. If the blacklist-nouveau.conf 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 Guidelines on instance connection.
    2. Download the NVIDIA GRID driver package.
      • GRID guest driver package for vgn5i instances:
        wget http://nvidia-418.oss-cn-shenzhen.aliyuncs.com/NVIDIA-Linux-x86_64-418.70-grid.run
      • GRID guest driver package for vgn6i instances:
        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 the NVIDIA GRID driver is installed, a command output similar to the following one is displayed.
  5. Add a license server.
    1. Go to the /etc/nvidia directory.
      cd /etc/nvidia
    2. Create a file named gridd.conf.
      cp gridd.conf.template gridd.conf
    3. Add the 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 Guidelines on instance connection.
    2. Check the license state.
      systemctl status nvidia-gridd
      If the license is activated, License acquired successfully is displayed.