NVIDIA AI Enterprise 2.0 or later
Installing Ubuntu Server 20.04 LTS (Focal Fossa)
NVIDIA AI Enterprise is supported on Ubuntu 20.04 LTS operating systems. It is important to note there are two Ubuntu ISO types: Desktop and Live Server. The Desktop version includes a graphical user interface (GUI), while the Live Server version only operates via a command line. This document uses the Live Server version 20.04 (amd64 architecture) of Ubuntu, though it is worth noting a GUI may be installed later if needed.
Attach the Ubuntu ISO to your host server’s virtual media.
Select your preferred language and press the enter key.
Continue without updating as this guide is built around 20.04.
Configure the keyboard layout and press the enter key.
On this screen, select your network connection type and modify it to fit your internal requirements. This guide uses DHCP for the configuration.
If you have a proxy address, input it in this screen and press Done.
If you have an alternative mirror address for Ubuntu, input it here. Otherwise, if there is a default address, use it and press Done.
Format the entire disk. Then, select a disk to install.
Review the file system summary and select Done if satisfactory. Select Continue in the pop-up window.
Configure the system with a user account, name, and password.
Select Install OpenSSH server and select Done.
Select any server snaps that may be required for internal use in your environment and select Done. Wait for the system to finish installing.
Select Reboot Now on the Ubuntu OS screen.
Disconnect the Ubuntu ISO to your host server’s virtual media.
Installing Red Hat Enterprise Linux 8.4
Attach the Red Hat Enterprise Linux (RHEL) ISO to your host server’s virtual media.
Select your preferred language and Continue.
Next, select Time & Date under the Localization column. Set the time and date as required and click Done.
Next, select Software Packages under the Software column. Select Server and click Done.
Next, select Installation Destination under the System Menu. Select the VMware Virtual disk and click Done.
Next, select Network & Host Name under the System column. If your system is connected to a network, then it will try to get IP from DHCP server otherwise it can be configured manually. Click Done when finished.
Select Root Password under the User Settings Column. Create a password and click Done.
Click Begin Installation to start the install.
The installation will begin as shown below.
Once the installation is completed reboot by clicking the Reboot System.
Disconnect the Ubuntu ISO to your host server’s virtual media.
Install Steps for CLS Scenario
This section will cover the steps required to properly install, configure, and license the NVIDIA driver for CLS users. If you have a DLS, please refer to the Install Steps for DLS Scenario section.
Installing the NVIDIA Driver
Now that you have installed Linux, the NVIDIA AI Enterprise Driver will fully enable GPU operation. Before proceeding with the NVIDIA Driver installation, please confirm that Nouveau is disabled. Instructions to confirm this are located in the Ubuntu section for Ubuntu and in the RHEL section.
Downloading the NVIDIA AI Enterprise Software Driver Using NGC
Before you begin you will need to generate or use an existing API key.
From a browser, go to https://ngc.nvidia.com/signin/email and then enter your email and password.
In the top right corner, click your user account icon and select Setup.
Click Get API Key to open the Setup > API Key page.
NoteThe API Key is the mechanism used to authenticate your access to the NGC container registry.
Click Generate API Key to generate your API key.
NoteA warning message appears to let you know that your old API key will become invalid if you create a new key.
Click Confirm to generate the key.
Your API key appears.
ImportantYou only need to generate an API Key once. NGC does not save your key, so store it in a secure place. (You can copy your API Key to the clipboard by clicking the copy icon to the right of the API key.)Should you lose your API Key, you can generate a new one from the NGC website. When you generate a new API Key, the old one is invalidated.
Run the following commands to install the NGC CLI for either AMD64 or ARM64
AMD64 Linux Install: The NGC CLI binary for Linux is supported on Ubuntu 16.04 and later distributions.
Download, unzip, and install from the command line by moving to a directory where you have execute permissions and then running the following command:
wget --content-disposition https://ngc.nvidia.com/downloads/ngccli_linux.zip && unzip ngccli_linux.zip && chmod u+x ngc-cli/ngc
ARM64 Linux Install: The NGC CLI binary for ARM64 is supported on Ubuntu 18.04 and later distributions.
Download, unzip, and install from the command line by moving to a directory where you have execute permissions and then running the following command:
wget --content-disposition https://ngc.nvidia.com/downloads/ngccli_arm64.zip && unzip ngccli_arm64.zip && chmod u+x ngc-cli/ngc
NoteThe NGC CLI installations for Windows NGC CLI, Arm64 MacOs, or Intel MacOs can be found here
ImportantThe installation instructions for both AMD64 and ARM64 are the same in the below sections.
Check the binary’s MD5 hash to ensure the file wasn’t corrupted during download.
$ md5sum -c ngc.md5
Add your current directory to path.
$ echo "export PATH=\"\$PATH:$(pwd)\"" >> ~/.bash_profile && source ~/.bash_profile
You must configure NGC CLI for your use so that you can run the commands. Enter the following command, including your API key when prompted.
$ ngc config set Enter API key [no-apikey]. Choices: [<VALID_APIKEY>, 'no-apikey']: Enter CLI output format type [ascii]. Choices: [ascii, csv, json]: ascii Enter org [no-org]. Choices: ['no-org']: Enter team [no-team]. Choices: ['no-team']: Enter ace [no-ace]. Choices: ['no-ace']: Successfully saved NGC configuration to /home/$username/.ngc/config
Download the NVIDIA AI Enterprise Software Driver.
Follow the driver installation based on the operating system installed in the previous steps.
Installing the NVIDIA Driver using the .run file with Ubuntu
Installation of the NVIDIA AI Enterprise software driver for Linux requires:
Compiler toolchain
Kernel headers
Log in to the system and check for updates.
$ sudo apt-get update
Install the gcc compiler and the make tool in the terminal.
$ sudo apt-get install build-essential
Download the NVIDIA AI Enterprise Software Driver.
$ ngc registry resource download-version "nvaie/vgpu_guest_driver_2_1:510.73.08"
Navigate to the directory containing the NVIDIA Driver .run file. Then, add the Executable permission to the NVIDIA Driver file using the chmod command.
$ cd vgpu_guest_driver_2_1:510.73.08 $ sudo chmod +x NVIDIA-Linux-x86_64-510.73.08-grid.run
From a console shell, run the driver installer as the root user, and accept defaults.
$ sudo sh ./NVIDIA-Linux-x86_64-510.73.08-grid.run
Reboot the system.
$ sudo reboot
After the system has rebooted, confirm that you can see your NVIDIA vGPU device in the output from nvidia-smi.
$ nvidia-smi
After installing the NVIDIA vGPU compute driver, you can license any NVIDIA AI Enterprise Software licensed products you are using.
Installing the NVIDIA Driver using the .run file with RHEL
Before starting the driver install Secure Boot will need to be disabled as shown in Installing Red Hat Enterprise Linux 8.4 section.
Register machine to RHEL using subscription-manager with the command below.
$ subscription-manager register
Satisfy the external dependency for EPEL for DKMS.
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
For RHEL 8, ensure that the system has the correct Linux kernel sources from the Red Hat repositories.
$ dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
NoteThe NVIDIA driver requires that the kernel headers and development packages for the running version of the kernel be installed at the time of the driver installation, as well whenever the driver is rebuilt. For example, if your system is running kernel version 4.4.0, the 4.4.0 kernel headers and development packages must also be installed.
Install additional dependencies for NVIDIA drivers.
$ dnf install elfutils-libelf-devel.x86_64 $ dnf install -y tar bzip2 make automake gcc gcc-c++ pciutils libglvnd-devel
Update the running kernel:
$ dnf install -y kernel kernel-core kernel-modules
Confirm the system has the correct Linux kernel sources from the Red Hat repositories after update.
$ dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
Download the NVIDIA AI Enterprise Software Driver.
$ ngc registry resource download-version "nvaie/vgpu_guest_driver_2_1:510.73.08"
Navigate to the directory containing the NVIDIA Driver .run file. Then, add the Executable permission to the NVIDIA Driver file using the chmod command.
$ sudo chmod +x NVIDIA-Linux-x86_64-510.73.08-grid.run
From the console shell, run the driver installer and accept defaults.
$ sudo sh ./NVIDIA-Linux-x86_64-510.73.08-grid.run
NoteAccept any warnings and ignore the CC version check
Reboot the system.
$ sudo reboot
After the system has rebooted, confirm that you can see your NVIDIA vGPU device in the output from nvidia-smi.
$ nvidia-smi
After installing the NVIDIA vGPU compute driver, you can license any NVIDIA AI Enterprise Software licensed products you are using.
Licensing the NVIDIA Driver
To use an NVIDIA software licensed product, each client system to which a physical or virtual GPU is assigned must be able to obtain a license from the NVIDIA License System. A client system can be a system that is configured with NVIDIA vGPU, a system that is configured for GPU pass through, or a physical host to which a physical GPU is assigned in a bare-metal deployment.
Install Steps for DLS Scenario
This section will cover the steps required to properly install, configure, and license the NVIDIA driver for DLS users. If you have a CLS, please refer to the install steps for the Install Steps for CLS Scenario section
Installing the NVIDIA Driver
Now that you have installed Linux, the NVIDIA AI Enterprise Driver will fully enable GPU operation. Before proceeding with the NVIDIA Driver installation, please confirm that Nouveau is disabled. Instructions to confirm this are located Ubuntu section for Ubuntu and RHEL section for RHEL.
Downloading the NVIDIA AI Enterprise Software Driver
Before you begin you will need to download the NVIDIA Driver.
Follow the driver installation based on the operating system installed in the previous steps.
Installing the NVIDIA Driver using the .run file with Ubuntu
Installation of the NVIDIA AI Enterprise software driver for Linux requires:
Compiler toolchain
Kernel headers
Log in to the system and check for updates.
$ sudo apt-get update
Install the gcc compiler and the make tool in the terminal.
$ sudo apt-get install build-essential
Navigate to the directory containing the NVIDIA Driver .run file. Then, add the Executable permission to the NVIDIA Driver file using the chmod command.
$ cd NVIDIA-Linux-x86_64-510.73.08.run $ sudo chmod +x NVIDIA-Linux-x86_64-510.73.08.run
From a console shell, run the driver installer as the root user, and accept defaults.
$ sudo sh ./ NVIDIA-Linux-x86_64-510.73.08.run
Reboot the system.
$ sudo reboot
After the system has rebooted, confirm that you can see your NVIDIA vGPU device in the output from nvidia-smi.
$ nvidia-smi
After installing the NVIDIA vGPU compute driver, you can license any NVIDIA AI Enterprise Software licensed products you are using.
Installing the NVIDIA Driver using the .run file with RHEL
Before starting the driver install Secure Boot will need to be disabled as shown in Installing Red Hat Enterprise Linux 8.4 section.
Register machine to RHEL using subscription-manager with the command below.
$ subscription-manager register
Satisfy the external dependency for EPEL for DKMS.
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
For RHEL 8, ensure that the system has the correct Linux kernel sources from the Red Hat repositories.
$ dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
NoteThe NVIDIA driver requires that the kernel headers and development packages for the running version of the kernel be installed at the time of the driver installation, as well whenever the driver is rebuilt. For example, if your system is running kernel version 4.4.0, the 4.4.0 kernel headers and development packages must also be installed.
Install additional dependencies for NVIDIA drivers.
$ dnf install elfutils-libelf-devel.x86_64 $ dnf install -y tar bzip2 make automake gcc gcc-c++ pciutils libglvnd-devel
Update the running kernel:
$ dnf install -y kernel kernel-core kernel-modules
Confirm the system has the correct Linux kernel sources from the Red Hat repositories after update.
$ dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
Navigate to the directory containing the NVIDIA Driver .run file. Then, add the Executable permission to the NVIDIA Driver file using the chmod command.
$ cd NVIDIA-Linux-x86_64-510.73.08.run $ sudo chmod +x NVIDIA-Linux-x86_64-510.73.08.run
From the console shell, run the driver installer and accept defaults.
./ NVIDIA-Linux-x86_64-510.73.08.run
Reboot the system.
$ sudo reboot
After the system has rebooted, confirm that you can see your NVIDIA vGPU device in the output from nvidia-smi.
$ nvidia-smi
After installing the NVIDIA vGPU compute driver, you can license any NVIDIA AI Enterprise Software licensed products you are using.