Install NVIDIA GPU drivers on N-Series VMs running Linux
NVIDIA GPU Driver for Linux N-Series VMs
Requirements
- Domain Allowlisting:
- microsoft.com
- developer.download.nvidia.com
- archive.ubuntu.com
- N-series VM running Ubuntu20 or Ubuntu22.
- GCC C-compiler installed on the Linux VM.
After installing the NVIDIA driver, these domains can be removed from the allowlist.
There are two possibilities for installing the drivers, either through the VM itself, or through the Azure portal. The latter can only be performed by a Support Team member.
1. Installation instructions for VM type NC4as_T4_v3
If the GCC C-compiler is not already installed, you can do this by doing the following. Note that this works the same for both Ubuntu 20 and Ubuntu 22.
- sudo apt update
- sudo apt install build-essential
To verify if this was success, run the following command:
- gcc --version
Assuming the installation of GCC was successful, you can proceed to the installation steps for either Ubuntu 20 or 22 as described below.
Ubuntu 20 - wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb
- sudo dpkg -i cuda-keyring_1.1-1_all.deb
- sudo apt-get update
- sudo apt-get -y install cuda
Ubuntu 22
- wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
- sudo dpkg -i cuda-keyring_1.1-1_all.deb
- sudo apt-get update
- sudo apt-get -y install cuda
For different OS, Architecture, Distribution and Version check out this
LinkVerify driver installation
- nvidia-smi
- sudo lshw -c display
CUDA driver updates
We recommend that you periodically update CUDA drivers after deployment.
- sudo apt-get update
- sudo apt-get upgrade -y
- sudo apt-get dist-upgrade -y
- sudo apt-get install cuda-drivers
- sudo reboot
For more information, visit this
Microsoft website.
2. Alternative installation through the Azure portal
The VM needs to be allocated when installing extensions! These installation steps can only be performed by a Support Team member.
1. Navigate to the VM in the Azure portal.
2. Go to Settings > Extensions + Applications
3. Press + Add
4. Search for ‘NVIDIA’. The ‘NVIDIA GPU Driver Extension’ should appear. Select this option.
5. Press Review + Create > Create. The extensions will be installed onto the VM. This might take a few minutes.
Related Articles
Install NVIDIA GPU drivers on N-series VMs running Windows
Introduction Microsoft Azure provides GPU capabilities. However, this requires to install the NVIDIA GPU drivers manually. Microsoft Support documentation NVIDIA Tesla (CUDA) drivers NVIDIA GRID drivers
Linux VMs
On the myDRE platform different types of Linux virtual machines (VMs) are available. CentOS 7.5 (is reaching its end of life) Ubuntu 20 (for GPU usage) Ubuntu 22 By default, Linux VMs have no connection to the outside world, so cannot be directly ...
NVIDIA-docker
This article describes how to install NVIDIA-docker on a Linux VM in two parts. kudos to Bob van Dijk - Amsterdam UMC Download and ingress the attachment for easy copy/paste. Part 1: install and start the latest NVIDIA drivers for your GPU card Open ...
NC-series, NV-series and NV Promo VMs will be retired on 31 August 2023
After 31 August 2023, any remaining NC-series virtual machines and NV6, NV6_Promo, NV12, NV12_Promo, NV24, NV24_Promo virtual machines on your subscription will be set to a deallocated state, cease to be available, and will no longer incur billing ...
Install Browser on Linux
Introduction Until now, Linux users have primarily relied on the command line for their browser access. For effortless web browsing on your Linux virtual machine, a single click installation of Firefox is the optimal choice. We have considered ...