ERROR: Unable to load the kernel module 'nvidia.ko

we running a vm with ubuntu 20.04 in vmware vsphere esxi 6.7u3, and assign vGPU with profile grid_v100d-8c,then try to install driver in os:

sh ./

but failed, check the log file:

→ Kernel module compilation complete.
→ Unable to determine if Secure Boot is enabled: No such file or directory
ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA GPU(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.

when we assign vGPU with profile grid_v100d-8q and install the same driver in the same os enviroment, it can work for us.

nvidia-smi -L

GPU 0: GRID V100D-8Q (UUID: GPU-75f77d9b-6dfc-11b2-bbf0-3529d230516a)


Fri Oct 28 12:02:39 2022
| NVIDIA-SMI 450.51.05 Driver Version: 450.51.05 CUDA Version: 11.0 |
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
| 0 GRID V100D-8Q On | 00000000:02:02.0 Off | N/A |
| N/A N/A P0 N/A / N/A | 560MiB / 8192MiB | 0% Default |
| | | N/A |

| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
| No running processes found |

can some one know how to fix the grid_v100d-8c driver problem?