Skip to navigation

Air-Gapped Installations

View as Markdown

Some environments require systems to be isolated from the internet or untrusted networks for security or compliance reasons. These systems are referred to as air-gapped.

Standard BaseOS software installation and upgrades rely on internet-connected NVIDIA and Canonical package repositories. On air-gapped systems, you must create a local mirror of those repositories and configure the target systems to use the mirror instead. This chapter describes how to set up a local mirror, transfer the packages to the air-gapped environment, and configure the target systems for installation and upgrades.

Installing BaseOS 10 on Ubuntu 26.04 in an Air-Gapped Environment

Because most BaseOS software updates use a network connection to NVIDIA servers, this section explains how to update systems when a network connection is unavailable.

Creating a Local Mirror of the NVIDIA and Canonical Repositories

The following steps explain how to download the packages and create a mirror of the repositories needed to update NVIDIA DGX systems. For more information about BaseOS versions and the release notes available, refer to Release Notes.

These procedures apply only to upgrades in the same major release, such as from 10.x to 10.y. The steps do not support upgrades across major releases, such as from BaseOS 9 to BaseOS 10.

  1. Identify the sources that correspond to the public NVIDIA and Canonical repositories that provide updates to the BaseOS.

    You can identify these sources from the /etc/apt/sources.list file and the contents of the /etc/apt/sources.list.d/ directory, or by using System Settings > Software & Updates.

  2. Create and maintain a private mirror of the repository sources that you identified in the previous step.

  3. Update the sources that provide updates to the DGX system to use your private repository mirror instead of the public repositories.

To update these sources, modify the /etc/apt/sources.list file and the contents of the /etc/apt/sources.list.d/ directory.

Creating the Mirror of the Repositories

Perform the instructions in this section on a system with internet access.

  • A system with Ubuntu installed is needed to create the mirror because several Ubuntu tools must be used.

  • Log in to the Ubuntu system as an administrator because this procedure requires sudo privileges.

  • The system must contain enough storage space to replicate the repositories to a file system. The space requirement can be as high as 250 GB.

  • An efficient way to move a large amount of data is needed, for example, shared storage in a DMZ, or portable USB drives that can be brought into the air-gapped area.

    Move the data to the systems that need to be updated. Make sure that any portable drives are formatted using ext4 or FAT32.

To create the mirror:

  1. Ensure that the storage device is attached to the system with network access and identify the mount point of the device.

    The following example shows the mount point used in these instructions:

    /media/usb/repository
  2. Install the apt-mirror package.

    sudo apt update
    sudo apt install apt-mirror
  3. Change the ownership of the target directory to the apt-mirror user in the apt-mirror group.

    sudo chown apt-mirror:apt-mirror /media/usb/repository

    The target directory must be owned by the user apt-mirror, or the replication does not work.

  4. Configure the path of the destination directory in /etc/apt/mirror.list and use the following list of repositories to retrieve the packages for both Ubuntu OS and the NVIDIA BaseOS packages.

    ############# config ##################
    #
    set base_path /media/usb/repository #/your/path/here
    #
    # set mirror_path $base_path/mirror
    # set skel_path $base_path/skel
    # set var_path $base_path/var
    # set cleanscript $var_path/clean.sh
    # set defaultarch <running host architecture>
    # set postmirror_script $var_path/postmirror.sh
    set run_postmirror 0
    set nthreads 20
    set _tilde 0
    #
    ############# end config ##############
    # Standard Canonical package repositories:
    deb http://archive.ubuntu.com/ubuntu/ resolute-security main multiverse universe restricted
    deb http://archive.ubuntu.com/ubuntu/ resolute main multiverse universe restricted
    deb http://archive.ubuntu.com/ubuntu/ resolute-updates main multiverse universe restricted
    deb http://archive.ubuntu.com/ubuntu/ resolute-backports main multiverse universe restricted
    # CUDA specific repositories:
    deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/x86_64/ /
    #
    # BaseOS specific repositories:
    deb http://repo.download.nvidia.com/baseos/10/ubuntu/resolute/x86_64/ resolute common dgx
    deb http://repo.download.nvidia.com/baseos/10/ubuntu/resolute/x86_64/ resolute-updates common dgx
    # DOCA specific repositories:
    deb http://linux.mellanox.com/public/repo/doca/baseos10-latest/ubuntu26.04/x86_64/ /
    deb http://linux.mellanox.com/public/repo/doca/baseos10-hwe/ubuntu26.04/x86_64/ /
    # Workbench specific repositories:
    deb https://workbench.download.nvidia.com/stable/linux/debian/ default proprietary
    # HPC specific repositories:
    deb https://developer.download.nvidia.com/hpc-sdk/ubuntu/x86_64/ /
    #
    # Clean unused items
    clean http://archive.ubuntu.com/ubuntu
  5. Run apt-mirror and wait for it to finish downloading content.

    This takes a long time, depending on the network connection speed.

    sudo apt-mirror
  6. Eject the removable storage that contains the downloaded packages.

    sudo eject /media/usb/repository

Configuring the Target Air-Gapped System

The following steps explain how to configure a target air-gapped DGX system.

Perform the instructions in this section on the target air-gapped DGX system.

  • The target air-gapped DGX system is installed, has completed the first boot process, and is ready to be updated with the latest packages.

  • The USB storage device on which the mirrors were created is attached to the target DGX system.

This document does not cover other data-transfer methods because they depend on the data center policies for the air-gapped environment.

  1. Mount the storage device on the air-gapped system at /media/usb/repository for consistency.

  2. Configure the apt command to use the file system as the repository in the file /etc/apt/sources.list.d/ubuntu.sources by replacing the content as follows.

    Types: deb
    URIs: file:///media/usb/repository/mirror/archive.ubuntu.com/ubuntu/
    Suites: resolute resolute-updates resolute-backports
    Components: main restricted universe multiverse
    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
    Types: deb
    URIs: file:///media/usb/repository/mirror/archive.ubuntu.com/ubuntu/
    Suites: resolute-security
    Components: main restricted universe multiverse
    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
  3. Configure apt to use the NVIDIA BaseOS packages in the /etc/apt/sources.list.d/dgx.sources file.

    Types: deb
    URIs: file:///media/usb/repository/mirror/repo.download.nvidia.com/baseos/10/ubuntu/resolute/x86_64/
    Suites: resolute resolute-updates
    Components: dgx
    Signed-By: /usr/share/keyrings/dgx_debian_prod.gpg
  4. Configure apt to use the NVIDIA CUDA packages in the /etc/apt/sources.list.d/nvidia.sources file.

    Types: deb
    URIs: file:///media/usb/repository/mirror/workbench.download.nvidia.com/stable/linux/debian
    Suites: default
    Components: proprietary
    Signed-By: /usr/share/keyrings/ai-workbench-desktop-key.gpg
    Types: deb
    URIs: file:///media/usb/repository/mirror/developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/x86_64/
    Suites: /
    Signed-By: /usr/share/keyrings/cuda_debian_prod.gpg
    Types: deb
    URIs: file:///media/usb/repository/mirror/repo.download.nvidia.com/baseos/10/ubuntu/resolute/x86_64/
    Suites: resolute resolute-updates
    Components: common
    Signed-By: /usr/share/keyrings/dgx_debian_prod.gpg
    Types: deb
    URIs: file:///media/usb/repository/mirror/developer.download.nvidia.com/hpc-sdk/ubuntu/x86_64/
    Suites: /
    Signed-By: /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
  5. Configure apt to use the NVIDIA DOCA packages in the /etc/apt/sources.list.d/nvidia-doca.sources file.

    Types: deb
    URIs: file:///media/usb/repository/mirror/linux.mellanox.com/public/repo/doca/baseos10-latest/ubuntu26.04/x86_64/
    Suites: /
    Signed-By: /usr/share/keyrings/GPG-KEY-Mellanox.gpg /usr/share/keyrings/nvidia-doca-debian-gpg-public-key.gpg
  6. Update the apt repository.

    sudo apt update

    The output from this command is similar to the following example.

    Get:1 file:/media/usb/repository/mirror/security.ubuntu.com/ubuntu resolute-security InRelease [107 kB]
    Get:2 file:/media/usb/repository/mirror/archive.ubuntu.com/ubuntu resolute InRelease [265 kB]
    Get:3 file:/media/usb/repository/mirror/archive.ubuntu.com/ubuntu resolute-updates InRelease [111 kB]
    Get:4 file:/media/usb/repository/mirror/developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/sbsa InRelease
    Get:5 file:/media/usb/repository/mirror/repo.download.nvidia.com/baseos/ubuntu/resolute/sbsa resolute InRelease [12.5 kB]
    Get:6 file:/media/usb/repository/mirror/repo.download.nvidia.com/baseos/ubuntu/resolute/sbsa resolute-updates InRelease [12.4 kB]
    Get:7 file:/media/usb/repository/mirror/developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/sbsa Release [697 B]
    Get:8 file:/media/usb/repository/mirror/developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/sbsa Release.gpg [836 B]
    Reading package lists... Done
  7. Upgrade the system using the newly configured local repositories.

    sudo apt full-upgrade