Nvidia-smi shows "No devices were found", and dmesg shows "rm_init_adapter failed, device minor number 0"

You’re running pass-through on vmware, please see this thread:
https://forums.developer.nvidia.com/t/nvidia-smi-no-devices-were-found-vmware-esxi-ubuntu-server-20-04-03-with-rtx3070/202904?u=generix