[SOLVED] NVIDIA GPU Passthrough only shows 8 GPU on VM but i have 10

If the NVIDIA driver kernel module version is incorrect and nvidia-smi is not working, you can resolve the issue by following these steps:

  1. Remove the NVIDIA modules:

    Code:
    sudo rmmod nvidia_drm
    sudo rmmod nvidia_modeset
    sudo rmmod nvidia_uvm
    sudo rmmod nvidia

  2. Run the nvidia-smi command before restarting the server:
    sh
    nvidia-smi

    This step checks if the nvidia-smi command is working. If the correct driver and module are not loaded, the nvidia-smi command will fail.

  3. Restart the server:

    Don't reboot, just turn off and turn on again.

    If necessary, reinstall the NVIDIA drivers:

    Code:
    sudo apt-get purge nvidia*
    sudo apt-get install nvidia-driver-<version>

    Replace <version> with the appropriate driver version.
These steps should ensure that the NVIDIA drivers and kernel modules are correctly installed and that the nvidia-smi command works properly.
 
  • Like
Reactions: UdoB

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!