> This page is for version 10.1 (default).
> For other versions, use one of these documentation indexes:
> - 10.1 (default): https://docs.nvidia.com/baseos/baseos-10-user-guide/10.1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/baseos/baseos-10-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/baseos/baseos-10-user-guide/_mcp/server.

# Installing BaseOS Software

The NVIDIA BaseOS software provides a turnkey solution for running AI and
analytics workloads. It includes platform-specific configurations, diagnostic
and monitoring tools, and drivers required for a stable, tested, and supported
OS that runs AI, machine learning, and analytics applications on DGX platforms.

## Installing BaseOS 10.1 on Ubuntu 26.04

This chapter describes how to install and configure the BaseOS 10.1
software on a system that is running Ubuntu 26.04.

> **Warning**
>
> By installing the BaseOS software, you are confirming that you have read and
> agree to be bound by the [NVIDIA Software License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-software-license-agreement/).
> You are also confirming that you understand that any pre-release software and
> materials available that you elect to install may not be fully
> functional, may contain errors or design flaws, and may have reduced or
> different security, privacy, availability, and reliability standards relative
> to commercial versions of NVIDIA software and materials, and that you use
> pre-release versions at your risk.

### Ubuntu Installation Considerations

Review the following consideration before installing the BaseOS software.

#### Ubuntu Pro (Optional)

The following information applies only to customers with a valid Ubuntu
Pro subscription for their system.

Ubuntu Pro provides Expanded Security Maintenance (ESM), which extends
security update coverage for Ubuntu LTS releases.

If you use Ubuntu Pro, verify that your system is attached to your
subscription and that the required services are enabled:

```bash
sudo pro status
```

For instructions on attaching, managing, or renewing your subscription,
refer to the [Ubuntu Pro documentation](https://documentation.ubuntu.com/pro/).

### Access to Software Repositories

The BaseOS 10.1 software is available from repositories that you can access
from the internet. If your installation does not allow an internet connection,
refer to [Air-Gapped Installations](/baseos/baseos-10-user-guide/10.1/air-gapped-installations) for information about installing
and upgrading software on air-gapped systems.

### Enabling NVIDIA Repositories

The following steps enable the NVIDIA repositories.

1. Install the NVIDIA repository package for your architecture.

   #### x86_64 systems

   ```bash
   curl --proto '=https' --tlsv1.2 -fsSL --output-dir /tmp/ \
     -O https://repo.download.nvidia.com/baseos/10/ubuntu/resolute/amd64/nvidia-repositories.deb
   sudo apt install /tmp/nvidia-repositories.deb
   ```

   #### ARM64 systems

   ```bash
   curl --proto '=https' --tlsv1.2 -fsSL --output-dir /tmp/ \
     -O https://repo.download.nvidia.com/baseos/10/ubuntu/resolute/arm64/nvidia-repositories.deb
   sudo apt install /tmp/nvidia-repositories.deb
   ```

2. Update the internal APT database with the latest version information for all packages.

   ```bash
   sudo apt update
   ```

3. Recommended: Upgrade all software packages to the latest versions and reboot the system.
   You can defer rebooting the system until after you install the kernel.

   ```bash
   sudo apt full-upgrade
   ```

   ```bash
   sudo reboot
   ```

### Installing the Linux Kernel

BaseOS 10.1 has been qualified with the NVIDIA Linux kernel available from
the Ubuntu repository.

> **Info**
>
> You must install the NVIDIA kernel and reboot the system before installing
> any NVIDIA drivers or system packages. DKMS modules are compiled against
> the running kernel, so the correct kernel must be active first.

1. Install the Linux kernel for your system architecture.

   #### x86_64 systems

   ```bash
   sudo apt install -y linux-nvidia
   ```

   #### ARM64 systems

   ```bash
   sudo apt install -y linux-nvidia-64k-hwe-26.04
   ```

2. Reboot the system to activate the new kernel.

   ```bash
   sudo reboot
   ```

3. After rebooting, verify that the system is running the expected kernel.

   ```bash
   uname -r
   ```

   The output should show the NVIDIA-qualified kernel version. Confirm that
   it matches the version installed in the previous step before proceeding.

4. Remove kernel packages for versions other than the running NVIDIA kernel.

   Complete this step only after confirming that the system is running the
   newly installed NVIDIA kernel. The DKMS kernel modules provided by
   `nvidia-system-mlnx-drivers`, installed later in this procedure, do not
   build against non-NVIDIA kernels.

   ```bash
   dpkg -l 'linux-image-*' 'linux-headers-*' 'linux-modules-*' 'linux-tools-*' |
       awk '/^ii/{print $2}' | grep -E '[0-9]+\.[0-9]+\.[0-9]+-[0-9]+' |
       grep -v "$(uname -r | sed 's/-generic$//')" | xargs -r sudo apt purge -y
   ```

### Installing NVIDIA System Configurations and Tools

The NVIDIA BaseOS software includes tools and system-specific configurations
and optimizations to leverage the advanced NVIDIA features. The software
components are available in the form of software packages, which are also
bundled into metapackages for convenience. For details about these packages
and metapackages, refer to the [BaseOS Software Packages](/baseos/baseos-10-user-guide/10.1/base-os-software-packages).

The following steps install the full set of BaseOS 10.1 system packages.

1. Install NVIDIA system tools and utilities.

   * Install core system configurations including platform tuning profiles,
     IPMI and NVMe utilities, GRUB configuration, and TPM tools.

     ```bash
     sudo apt install nvidia-system-core
     ```

   * Install system administration tools including the NVIDIA Container
     Toolkit, OpenSSH server, NFS and CIFS support, network and storage
     utilities, and power management.

     ```bash
     sudo apt install nvidia-system-utils
     ```

   * Install diagnostic tools including storage I/O testing, memory stress
     testing, I2C utilities, and crash-dump collection.

     ```bash
     sudo apt install nvidia-system-diag
     ```

   * Install development tools including build-essential, cmake, git, gdb,
     and Python virtual environments.

     ```bash
     sudo apt install nvidia-system-extra
     ```

   * **Optional**: Install additional language dictionaries for Italian,
     German, Portuguese, Spanish, and Swiss.

     ```bash
     sudo apt install nvidia-system-extra-localization
     ```

2. **Recommended**: Disable unattended upgrades.

   Ubuntu periodically checks for security and other bug fixes and automatically
   installs updated software packages typically overnight. Because this can be
   disruptive, regularly check for updates and install them manually.

   ```bash
   sudo apt purge -y unattended-upgrades
   ```

### Configuring and Enabling TuneD

TuneD is a system-tuning service that applies a profile of kernel, boot, and
network settings to the system. The `nvidia-tuned-profiles` package, which
is installed with the `nvidia-system-core` metapackage, provides a set of
TuneD profiles for each supported GPU architecture.

> **Info**
>
> The included profiles are examples based on NVIDIA DGX system configurations
> and might require changes for your system. For example, a profile might specify
> a serial console port that differs from the one your system uses.

Before activating a profile, refer to [Managing and Customizing TuneD Profiles](/baseos/baseos-10-user-guide/10.1/managing-and-customizing-tune-d-profiles) to
identify the profiles included with BaseOS and their settings. That chapter
also describes how to adapt an included profile to your system or create your
own profile by using the included profiles as examples.

#### Configuring the TuneD Profile

1. List the installed TuneD profiles and identify the profile for your system.

   ```bash
   sudo tuned-adm list
   ```

2. Activate the profile. Replace `<profile>` with the name of an included
   profile or your custom profile.

   ```bash
   sudo tuned-adm profile <profile>
   ```

   For example, to activate the included performance profile for DGX H100:

   ```bash
   sudo tuned-adm profile dgx-h100-performance
   ```

#### Enabling TuneD

1. Enable the TuneD service at boot and start it immediately.

   ```bash
   sudo systemctl enable --now tuned
   ```

2. Verify that the profile is active.

   ```bash
   sudo tuned-adm active
   ```

   The command shows the name of the active profile.

> **Note**
>
> Most profile settings are applied immediately when the profile is
> activated. However, changes to the kernel command line take effect only
> after you reboot the system. You can reboot the system later, after
> installing the software described in the following sections. After the
> reboot, run `sudo tuned-adm verify` to confirm that all system settings
> match the profile.

### Installing GPU and Network Drivers

NVIDIA GPU and DOCA networking drivers are available as DKMS (Dynamic Kernel
Module Support) packages from NVIDIA and as precompiled packages from
Canonical. BaseOS 10.1 has only been qualified with the DKMS packages.

DKMS is a framework that automatically rebuilds kernel modules whenever a new
kernel is installed. DKMS packages contain the driver source code and compile
the kernel modules locally on the system. Without DKMS, kernel modules such as
the NVIDIA GPU driver or DOCA networking drivers would need to be manually
recompiled every time the kernel is updated.

DKMS works by keeping the module source code on the system. When the system
installs a new kernel, DKMS automatically compiles the module source against
the new kernel's headers and installs the resulting module so that it is available
at boot.

DKMS requires that the matching kernel header package is installed so the module
can be compiled. For details, refer to the [NVIDIA Driver Installation Guide for Ubuntu](https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/ubuntu.html#preparation).

1. Install the headers for the running kernel before installing any drivers.

   ```bash
   sudo apt install -y linux-headers-$(uname -r)
   ```

2. Install the kernel tools package for your architecture.

   #### x86_64 systems

   ```bash
   sudo apt install -y linux-tools-nvidia
   ```

   #### ARM64 systems

   ```bash
   sudo apt install -y linux-tools-nvidia-64k-hwe-26.04
   ```

#### Installing the GPU Driver

The following steps install the NVIDIA open GPU driver and associated software
packages qualified with BaseOS 10.1. The driver branch is defined by the
BaseOS release and is upgraded together with the other components. To ensure
compatibility, always update the BaseOS software as a unit rather than upgrading
individual driver packages independently. Refer to
[Upgrading the BaseOS Software](/baseos/baseos-10-user-guide/10.1/upgrading-base-os-software) for details.

> **Note**
>
> BaseOS 10.1 uses DMA-BUF for supported GPUDirect RDMA configurations and
> does not require the `nvidia_peermem` kernel module. Do not configure the
> system to load `nvidia_peermem` by default. Its absence after an upgrade is
> expected and does not by itself indicate a GPUDirect RDMA failure.
>
> Support for `nvidia-peermem.ko` is deprecated in CUDA Toolkit 13.5, which
> corresponds to GPU driver branch R620. DMA-BUF support for GPUDirect RDMA
> has been available since R515 with the NVIDIA open GPU kernel
> modules and Linux kernel 5.12 or newer. Refer to
> [Deprecated or Dropped Features](https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#deprecated-or-dropped-features)
> and the [CUDA Driver Branch table](https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#cuda-driver)
> in the CUDA Toolkit 13.5 Release Notes.
>
> Earlier releases installed `nvidia-peermem-loader` to load `nvidia_peermem`
> automatically. The loader is now an empty transitional package that can
> be safely removed, and the `nvidia-base` TuneD profile no longer loads
> the module. The module remains available for legacy PeerDirect consumers;
> applications that use it should migrate to DMA-BUF.
>
> NCCL uses DMA-BUF automatically when the GPU driver, Linux kernel, and
> network driver support it; no additional module loading or application
> configuration is required. Other applications or communication libraries
> must also support DMA-BUF. Refer to
> [GPUDirect RDMA and GPUDirect Storage](https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/gpu-operator-rdma.html#about-gpudirect-rdma-and-gpudirect-storage)
> for DMA-BUF prerequisites and application support.

1. Install the NVIDIA driver pinning package.

   The driver pinning package selects the supported driver version for BaseOS 10.1.
   Pinning the driver restricts package updates to only security updates and
   critical bug fixes for that driver branch and avoids installing a newer branch
   when you update the system using apt upgrade.

   ```bash
   sudo apt install nvidia-driver-pinning-620
   ```

2. Install the NVIDIA open GPU driver, persistence daemon, and MIG manager.

   > **Note**
   >
   > The `cuda13` suffix in the `datacenter-gpu-manager-4-cuda13` package
   > name refers to the major version of the CUDA user-mode driver
   > (`libcuda`) that the NVIDIA GPU driver provides. It does not refer to
   > the CUDA Toolkit, which you do not need to install for DCGM.
   >
   > Each NVIDIA GPU driver includes a corresponding CUDA user-mode driver.
   > Install the DCGM package whose `cuda<N>` suffix matches the major
   > version of the CUDA user-mode driver for the driver installed on your
   > system.
   >
   > The `CUDA Version` that `nvidia-smi` reports is the highest CUDA
   > version that the installed driver supports, not the version of any
   > installed CUDA Toolkit. To display it, run:
   >
   > ```bash
   > nvidia-smi -q | grep -E 'Driver Version|CUDA Version'
   > ```
   >
   > ```text
   > Driver Version                            : 620.70.10
   > CUDA Version                              : 13.5
   > ```

   ```bash
   sudo apt install -y \
     nvidia-open \
     nvidia-persistenced \
     nvidia-mig-manager \
     datacenter-gpu-manager-4-cuda13
   ```

3. Systems equipped with the NVIDIA NVSwitch require the Fabric Manager package
   and the NVIDIA NVSwitch Configuration and Query (NSCQ) library:

   * Install the NVIDIA Fabric Manager and NSCQ library:

     ```bash
     sudo apt install -y nvidia-fabricmanager-direct libnvidia-nscq
     ```

   * Enable the NVIDIA Fabric Manager systemd services:

     ```bash
     sudo systemctl enable nvidia-fabricmanager-direct nvidia-persistenced nvidia-dcgm
     ```

4. Enable the Persistence Daemon and the DCGM systemd services:

   ```bash
   sudo systemctl enable nvidia-persistenced nvidia-dcgm
   ```

5. Reboot the system to load the drivers and to update system configurations.

   a. Reboot the system.

   ```bash
   sudo reboot
   ```

   b. After the system has rebooted, verify that the drivers have been loaded
   and are managing the NVIDIA devices.

   ```bash
   nvidia-smi
   ```

   The output should show all available GPUs with `Persistence-Mode` set
   to `On`:

   ```text
   +--------------------------------------------------------------------------------+
   | NVIDIA-SMI <driver-ver>  Driver Version: <driver-ver>  CUDA Version: <CUDA-ver>|
   |--------------------------------+-----------------------+-----------------------+
   | GPU Name         Persistence-M | Bus-Id         Disp.A | Volatile Uncorr.  ECC |
   | Fan Temp Perf    Pwr:Usage/Cap |          Memory-Usage | GPU-Util   Compute M. |
   |                                |                       |                MIG M. |
   |================================+=======================+=======================|
   |   0  NVIDIA B200           On  | 000000000:1B:00.0 Off |                     0 |
   | N/A   33C    P0   188W / 1000W |      0MiB / 183359MiB |   0%          Default |
   |                                |                       |              Disabled |
   +--------------------------------+-----------------------+-----------------------+
   |   1  NVIDIA B200           On  | 000000000:43:00.0 Off |                     0 |
   | N/A   34C    P0   190W / 1000W |      0MiB / 183359MiB |   0%          Default |
   |                                |                       |              Disabled |
   +--------------------------------+-----------------------+-----------------------+
   ...
   +--------------------------------+-----------------------+-----------------------+
   |   7  NVIDIA B200           On  | 000000000:DF:00.0 Off |                     0 |
   | N/A   38C     P0  197W / 1000W |      0MiB / 183359MiB |   0%          Default |
   |                                |                       |              Disabled |
   +--------------------------------+-----------------------+-----------------------+
   +--------------------------------------------------------------------------------+
   | Processes:                                                                     |
   | GPU   GI   CI          PID     Type      Process name               GPU Memory |
   |       ID   ID                                                       Usage      |
   |================================================================================|
   | No running processes found                                                     |
   +--------------------------------------------------------------------------------+
   ```

#### Installing DOCA Packages

Systems with high-performance NVIDIA network cards require NVIDIA DOCA OFED
for InfiniBand or Ethernet connectivity. DOCA-OFED provides kernel drivers,
user-space libraries, and management tools for NVIDIA networking adapters.

For complete installation information, refer to the [NVIDIA DOCA Installation Guide for Linux](https://docs.nvidia.com/doca/sdk/doca-installation-guide-for-linux/index.html).

1. Install the DOCA repository package for your platform and architecture.

   Choose the LTS or HWE repository according to the DOCA release qualified
   for your platform. Refer to the
   [Release Notes](/baseos/baseos-10-user-guide/10.1/release-notes) for platform support.

   #### x86_64 (LTS)

   ```bash
   curl --proto '=https' --tlsv1.2 -fsSL --output-dir /tmp/ \
     -O https://repo.download.nvidia.com/baseos/10/ubuntu/resolute/amd64/nvidia-doca-repositories-latest.deb
   sudo apt install /tmp/nvidia-doca-repositories-latest.deb
   ```

   #### ARM64 (LTS)

   ```bash
   curl --proto '=https' --tlsv1.2 -fsSL --output-dir /tmp/ \
     -O https://repo.download.nvidia.com/baseos/10/ubuntu/resolute/arm64/nvidia-doca-repositories-latest.deb
   sudo apt install /tmp/nvidia-doca-repositories-latest.deb
   ```

   #### x86_64 (HWE)

   ```bash
   curl --proto '=https' --tlsv1.2 -fsSL --output-dir /tmp/ \
     -O https://repo.download.nvidia.com/baseos/10/ubuntu/resolute/amd64/nvidia-doca-repositories-hwe.deb
   sudo apt install /tmp/nvidia-doca-repositories-hwe.deb
   ```

   #### ARM64 (HWE)

   ```bash
   curl --proto '=https' --tlsv1.2 -fsSL --output-dir /tmp/ \
     -O https://repo.download.nvidia.com/baseos/10/ubuntu/resolute/arm64/nvidia-doca-repositories-hwe.deb
   sudo apt install /tmp/nvidia-doca-repositories-hwe.deb
   ```

2. Update the package list and install the DOCA driver and associated software.

   ```bash
   sudo apt update
   sudo apt install -y nvidia-system-mlnx-drivers
   ```

3. Install the verification utilities and check the installed DOCA-OFED version.

   ```bash
   sudo apt install ofed-scripts infiniband-diags
   ```

   ```bash
   ofed_info -n
   ```

   The output shows the installed DOCA-OFED version, for example:

   ```text
   26.04-1.1.0
   ```

4. For InfiniBand, confirm that the NVIDIA network adapters are detected.

   ```bash
   ibstat
   ```

   The output lists each InfiniBand port with its state, link layer, and GUID.
   Ports in **Active** state with a valid link are operational.

#### Installing GPUDirect Storage Support

NVIDIA Magnum IO GPUDirect Storage (GDS) enables a direct data path for direct
memory access (DMA) transfers between GPU memory and storage, avoiding a bounce
buffer through the CPU.

> **Note**
>
> This section applies only to the following situations:
>
> * You plan to use GPUDirect Storage on bare metal without Linux PCI P2PDMA. Refer to [NVMe P2PDMA Troubleshooting](https://docs.nvidia.com/gpudirect-storage/troubleshooting-guide/nvme-p2pdma-troubleshooting.html).
>
> * You plan to upgrade or reinstall the DOCA-OFED package and the `nvidia-fs` module
>   because BaseOS provides the updated versions.

1. Install the `nvidia-gds` package.

   ```bash
   sudo apt install nvidia-gds
   ```

   Refer to [Verifying a Successful GDS Installation](https://docs.nvidia.com/gpudirect-storage/troubleshooting-guide/installing-gpudirect-storage.html#verifying-a-successful-gds-installation)
   in the *NVIDIA GPUDirect Storage Installation and Troubleshooting Guide*.

### Configuring Docker and the NVIDIA Container Toolkit

Containers provide isolated environments with a full filesystem of the required
software for specific applications. To use the NVIDIA-provided containers for AI
and other frameworks on a system with GPUs, configure Docker and the NVIDIA
Container Toolkit. They provide GPU access to software running inside the
container.

1. Install Docker, configure it to use the NVIDIA Container Runtime,
   and restart Docker.

   The `nvidia-system-utils` metapackage installs `nvidia-container-toolkit`.
   Run the following commands to install `docker.io`, configure Docker to use
   the NVIDIA Container Runtime, and restart Docker to apply the changes.

   ```bash
   sudo apt install docker.io
   ```

   ```bash
   sudo nvidia-ctk runtime configure --runtime=docker
   ```

   ```bash
   sudo systemctl restart docker
   ```

To validate the installation, run a container and check that it can access the
GPUs. The following instructions assume that the NVIDIA GPU driver has been
installed and loaded.

> **Note**
>
> This validation downloads a container image and requires internet access.

1. Run `nvidia-smi` in a CUDA container.

   Select a published `nvidia/cuda` image tag from the [NVIDIA CUDA container image tags](https://hub.docker.com/r/nvidia/cuda/tags). An image tag is
   the version-specific identifier after the colon in a container image name,
   such as `13.2.0-base-ubuntu24.04` in
   `nvidia/cuda:13.2.0-base-ubuntu24.04`.

   Select an image whose CUDA runtime version is supported by the installed
   NVIDIA driver. The CUDA version shown by `nvidia-smi` is the maximum CUDA
   version supported by that driver.

   Run the following command, replacing the placeholders with values from the
   image tag you selected:

   In the command, replace `<cuda-version>` with the CUDA runtime version in
   the image tag, such as `13.2.0`, and replace `<ubuntu-version>` with the
   Ubuntu release in the image tag, such as `24.04`. These placeholders are
   not literal values.

   ```bash
   sudo docker run --rm --gpus all nvidia/cuda:<cuda-version>-base-ubuntu<ubuntu-version> nvidia-smi
   ```

   For example:

   ```bash
   sudo docker run --rm --gpus all nvidia/cuda:13.2.0-base-ubuntu24.04 nvidia-smi
   ```

2. Verify that the output shows all available GPUs with `Persistence-Mode` set to `On`.

### Additional Recommended Software

The Ubuntu and NVIDIA repositories provide many additional software packages
for a variety of applications.

#### NVIDIA CUDA Developer Repository

The NVIDIA CUDA developer repository provides an easy way to deploy NVIDIA
tools and libraries for GPU-accelerated computing:

* **CUDA Toolkit** — includes the CUDA compiler (`nvcc`), runtime libraries,
  GPU-accelerated math libraries (cuBLAS, cuFFT, cuSOLVER, cuSPARSE, cuRAND),
  profiling tools (Nsight Systems, Nsight Compute), and the CUDA samples.
  Required for developing and running CUDA applications. For more information,
  refer to the [CUDA Toolkit Documentation](https://docs.nvidia.com/cuda/).

  > **Info**
  >
  > Before you install any CUDA Toolkit release, ensure the release is compatible
  > with the driver installed on the system. Refer to
  > [CUDA Compatibility](https://docs.nvidia.com/deploy/cuda-compatibility/index.html)
  > for more information and a compatibility matrix.

* **cuDNN** (CUDA Deep Neural Network Library) — provides highly tuned
  implementations of standard deep-learning operations such as convolution,
  pooling, normalization, and activation. Used by frameworks including
  TensorFlow, PyTorch, and MXNet to accelerate training and inference on
  NVIDIA GPUs. For more information, refer to the
  [cuDNN Documentation](https://docs.nvidia.com/cudnn/).

* **NCCL** (NVIDIA Collective Communications Library) — implements
  multi-GPU and multi-node collective operations (all-reduce, all-gather,
  broadcast, reduce, reduce-scatter) optimized for NVIDIA interconnects
  such as NVLink, NVSwitch, and InfiniBand. Essential for distributed
  deep-learning training across multiple GPUs or nodes. For more information,
  refer to the [NCCL Documentation](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/index.html).