NVIDIA Mokka is an open-source tool that lets teams test the Kubernetes GPU software stack without physical GPUs. The project simulates NVIDIA GPUs, SuperNICs and switch fabrics on ordinary CPU nodes; combined with NVIDIA DSX Air, it also allows teams to examine network topology and failure handling in larger AI infrastructure before hardware arrives.
The approach addresses a challenge in deployment: platform teams must verify not only that GPUs start, but also that the full software environment is ready to run workloads. That includes checking compatibility between the GPU Operator and driver, correct reporting of NVLink domains, identification of GPU errors on the right node, and allocation and release of Kubernetes ResourceClaims.
Simulating interfaces, not computation
Mokka is not a GPU emulator: it neither runs CUDA kernels nor moves data. Instead, it imitates the interfaces through which higher-level software discovers and monitors GPUs. The software under test can therefore run unmodified, as if it were communicating with real devices.
On each node, a Mokka agent creates, among other things, an NVML library that responds according to a GPU profile, a PCI and sysfs hierarchy, and driver and kernel-module footprints. It also provides device nodes, CDI specifications, NVLink and Fabric Manager state, IMEX for multi-node NVLink, and InfiniBand devices.
This allows the unmodified nvidia-smi utility, for example, to display four NVIDIA GB300 NVL72 Blackwell GPUs on a CPU node, representing a compute tray and its NVLink topology in a GB300 NVL72 rack. The NVIDIA device plugin, DRA driver, DCGM, node feature discovery, topograph, Slurm through Slinky, NVSentinel and GPU Operator can interact with the same files and libraries they use on real nodes.
Larger topologies and failure rehearsals
On its own, Mokka can create a small simulated GPU cluster on a laptop or continuous-integration runner. NVIDIA DSX Air adds a logical simulation of a more complete AI factory environment: it models NVIDIA Spectrum-X network topology, ecosystem software and server images, controlled through a Python SDK or REST API.
DSX Air describes the connections between servers and switches, while Mokka assigns each node’s GPUs to NVLink domains and cliques. When both descriptions model the same racks, schedulers can work with realistic placement distances. The file-based simulations can be restored from checkpoints, shared, expanded through topology edits and managed by CI workflows.
Teams can, for example, simulate a lost GPU, a device that has fallen off the bus, an uncorrectable ECC error or an Xid error, then check whether remediation controllers appropriately cordon or drain the node or send an alert. DCGM, dcgm-exporter, Prometheus and Grafana can run unmodified to test alerts and dashboards.
A simulated fleet can be expanded from 36 nodes to 288, 1,152 or 2,304 to expose scaling limits. The bottleneck is not necessarily Kubernetes itself: it could be a single-replica labeler, a MongoDB memory limit or the conntrack table. Comparing rack layouts and NVLink boundaries also allows teams to examine scheduling and rack-failure effects before cabling is in place.
Changes made during operations—such as an NVSentinel policy, a device plugin setting or a topology edit—can also pass through automated tests. A pipeline can create the fleet, install the current software stack, apply the change and verify detection of an injected Xid 79, GPU claim handling and node labels, before deleting the simulation.
Getting started
Local testing requires Helm 3.8 or later and kubectl; Docker and Kind are also needed to create a local Kind cluster. Another cluster can be used if its nodes run containerd 1.7 or later under systemd. After installing the Mokka Helm chart, teams can check simulated GPUs with nvidia-smi and inject failures with nvml-mock-ctl without redeploying.
The chart includes eight GPU profiles: a100, b200, gb200, gb300, h100, l40s, t4 and vrnvl72. The gpu.profile setting switches between them. An uncorrectable ECC error and an Xid 79 event, for example, can be used to check whether the device plugin marks the GPU unhealthy and DCGM exports the event.
The DSX Air integration is available in two demo environments: “Kubernetes Intro: Mokka plus KWOK Configured” provides a preconfigured cluster, while the “Unconfigured” version lets users work through setup using the lab instructions. Access requires an NGC account and an Air User or Air Org Admin role in the organization. Launching a demo creates a copy in the user’s DSX Air account; credentials and cluster-access details are provided in its documentation.
Simulation does not replace testing on physical hardware. It does, however, let teams identify configuration, topology and failure-handling problems earlier, helping them prepare for the arrival of the infrastructure.



