Azure Linux#

This section covers:

  • Azure Linux 2 (CBL Mariner 2.0)

  • Azure Linux 3

Preparation#

  1. Perform the Pre-installation Actions.

  2. The kernel headers and development packages for the currently running kernel can be installed with:

    # tdnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r) kernel-modules-extra-$(uname -r)
    
  3. Enable the extended repository:

    Azure Linux 2:

    # tdnf install mariner-repos-extended
    

    Azure Linux 3:

    # tdnf install azurelinux-repos-extended
    
  4. Choose an installation method: Local Repository Installation or Network Repository Installation.

Local Repository Installation#

  1. Download the NVIDIA driver:

$ wget https://developer.download.nvidia.com/compute/nvidia-driver/$version/local_installers/nvidia-driver-local-repo-$distro.$version.$arch.rpm

where $version is the NVIDIA driver version

  1. Install local repository on file system:

    # rpm --install nvidia-driver-local-repo-$distro.$version*.$arch.rpm
    

Network Repository Installation#

  1. Enable the network repository. For x86_64:

    # tdnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/cuda-$distro.repo
    

    For sbsa:

    # tdnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/$distro/sbsa/cuda-$distro.repo
    
  2. Clean DNF repository cache:

    # tdnf clean expire-cache
    

Driver Installation#

These instructions apply to both local and network installations.

# tdnf install nvidia-open

Reboot the System#

# reboot

Perform the Post-installation Actions.