ESXi hostd service crashes during vGPU device query due to unhandled NVIDIA NVML error (Error Code 999)
search cancel

ESXi hostd service crashes during vGPU device query due to unhandled NVIDIA NVML error (Error Code 999)

book

Article ID: 461429

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

On an ESXi host configured with NVIDIA vGPUs:

 - The ESXi host may become temporarily unresponsive or disconnect from vCenter Server due to a hostd service crash.

 - Core dump files for hostd-worker are generated in the /var/core/ directory.

 - The /var/log/vmkernel.log displays hostd-worker crash events similar to the following:

INFO vmkernel - UserDump: hostd-worker: Dumping cartel ########  (from world #######) to file /var/core/hostd-zdump.001 ...
INFO vmkernel - UserDump: hostd-worker: Userworld(hostd-worker) coredump complete.


The /var/log/hostd.log shows repeated transient errors from the NVIDIA NVML library failing to fetch device information:

INFO Hostd NvmlUser: Failed to get nvml device count, error code: 999
INFO Hostd NvmlUser: Unable to get MIG GPM sample, ret=0x3e7

 

Environment

VCF 9.1.0

Cause

This issue occurs because the hostd service periodically queries the NVIDIA NVML library for vGPU device information.

Occasionally, the NVML library encounters a transient issue (such as Error Code 999) and fails to return the requested GPU data.

The ESXi code incorrectly assumes this information will always be retained. Because the code lacked the proper exception handling to manage scenarios where the vGPU information is null or missing (resulting in an empty typeInfos value), a null pointer exception is triggered, which causes the hostd service to crash.

Resolution

The lack of exception handling for missing NVML data has been identified as a software bug.

A code fix has been implemented to properly handle these exceptions and prevent hostd from crashing. This fix will be included in the upcoming VMware Cloud Foundation (VCF) 9.1.2 patch release.

To resolve the crash symptom, upgrade to this version once it is available.

 

While the VCF update will prevent the hostd service from crashing, the underlying transient NVML failures (Error Code 999) are highly likely caused by NVIDIA driver or hardware-level issues.

It is strongly recommended to contact NVIDIA Support for further root-cause analysis regarding the NVML data retrieval failures.