From bf2ba6c5042575f05d934d8b782117ac4dceecb4 Mon Sep 17 00:00:00 2001 From: Mike McKiernan Date: Fri, 21 Aug 2026 16:01:44 -0400 Subject: [PATCH] fix: Use go-nvfm Signed-off-by: Mike McKiernan --- gpu-operator/gpu-operator-kubevirt-dra.rst | 43 ++++++++++++++++++---- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/gpu-operator/gpu-operator-kubevirt-dra.rst b/gpu-operator/gpu-operator-kubevirt-dra.rst index 5235f53a8..bffc0c972 100644 --- a/gpu-operator/gpu-operator-kubevirt-dra.rst +++ b/gpu-operator/gpu-operator-kubevirt-dra.rst @@ -508,18 +508,45 @@ advertises the required ``partitionN`` attribute. #. Optional: Verification that relies on additional software. - #. Refer to the `Fabric-Manager-Client `__ repository - for information about building the `fmpm` utility. + #. Build and run the ``list-partitions`` binary. - You can use the `fmpm` utility to list the partitions and verify the partition status. + Perform the build on a Linux system with Go 1.24 or later and the same CPU + architecture as the target GPU node. - .. code-block:: console + #. Clone the `go-nvfm `__ repository and build the example: + + .. code-block:: console + + $ git clone --depth 1 https://github.com/NVIDIA/go-nvfm.git + $ cd go-nvfm + $ make example-list-partitions + + #. Identify the driver pod on the node that owns the allocated GPUs: + + .. code-block:: console + + $ kubectl get pods --namespace gpu-operator \ + --selector app.kubernetes.io/component=nvidia-driver \ + --field-selector spec.nodeName= + + #. Copy the ``list-partitions`` executable to the driver container: + + .. code-block:: console + + $ kubectl cp --namespace gpu-operator \ + --container nvidia-driver-ctr \ + ./list-partitions :/run/nvidia/list-partitions + + #. List the Fabric Manager partitions: + + .. code-block:: console - $ /run/nvidia/fmpm \ - --unix-domain-socket /run/nvidia-fabricmanager/socket \ - -l + $ kubectl exec --namespace gpu-operator \ + --container nvidia-driver-ctr \ + -- bash -c \ + "NVFM_UNIX_SOCKET_PATH=/run/nvidia-fabricmanager/socket /run/nvidia/list-partitions" - Confirm that the partition selected for the claim reports ``isActive: 1``. + Confirm that the partition selected for the claim reports ``"isActive": 1``. #. For an additional connectivity demonstration, install a guest-compatible build of `nvbandwidth v0.8 `__ and run: