Setup docs
- sudo apt update && sudo apt install -y ubuntu-drivers-common
- sudo ubuntu-drivers install
- MOK Code - Need to generate a new MOK code after installing nvidia drivers. This code is asked during secure boot up (which is enabled by default in azure VM). This code gets entered from UEFI interface during secure boot up (enabled by default in azure). UEFI interface is not visible via SSH, disabled secure boot mode in azure for now.
- wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
- sudo apt install -y ./cuda-keyring_1.1-1_all.deb
- sudo apt update
- sudo apt -y install cuda-toolkit-12-5
- sudo reboot
- nvidia-smi # To verify
Docs say to periodically upgrade NVIDIA drivers-
- sudo apt update
- sudo apt full-upgrade