> This page is for NVIDIA AI Enterprise: VMware Deployment Guide.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/ai-enterprise/deployment/llms.txt.

Because C-Series vGPUs have large BAR memory settings, using these vGPUs has some restrictions on VMware ESXi.

* The guest OS must be a 64-bit OS.
* 64-bit MMIO and EFI boot must be enabled for the VM.
* The guest OS must be able to be installed in EFI boot mode.
* The VM's MMIO space must be increased to in correlation to GPU model.
* For GPUDirectRDMA P2P must be enabled.

## Creating a Virtual Machine

These instructions are to assist in making a VM from scratch that will support NVIDIA vGPU. Later, the VM will be used as a gold master image. Use the following procedure to configure a vGPU for a single guest desktop:

1. Browse to the host or cluster using the *vSphere Web Client*.

   ![](/ai-enterprise/deployment/_fern-files/_img/5acbc2c8e42a931c97371b4a3854ba0c1ed1ac67ad540456606d0e0f2c3021af.webp)

2. Right-click the desired host or cluster and select **New Virtual Machine**.

   ![](/ai-enterprise/deployment/_fern-files/_img/a686cf4f38b1f308763ec815a8dbdac23059dc584e2ee65dc156d4c716e502df.webp)

3. Select **Create a new virtual machine** and click **Next**.

   ![](/ai-enterprise/deployment/_fern-files/_img/da537499115448630148f82be16d96e91274b35eb3b46c96b4e8fdef0d2bcf6c.webp)

4. Enter a name for the virtual machine. Next, choose the location to host the virtual machine using the **Select a location for the virtual machine** section. Click **Next** to continue.

   ![](/ai-enterprise/deployment/_fern-files/_img/6a0ca450ebf110b6c0399521f3ae629dcc6ca4a1ba0d35bd86b5b3dd7a539865.webp)

5. Select a compute resource to run the VM. Click **Next** to continue.

   > **Note**
   >
   > This compute resource should include an NVIDIA vGPU enabled card installed and be correctly configured.

   ![](/ai-enterprise/deployment/_fern-files/_img/f69fb1ff5f7e57c2beea0d2f353b21c568e92d74a9a2b81a916a0ffade2e0873.webp)

6. Select the datastore to host the virtual machine. Click **Next** to continue.

   ![](/ai-enterprise/deployment/_fern-files/_img/36a865b6aaf7d5bba6cb0c02b4b2d6de5f70c1de0940644d385e5b741ac4f54a.webp)

7. Next, select compatibility for the virtual machine. This should reflect the ESXi version for your [NVIDIA-Certified Systems](https://docs.nvidia.com/ngc/ngc-deploy-on-premises/nvidia-certified-systems/index.html). Click **Next** to continue.

   ![](/ai-enterprise/deployment/_fern-files/_img/7acfb3cc6b6d46f4a500696bb0b1eef1b058911d0cec8c2068ef16dccb54d5b0.webp)

8. Select the appropriate Ubuntu Linux OS from the **Guest OS Family** and **Guest OS Version** pull-down menus. Click **Next** to continue.

   ![](/ai-enterprise/deployment/_fern-files/_img/91e730813e85c5e8d1881ac0c72929d7daedbef6b3acabb0ddd808404066b702.webp)

9. Next, we will set up the hardware for the virtual machine. The following table summarizes the settings which we will set up within the upcoming steps.

   | Parameter | Value                        |
   | --------- | ---------------------------- |
   | CPU       | 16 vCPU on a single socket   |
   | RAM       | 64 GB                        |
   | Storage   | 150 GB thin provisioned disk |

10. Expand the CPU options by clicking the greater than sign. Set the **CPU** to 16 and the **Cores per Socket** to 16.

    ![](/ai-enterprise/deployment/_fern-files/_img/bb22c006b0effeb76e2580c3a4d4a17fb8ed3066db8d5199f9d07c346d77834c.webp)

11. Next set the **Memory** to 64 GB.

    ![](/ai-enterprise/deployment/_fern-files/_img/5b22641ae36a3e57ab03c7702c0dc0808ac525cf3e40c8061f993020096fa204.webp)

12. Next expand the **New Hard disk** option by clicking on the greater than sign. Set the storage to 150 GB and the **Disk Provisioning** to Thin Provision.

    ![](/ai-enterprise/deployment/_fern-files/_img/9b71f8f5896d4d900820088ec0c360aa4834640cff5725cca2f3536b6a2107c9.webp)

13. Review the **New Virtual Machine** configuration before completion. Click **Finish** when ready.

    ![](/ai-enterprise/deployment/_fern-files/_img/cde5b4a906b393496daecc2c53f92aaa5ab33c9be8f9f04164ff33b7e3f7eaf4.webp)

14. The new virtual machine container is created.

15. Configure the VM boot options for EFI. Right-click on the new VM and select **Edit Settings**.

    ![](/ai-enterprise/deployment/_fern-files/_img/7bec45d9b8da8a2791dd53ab0e7746708e869fee40fd9c55be4b1b1fc7cedf53.webp)

16. Click on the **VM Options** tab, expand **Boot Options**, change the **Firmware** from BIOS to **EFI**.

    ![](/ai-enterprise/deployment/_fern-files/_img/b504ed198210854a9af735bfca34ad11e384253c6f2b06bfdc68b1fce6e5fcca.webp)

17. Expand **Advanced** and select **Edit Configuration**.

    ![](/ai-enterprise/deployment/_fern-files/_img/567f6f4d1a27686e57bd80780d85c3477d89b53d7afd82164ee53b42faedd548.webp)

18. Adjust the Memory Mapped I/O (MMIO) settings for the VM

    * Click **Add Configuration Params** and add the parameters from the table, fill in `xxx` with the corresponding value in the column MMIO Space Required for the your GPU model.

    | Name                        | Value |
    | --------------------------- | ----- |
    | pciPassthru.64bitMMIOSizeGB | `xxx` |

    | GPU                             | MMIO Space Required |
    | ------------------------------- | ------------------- |
    | NVIDIA A10                      | 64                  |
    | NVIDIA A30                      | 64                  |
    | NVIDIA A40                      | 128                 |
    | NVIDIA A100 40GB (all variants) | 128                 |
    | NVIDIA A100 80GB (all variants) | 256                 |
    | NVIDIA RTX A5000                | 64                  |
    | NVIDIA RTX A5500                | 64                  |
    | NVIDIA RTX A6000                | 128                 |
    | Tesla P100 (all variants)       | 64                  |

    ![](/ai-enterprise/deployment/_fern-files/_img/fadf1369945e26f93fe7a5e1cc5648f7b3007cd5ba7d658436ad8aca07222a0a.webp)

    > **Note**
    >
    > When NVLink is enabled, adjust the MMIO space for each GPU used accordingly.

    * Click **Add Configuration Params** again and add the parameters from the table.

    | Name                     | Value |
    | ------------------------ | ----- |
    | pciPassthru.use64bitMMIO | TRUE  |

    ![](/ai-enterprise/deployment/_fern-files/_img/b99e508a78d310f0e51d6cbb69bd44fc48563ed4f752939490708e19a62bd637.webp)

    > **Note**
    >
    > For GPUDirectRDMA P2P must be enabled.
    >
    > | Name                     | Value |
    > | ------------------------ | ----- |
    > | pciPassthru.use64bitMMIO | TRUE  |

19. Click **Ok** to close the advance configuration window, then click **Ok** to complete the VM configuration.

*New in version 1.1.*

> **Warning**
>
> NVIDIA AI Enterprise supports both [Ubuntu 20.04](/ai-enterprise/deployment/vmware/first-vm#installing-ubuntu-server-lts) and [Red Hat Enterprise Linux 8.4](/ai-enterprise/deployment/vmware/first-vm#installing-red-hat-enterprise-linux). You can find both installation guides below.

### Installing Ubuntu Server LTS

NVIDIA AI Enterprise is supported on Ubuntu 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.

1. Upload the ISO to the datastore of your VM. Right-click on the VM container in vSphere Client and select **Edit Settings**. Mount the ISO to your VM by clicking **Browse** and make sure to check **Connect At Power On**. Click **Okay** to finish.

   ![](/ai-enterprise/deployment/_fern-files/_img/88f237b8a4f1b965a7861ce4b3c47ccae5a7cc421273dde794bca42e90ce283a.webp)

2. Power on the VM and wait for the installation screen to appear.

3. Select your preferred language and press the enter key.

   ![](/ai-enterprise/deployment/_fern-files/_img/32044b380463223ae1bfcf131e6664b2e16a671bfe98635e1fd20d9670cab786.webp)

4. Continue without updating as this guide is built around 20.04.

   ![](/ai-enterprise/deployment/_fern-files/_img/f5fb519533c1fbf8c26988f11ca03599f06bec828832a398830bb8f16ca7e90a.webp)

5. Configure the keyboard layout and press the enter key.

   ![](/ai-enterprise/deployment/_fern-files/_img/77dd6a3f1ee2bcb82d8e9de0d5970d3ce6c54cfe5b42e5bbb8963e07e01f5568.webp)

6. On this screen, select your network connection type and modify it to fit your internal requirements. This guide uses DHCP for the configuration.

   ![](/ai-enterprise/deployment/_fern-files/_img/a6e5e387991d703d274016fb50fcfa4a7085f587bc2eb283bfa6ef55afd797ce.webp)

7. If you have a proxy address, input it in this screen and press **Done**.

   ![](/ai-enterprise/deployment/_fern-files/_img/3fc6740f8951bae538cc3420c2c9ac88726736439147b37f3098f8880ce7fef4.webp)

8. If you have an alternative mirror address for Ubuntu, input it here. Otherwise, if there is a default address, use it and press **Done**.

   ![](/ai-enterprise/deployment/_fern-files/_img/b35e7ed365f9475b5f94daae20056d53d315844d2a98e51c4fc3ce7f07031819.webp)

9. Format the entire disk. Then, select a disk to install.

   ![](/ai-enterprise/deployment/_fern-files/_img/1c5c71a5b946c9354320ccb5c2f51c06284e3873491fae08fc267f292c9f3308.webp)

10. Review the file system summary and select **Done** if satisfactory. Select **Continue** in the pop-up window.

    ![](/ai-enterprise/deployment/_fern-files/_img/9b7ffb67a956a3bccf5ed630b2c183e233e0402b8cacbdfe9c4e837f040f85a0.webp)

11. Configure the VM with a user account, name, and password.

    ![](/ai-enterprise/deployment/_fern-files/ai-enterprise-deployment.docs.buildwithfern.com/d9e05b0e865bd3298131a19ad50bbdcb56bdcc72c70d2c5a11d682be0dbee849/pages/vmware/images/dg-first-vm-22.png)

12. Select **Install OpenSSH server** and select **Done**.

    ![](/ai-enterprise/deployment/_fern-files/_img/d3ba230bfc24debe6ed26c127a3e0e13074bf4a1578fdb4a8facdc9fc2543d86.webp)

13. Select any server snaps that may be required for internal use in your environment and select **Done**. Wait for the system to finish installing.

    ![](/ai-enterprise/deployment/_fern-files/_img/4c7f585f04ddf8756d66d962ecb36bd053ae3103aefdec4c53f9900296510f8d.webp)

14. Select **Reboot Now** on the Ubuntu OS screen.

    ![](/ai-enterprise/deployment/_fern-files/_img/3eeb5f19f1645b1d190e341348b6128a77c7cb008d438e2617a6072ef8d128fa.webp)

15. When the reboot is complete, return to vCenter. Right click on the VM, select **Power**, and click **Power Off**.

    ![](/ai-enterprise/deployment/_fern-files/_img/c41b3d4d61ba3e9d6e864b0f607e23233a62c8447a8f3d4c68c71fce8df6bd4f.webp)

16. Click on the VM in the Navigator window. Right-click the VM and select **Edit Settings**. Uncheck Connect check box on the **CD/DVD drive 1**.

    ![](/ai-enterprise/deployment/_fern-files/_img/7bbbb3b22a97b03ce18c2288f831a84238d2cd316322d030e68319faf70081db.webp)

### Installing Red Hat Enterprise Linux

*New in version 1.1.*

NVIDIA AI Enterprise is supported on Red Hat Enterprise Linux operating system.

1. Before the installation can begin, you will need to disable Secure Boot on the VM. Right click on the VM and select **Edit Settings…**.

   ![](/ai-enterprise/deployment/_fern-files/_img/f40e6abcc1f10f81b660500d280deb8122b4fc9c91278610a385c2b255d0bca0.webp)

2. Next, select VM Options at the top of the window. Locate **Boot Options**, make sure **Secure Boot** is unchecked, and click **Ok**.

   ![](/ai-enterprise/deployment/_fern-files/_img/2488ace37bb066a5d42adf8f3000f92de7fbfbfe0044fbee776ae4bc912f50b0.webp)

   > **Warning**
   >
   > Make sure you have added the listed [Prerequisites](/ai-enterprise/deployment/vmware/prereqs) and the PCI configuration parameters listed in **Step #18** of [Creating a Virtual Machine](/ai-enterprise/deployment/vmware/first-vm#creating-a-virtual-machine)

3. Upload the ISO to the datastore of your VM. Right-click on the VM container in vSphere Client and select **Edit Settings**. Mount the ISO to your VM by clicking **Browse** and make sure to check **Connect At Power On**. Click **Okay** to finish.

   ![](/ai-enterprise/deployment/_fern-files/_img/88f237b8a4f1b965a7861ce4b3c47ccae5a7cc421273dde794bca42e90ce283a.webp)

4. Power on the VM and wait for the installation screen to appear.

   ![](/ai-enterprise/deployment/_fern-files/ai-enterprise-deployment.docs.buildwithfern.com/399e93c1932d6b8c475f5fcdb8e64ee63199bc3a59cfe8c463b8d81d15fafc08/pages/vmware/images/rhel-boot.png)

5. Select your preferred language and **Continue**.

   ![](/ai-enterprise/deployment/_fern-files/_img/7a45f698acf786e4aa4909d06ef4e5c65b142f1c8690158c038fcfc79203c88a.webp)

6. Next, select **Time & Date** under the **Localization** column. Set the time and date as required and click **Done**.

   ![](/ai-enterprise/deployment/_fern-files/_img/77fe081d142e09d9841f4cc5c563e83fa7386ea4969e1e58a3d1680a5862f26a.webp)

7. Next, select **Software Packages** under the **Software** column. Select **Server** and click **Done**.

   ![](/ai-enterprise/deployment/_fern-files/_img/188013db191b69f9902e92de4ff5d8a3695968a443414879c5fa5fc54cc59e3b.webp)

8. Next, select **Installation Destination** under the **System Menu**. Select the **VMware Virtual disk** and click **Done**.

   ![](/ai-enterprise/deployment/_fern-files/_img/a1614ef94b207994c5b7adf8413525348d9695b40ac991392f9f26f0a5c343b7.webp)

9. 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.

   ![](/ai-enterprise/deployment/_fern-files/_img/f5dacb68005c3dd8da64fa1dcfb80cd97453ec066af55c83114e6bf8c0996339.webp)

10. Select Root Password under the User Settings Column. Create a password and click Done.

    ![](/ai-enterprise/deployment/_fern-files/_img/7ff3422337ba7ac6b54a35aa8aec7594ccf684b41181f45154376403eaddf99e.webp)

11. Click Begin Installation to start the install.

    ![](/ai-enterprise/deployment/_fern-files/_img/7559592edff07179f87df0be514779444f629b0703b1df81efaa6134c54126dc.webp)

12. The installation will begin as shown below.

    ![](/ai-enterprise/deployment/_fern-files/_img/2e3d7949d0672add1e37e908f75513c64f68dda5aabe5df88a9d95f79affeadd.webp)

13. Once the installation is completed reboot the VM by clicking the Reboot System.

    ![](/ai-enterprise/deployment/_fern-files/_img/df623b93b617382aa0612ea2ae392807ef0d7208507bc05dd3dca7c0f60bee7e.webp)

14. When the reboot is complete, return to vCenter. Right click on the VM, select **Power**, and click **Power Off**.

15. Click on the VM in the Navigator window. Right-click the VM and select **Edit Settings**. Uncheck Connect check box on the **CD/DVD drive 1**.

    ![](/ai-enterprise/deployment/_fern-files/_img/7bbbb3b22a97b03ce18c2288f831a84238d2cd316322d030e68319faf70081db.webp)

## Enabling the NVIDIA vGPU

Use the following procedure to enable vGPU support for your virtual machine. You must edit the virtual machine settings.

1. Power down the virtual machine.

   ![](/ai-enterprise/deployment/_fern-files/_img/1d19d0efdf6c41192f98303dfcda1e978e5d7986b95904dfd37ec27b556b6451.webp)

2. Click on the VM in the Navigator window. Right-click the VM and select **Edit Settings**.

   ![](/ai-enterprise/deployment/_fern-files/_img/cc7826d2828cf01d7c42d353de1d392caa949db95dbe85b27d9741b80b49d001.webp)

3. Click on the **New Device** bar and select **PCI device**.

   ![](/ai-enterprise/deployment/_fern-files/_img/3cb83bf408b1582f6ffb23b4415c00628388278eecaa8e784dc1d238ad612b4c.webp)

4. Select the desired GPU Profile underneath the **New PCI device** drop-down.

   ![](/ai-enterprise/deployment/_fern-files/_img/da5a95eb296a7b8886efd8cd24d9e299f772a8f99eb2cf0074c3ff2ec895c65c.webp)

   > **Note**
   >
   > NVIDIA AI Enterprise requires a [C-series profile](https://docs.nvidia.com/ai-enterprise/latest/user-guide/index.html#grid).

5. Click **OK** and power on the VM.

> **Note**
>
> A single VM may have multiple GPU (PCI devices) attached, however, this requires that each GPU be configured with maximum memory allocation.

## Installing the NVIDIA Driver in the Virtual Machine

Now that you created a Linux VM, we will boot the VM, and install the NVIDIA AI Enterprise Guest driver in the VM to fully enable GPU operation.

> **Warning**
>
> For a VM with vGPU, please continue in the sections below for vGPU guest driver installation steps.
> If you are using a VM with GPU passthrough: a vGPU driver or Data Center Driver can be used.
> Instructions for installing the Data Center Driver driver can be found [here](https://docs.nvidia.com/ai-enterprise/deployment/bare-metal/latest/first-system.html#data-center-driver-installation).

> **Warning**
>
> Before proceeding with the NVIDIA Driver installation, please confirm that Nouveau is disabled. Instructions to confirm this are different for [Ubuntu](/ai-enterprise/deployment/vmware/nouveau#ubuntu) and for [RHEL](/ai-enterprise/deployment/vmware/nouveau#rhel).

### Downloading the NVIDIA AI Enterprise Software Driver Using NGC

> **Warning**
>
> Before you begin you will need to generate or use an existing [API key](https://docs.nvidia.com/ngc/latest/ngc-private-registry-user-guide.html#prug-generating-api-key).

1. From a browser, go to [https://ngc.nvidia.com/signin/email](https://ngc.nvidia.com/signin/email) and then enter your email and password.

2. In the top right corner, click your user account icon and select **Setup**.

3. Click **Get API Key** to open the **Setup** > **API Key** page.

   > **Note**
   >
   > The API Key is the mechanism used to authenticate your access to the NGC container registry.

4. Click **Generate API Key** to generate your API key.

   > **Note**
   >
   > A warning message appears to let you know that your old API key will become invalid if you create a new key.

5. Click Confirm to generate the key.

6. Your API key appears.

   > **Warning**
   >
   > You 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.

7. Now you will log into the VM using the VM Console link on the left pane of this page.

8. Run the following commands to install the NGC CLI on the [CLI Install page](https://org.ngc.nvidia.com/setup/installers/cli) for either **AMD64** or **ARM64**.

   * 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.

   ```bash
   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
   ```

   > **Tip**
   >
   > For more information on configuring the NGC CLI, see the [Getting Started with the NGC CLI](https://docs.ngc.nvidia.com/cli/cmd.html)

> **Warning**
>
> Follow the driver installation based on the operating system installed in the previous steps.
>
> * [Installing the NVIDIA Driver using the .run file with Ubuntu](/ai-enterprise/deployment/vmware/first-vm#installing-the-nvidia-driver-using-the-run-file-with-ubuntu)
> * [Installing the NVIDIA Driver using the .run file with RHEL](/ai-enterprise/deployment/vmware/first-vm#installing-the-nvidia-driver-using-the-run-file-with-rhel)

### 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

1. Log in to the VM and check for updates.

   ```bash
   sudo apt-get update
   ```

2. Install the gcc compiler and the make tool in the terminal.

   ```bash
   sudo apt-get install build-essential
   ```

3. To find the latest NVIDIA AI Enterprise vGPU Software Driver, navigate to **NGC Resources** while signed into the NGC Catalog.

   ![](/ai-enterprise/deployment/_fern-files/_img/4836002146223b5d4b796fc71fb4eac3e6fbd8c86c9f5d7f2e12c507a00d0a09.webp)

4. In the left pane, select **NVIDIA AI Enterprise Essentials**, then locate the **NVIDIA vGPU Guest Driver Resource**.

   ![](/ai-enterprise/deployment/_fern-files/_img/51fea287cd716bc11ad0fd1f20f0e28dcc24155407fd246d2eac58296d390673.webp)

5. Select **File Browser**, and the **latest version** (or desired version).

   > **Warning**
   >
   > For the purposes of this guide, we will be using vGPU version 5.2. The commands that follow may be different within your environment based upon versioning.

   ![](/ai-enterprise/deployment/_fern-files/_img/7a84741f21b17d82689c4b83e58d9372e740295e40ce2c743f20aee3e9dd35c6.webp)

6. Select **Download**, then **CLI** to copy the NGC CLI download command to your clipboard.

   ![](/ai-enterprise/deployment/_fern-files/_img/4836002146223b5d4b796fc71fb4eac3e6fbd8c86c9f5d7f2e12c507a00d0a09.webp)

7. Paste this command into your terminal. It should look similar to:

   ```bash
   ngc registry resource download-version "$ngc_driver_long"
   ```

8. Navigate to the directory containing the NVIDIA Driver `.run` file. Then, add the Executable permission to the NVIDIA Driver file using the `chmod` command.

   ```bash
   cd vgpu-guest-driver-5_v5.2/
   sudo chmod +x $run_driver_long
   ```

9. From a console shell, run the driver installer as the root user, and accept defaults.

   ```bash
   sudo sh ./$run_driver_long
   ```

10. Reboot the system.

    ```bash
    sudo reboot
    ```

11. After the system has rebooted, confirm that you can see your NVIDIA vGPU device in the output from `nvidia-smi`.

    ```bash
    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

> **Warning**
>
> Before starting the driver install Secure Boot will need to be disabled as shown in [Installing Red Hat Enterprise Linux 8.4](/ai-enterprise/deployment/vmware/first-vm#installing-red-hat-enterprise-linux)

1. Register machine to RHEL using subscription-manager with the command below.

   ```bash
   subscription-manager register
   ```

2. Satisfy the external dependency for EPEL for Dynamic Kernel Module System (DKMS).

   ```bash
   dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
   dnf install dkms
   ```

   > **Note**
   >
   > Please refer to [The Getting Started with EPEL](https://docs.fedoraproject.org/en-US/epel/getting-started/) documentation for more information.

3. For RHEL 8, ensure that the system has the correct Linux kernel sources from the Red Hat repositories.

   ```bash
   dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
   ```

   > **Note**
   >
   > The 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.

4. Install additional dependencies for NVIDIA drivers.

   ```bash
   dnf install elfutils-libelf-devel.x86_64
   dnf install -y tar bzip2 make automake gcc gcc-c++ pciutils libglvnd-devel
   ```

5. Update the running kernel:

   ```bash
   dnf install -y kernel kernel-core kernel-modules
   ```

6. Confirm the system has the correct Linux kernel sources from the Red Hat repositories after update.

   ```bash
   dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
   ```

7. Download the NVIDIA AI Enterprise Software Driver.

   ```bash
   ngc registry resource download-version "${ngc_driver_long}"
   ```

8. Navigate to the directory containing the NVIDIA Driver .run file. Then, add the **Executable** permission to the NVIDIA Driver file using the *chmod* command.

   ```bash
   sudo chmod +x ${run_driver_long}
   ```

9. From the console shell, run the driver installer and accept defaults.

   ```bash
   sudo sh ./${run_driver_long}
   ```

   > **Note**
   >
   > Accept any warnings and ignore the CC version check

10. Reboot the system.

    ```bash
    sudo reboot
    ```

11. After the system has rebooted, confirm that you can see your NVIDIA vGPU device in the output from *nvidia-smi*.

    ```bash
    nvidia-smi
    ```

After installing the NVIDIA vGPU compute driver, you can license any NVIDIA AI Enterprise Software licensed products you are using.

## Licensing the VM

To use an NVIDIA vGPU 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 VM that is configured with NVIDIA vGPU, a VM that is configured for GPU pass through, or a physical host to which a physical GPU is assigned in a bare-metal deployment.

* [Generating a Client Configuration Token](https://docs.nvidia.com/license-system/latest/nvidia-license-system-user-guide/index.html#generating-client-configuration-token)
* [Configuring a Licensed Client on Linux](https://docs.nvidia.com/license-system/latest/nvidia-license-system-user-guide/index.html#configuring-nls-licensed-client-on-linux)