Skip to content

Commit 98f60da

Browse files
Merge pull request #247541 from darkwhite29/darkwhite29-patch-1-4
Update n-series-driver-setup.md on Secure Boot
2 parents 3ab98bf + 85437f3 commit 98f60da

File tree

1 file changed

+23
-49
lines changed

1 file changed

+23
-49
lines changed

articles/virtual-machines/linux/n-series-driver-setup.md

Lines changed: 23 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -82,25 +82,16 @@ sudo reboot
8282

8383
With Secure Boot enabled, all Linux kernel modules are required to be signed by the key trusted by the system.
8484

85-
1. Find latest NVIDIA driver version compatible with Azure
86-
87-
```
88-
sudo apt-get update
89-
```
85+
1. Install pre-built Azure Linux kernel based NVIDIA modules and drivers
9086

91-
```
92-
NVIDIA_DRIVER_VERSION=$(sudo apt-cache search 'linux-modules-nvidia-[0-9]+-azure$' | awk '{print $1}' | sort | tail -n 1 | head -n 1 | awk -F"-" '{print $4}')
93-
```
94-
95-
2. Install pre-built Azure Linux kernel based NVIDIA modules and driver
96-
97-
```
98-
sudo apt install -y linux-modules-nvidia-${NVIDIA_DRIVER_VERSION}-azure nvidia-driver-${NVIDIA_DRIVER_VERSION}
87+
```bash
88+
sudo apt-get update
89+
sudo apt install -y linux-modules-nvidia-525-azure nvidia-driver-525
9990
```
10091

101-
3. Change preference of NVIDIA packages to prefer NVIDIA repository
92+
2. Change preference of NVIDIA packages to prefer NVIDIA repository
10293

103-
```
94+
```bash
10495
sudo tee /etc/apt/preferences.d/cuda-repository-pin-600 > /dev/null <<EOL
10596
Package: nsight-compute
10697
Pin: origin *ubuntu.com*
@@ -120,13 +111,13 @@ With Secure Boot enabled, all Linux kernel modules are required to be signed by
120111
EOL
121112
```
122113
123-
4. Add CUDA repository
114+
3. Add CUDA repository
124115
125-
```
116+
```bash
126117
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/3bf863cc.pub
127118
```
128119
129-
```
120+
```bash
130121
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/ /"
131122
```
132123
@@ -141,62 +132,45 @@ With Secure Boot enabled, all Linux kernel modules are required to be signed by
141132
142133
If `add-apt-repository` command is not found, run `sudo apt-get install software-properties-common` to install it.
143134
144-
5. Install the kernel headers and development packages, and remove outdated signing key
135+
4. Install kernel headers and development packages, and remove outdated signing key
145136
146-
```
137+
```bash
147138
sudo apt-get install linux-headers-$(uname -r)
148139
sudo apt-key del 7fa2af80
149140
```
150141
151-
6. Install the new cuda-keyring package
142+
5. Install the new cuda-keyring package
152143
153-
```
144+
```bash
154145
wget https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/cuda-keyring_1.1-1_all.deb
155146
sudo dpkg -i cuda-keyring_1.1-1_all.deb
156147
```
157148
158149
Note: When prompt on different versions of cuda-keyring, select `Y or I : install the package maintainer's version` to proceed.
159-
160-
7. Update the APT repository cache
161-
162-
```
163-
sudo apt-get update
164-
```
165150
166-
8. Install CUDA toolkit and driver
151+
6. Update APT repository cache and install NVIDIA GPUDirect Storage
167152
168-
```
169-
sudo apt-get install -y cuda
153+
```bash
154+
sudo apt-get update
170155
sudo apt-get install -y nvidia-gds
171156
```
172157
173158
Note that during the installation you will be prompted for password when configuring secure boot, a password of your choice needs to be provided and then proceed.
174159
175160
![Secure Boot Password Configuration](./media/n-series-driver-setup/secure-boot-passwd.png)
176161
177-
9. Reboot the VM
162+
7. Reboot the VM
178163
179-
```
164+
```bash
180165
sudo reboot
181166
```
182167
183-
10. Verify the installation
184-
185-
a. Verify NVIDIA driver is installed and loaded
168+
8. Verify NVIDIA drivers are installed and loaded
186169
187-
```
188-
dpkg -l | grep -i nvidia
189-
nvidia-smi
190-
```
191-
192-
b. Verify CUDA toolkit is installed and loaded
193-
194-
```
195-
dpkg -l | grep -i cuda
196-
export PATH=/usr/local/cuda/bin:$PATH
197-
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
198-
nvcc --version
199-
```
170+
```bash
171+
dpkg -l | grep -i nvidia
172+
nvidia-smi
173+
```
200174
201175
202176
### CentOS or Red Hat Enterprise Linux

0 commit comments

Comments
 (0)