Azure GPU-optimized VM with driver extension throws modprobe: ERROR: could not insert 'nvidia': No such device on startup

Robin Allen 20 Reputation points
2024-12-16T11:13:46.12+00:00

Hi,

I created a VM through the Azure portal to test some simple processing.

I selected the Nvidia GPU-Optimized VMI

The first one I tried didn't work and threw the error

Installing drivers ...

modprobe: ERROR: could not insert 'nvidia': No such device

Install complete

I then tried installing the NVIDIA GPU extension via the portal and it didn't make any difference.

Also the nvidia SMI command doesn't exist.

Is there an existing solution for this? I've searched for similar questions and found nothing that works for me.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,178 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nikhil Duserla 3,645 Reputation points Microsoft Vendor
    2024-12-16T13:38:25.7733333+00:00

    Hi @Robin Allen,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    We have observed that you are encountering the error message "modprobe: ERROR: could not insert 'nvidia': No such device." This suggests that the NVIDIA driver may not be installed properly, or the system is failing to recognize the GPU.

    Extension installs NVIDIA GPU drivers on Linux N-series virtual machines (VMs). Depending on the VM family, the extension installs CUDA or GRID drivers. Ensure that you are using a compatible VM size that supports NVIDIA GPUs.

    To verify that the system has a CUDA-capable GPU, run the following command: lspci | grep -i NVIDIA. If there is no output, it means the GPU is not recognized by the system. If the GPU is detected, but the drivers are not functioning, you may need to reinstall the NVIDIA drivers.

    Still if you are facing the same issue, I would recommend you Disable Nouveau.

    If you have any further queries, do let us know.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.