On a VM with 2x L40 GPU passthroughed one of the GPU is outputted on nvidia-smi and the other one is not.
The dmesg error shows for the second GPU shows [ 1088.715192] NVRM: GPU 0000:05:00.0: RmInitAdapter failed! (0x62:0x40:2398)
[ 1088.717539] NVRM: GPU 0000:05:00.0: rm_init_adapter failed, device minor number 0
[ 1089.005108] NVRM: GPU 0000:05:00.0: RmInitAdapter failed! (0x62:0x40:2398)
[ 1089.006744] NVRM: GPU 0000:05:00.0: rm_init_adapter failed, device minor number 0
VM details:
OS - rocky 9.0
nvidia driver version - 535.154
hypervisior - libvirt KVM
Please assist and let me know if additional information is required.