GitHub user vishesh92 added a comment to the discussion: Gpu is not showing in 
the host

@TheKunalSen This is probably because nvidia rtx 3060 is a consumer grade GPU 
and the type of device is probably something other than `3D controller` or 
`Processing accelerators`.

To make it work,

1. Execute the below command to check the pci class of the nvidia GPU card
    ```bash
    sudo lspci -nnm | grep -i nvidia
    01:00.0 "3D controller [0302]" "NVIDIA Corporation [10de]" "GA107M [GeForce 
RTX 3050 Ti Mobile] [25a0]" -ra1 -p00 "Dell [1028]" "Device [0b19]"
    ```
    In this case, "3D controller" is the PCI class.
2. Edit the `gpudiscovery.sh` script on the hosts and add the PCI class to the 
regex if it's missing.
    
https://github.com/apache/cloudstack/blob/34b8870f591edf5c332b4144ccb9a3ea7890088e/scripts/vm/hypervisor/kvm/gpudiscovery.sh#L752
3. Restart the cloudstack-agent service.

Also, ensure that you have `pciutils` & `xmlstarlet` installed on the hosts as 
well.

If all this doesn't work, please share the output of the `gpudiscovery.sh` 
script on the host.

GitHub link: 
https://github.com/apache/cloudstack/discussions/12339#discussioncomment-15360329

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to