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

Great!

It would have been nice (and possibly helpful to other users, experiencing that phenomenon) to tell us the reason for this interesting behavior. And editing the title of the first post and selecting "Solved" in the drop down menu...

Best regards
 
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