# Deployment

## Preparations <a href="#system-and-network-requirements" id="system-and-network-requirements"></a>

Before installing NVIDIA Run:ai, make sure you have reviewed the [Preparations](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/preparations) section and completed all tasks indicated in the [Pre-installation checklist](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/preparations#pre-installation-checklist).

## BCM Version

The instructions in this document are specific to BCM 11, with a minimum required version of **11.31.0**.

## Deploy Using the Wizard

1. Access the active BCM head node via ssh:

   ```sh
   ssh root@<IP address of BCM head node>
   ```
2. Verify the BCM version:

   ```sh
   cm-package-release-info -f cm-setup,cmdaemon

   Name      Version    Release(s)
   --------  ---------  ------------
   cm-setup  123542     11.31.0 (123360)
   cmdaemon  164056     11.31.0 (163803)
   ```
3. Create the following files in the `/cm/shared/runai/` directory populating each respectively from the linked content. Similarly, populate [validation test files](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/validation-tests) respective to the DGX platform:
   * [DGX B200 Configuration](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/dgx-b200-configuration)
   * [DGX GB200 Configuration](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/dgx-gb200-configuration)
   * [DGX B300 Configuration](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/dgx-b300-configuration)
   * [DGX GB300 Configuration](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/dgx-gb300-configuration)
4. Verify that all files from the [Preparations](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/preparations) section and the step above have been created and are present:

   ```sh
   root@bcm11-headnode:~# ls -1 /cm/shared/runai/*

   # Example for GB300

   credential.jwt
   netop-values-gb300.yaml 
   nic-cluster-policy-gb300.yaml 
   combined-ippools-gb300.yaml
   combined-sriovibnet-gb300.yaml
   dra-test-gb200-gb300.yaml
   ib-test-gb200-gb300.yaml
   sriov-node-pool-config.yaml
   full-chain.pem
   private.key
   ca.crt # only required when using a local certificate authority
   ```
5. Run the following command to initiate deployment via an interactive command-line assistant:

   ```sh
   cm-kubernetes-setup
   ```
6. Select **Deploy Kubernetes installation wizard** and click **Ok** to proceed. If `cm-kubernetes-setup` is being run from GB200 or GB300, refer to the second screenshot:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FmU72KFM5rk4PQt4b26RN%2Funknown.png?alt=media&#x26;token=f274ab7e-484a-47fa-9cd8-bdf6bbd8b87b" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FGYIedjRF2VOkT2E2zPaP%2Funknown.png?alt=media&#x26;token=65f762b4-d548-4d0a-ad13-74e6f6906999" alt="" width="563"><figcaption></figcaption></figure>

7. Select the relevant **Kubernetes** version. This guide, employing Base Command Manager 11.31.10, is based on and requires Kubernetes 1.34. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2F5uLTsYcyoBFkLT6K1eXn%2Funknown.png?alt=media&#x26;token=e2b8beec-ff68-48e0-97be-a9f922df1196" alt="" width="563"><figcaption></figcaption></figure>

8. The next step inquires if there’s a Docker Hub registry mirror available. It’s recommended that a local registry mirror be employed when available. For the purpose of this guide, leave the default value (blank) and click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FHzHDh7C2QL4MvmJTCC9y%2Funknown.png?alt=media&#x26;token=4c5090bf-4262-4656-9f76-e9c87b8fffff" alt="" width="563"><figcaption></figcaption></figure>

9. Insert values for the new Kubernetes cluster that NVIDIA Run:ai will be installed into. Click **Ok** to proceed:
   * The Kubernetes cluster name should be a short, unique name that can be used to distinguish between multiple clusters (i.e. `k8s-user`).&#x20;
   * The `k8s-user.local` value for Kubernetes domain name is the default value for internal (within the Kubernetes cluster) name resolution and service discovery. It should be unique to distinguish it from the NMC cluster on DGX GB200 & GB300 SuperPODs. Common practice is to avoid using the same domain for the internal Kubernetes domain name and eternally referenceable FQDN to avoid potential name resolution inconsistencies.
   * The Kubernetes external FQDN field refers to the domain name that the Kubernetes API Server will be proxied at and will be automatically populated by BCM. If a valid name record (FQDN) for the BCM head node has been established prior that should be entered here. Please see the reference architecture section of the [BCM Containerization Manual](https://support.brightcomputing.com/manuals/11/containerization-manual.pdf) for details on how this is implemented via an NGINX proxy.
   * The Service network base address, Service network netmask bits, Pod network base address, & Pod network netmask bits fields provide CIDR ranges for Kubernetes service and pod networks. These will be pre-populated (taking care to avoid overlapping ranges from networks known to BCM) from private, non-routable ranges.&#x20;

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FJJuT3Ks6i4seGDy5fOX2%2Funknown.png?alt=media&#x26;token=0c0acb69-31c7-4811-8087-3792d3640998" alt="" width="563"><figcaption></figcaption></figure>

10. The next step asks about exposing the Kubernetes API server to the external network. Select **no** and click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FelslbmXOo8PyxYwlsHMG%2Funknown.png?alt=media&#x26;token=70b3cc37-23b0-442d-a2a7-63e59543f76c" alt="" width="563"><figcaption></figcaption></figure>

11. The preferred internal network is used for Kubernetes intercommunication between ctrl plane and worker nodes. Select **internalnet** for the preferred internal network and click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2F4WYXozOJppSRd9xjyhrD%2Funknown.png?alt=media&#x26;token=58ab4b57-18e7-4df1-bcb0-7ee7d688b73f" alt="" width="563"><figcaption></figcaption></figure>

12. Select 3 or more Kubernetes master nodes. These should be the same nodes assigned to the control plane category. The screenshot below is for illustration only - the correct category should be `k8s-system-user`. See the [BCM node categories](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/preparations#bcm-node-categories) section for more information. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2F47pvDWyHg2cK1g9HD9Tq%2Funknown.png?alt=media&#x26;token=c2f75d0f-c9a9-4ba6-aae5-10606bbab663" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

To ensure high availability and prevent a single point of failure, it is recommended to configure at least three Kubernetes master nodes in your cluster. The nodes selected at this stage will be employed to serve the needs of the control plane and should be located on CPU nodes. In contemporary Kubernetes versions, “master nodes” are referred to as control plane nodes.
{% endhint %}

13. Select the worker node categories to operate as the Kubernetes worker nodes. The screenshot below is for illustration only - the correct category should be `dgx-gb300-k8s`, `dgx-b300-k8s` or similar and `k8s-system-user`. See the [BCM node categories](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/preparations#bcm-node-categories) section for more information. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2F2XV0urdcDRNxlJDOAXqj%2Funknown.png?alt=media&#x26;token=3004cac4-7bc3-4561-8859-e7dad3cc18f5" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

Both the control plane nodes and the DGX nodes must be selected. Selecting the control plane nodes here allows select NVIDIA Run:ai services to run on the control plane nodes. If the cluster configuration has dedicated NVIDIA Run:ai system nodes as described in the optional [Node Category](#bcm-node-categories) section select that category here instead.
{% endhint %}

14. Skip the selection of individual Kubernetes worker nodes (the category selected in the previous step will be used instead). The screenshot below is for illustration - the correct category at this step should be `k8s-system-user`. See the [BCM node categories](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/preparations#bcm-node-categories) section for more information. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FJddIYae93S2TmY5r3tmo%2Funknown.png?alt=media&#x26;token=5d6ca02e-35c3-441d-af32-3084ae25329f" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

In the combined steps 13 and 14 above, you must select from either:

* A “node category” only (as described in this guide as `k8s-system-user`)
* “Individual Kubernetes nodes” only (not generally recommended)
* Or, a combination of both
  {% endhint %}

15. Select nodes for deploying [etcd](https://kubernetes.io/docs/concepts/architecture/#etcd) on. Make sure to select the same three nodes as the Kubernetes control plane nodes (Step 12). Click **Ok** to proceed:&#x20;

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2Fx5evYtt7sUlSskZgq2Vw%2Funknown.png?alt=media&#x26;token=4b0fc209-3c2c-4e61-88fd-54baf8c5ed3d" alt="" width="563"><figcaption></figcaption></figure>

16. Leave the API server proxy port and [etcd](https://kubernetes.io/docs/concepts/architecture/#etcd) spool directory values at their prepopulated values (do not modify them). Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FL83TpvDKvISmv5L1ezc0%2Funknown.png?alt=media&#x26;token=951dbdaa-77de-4e76-8d69-c159af3ef3d3" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

If there are multiple Kubernetes clusters being managed by BCM (such as in the case of DGX GB200 and GB300 SuperPODs), the default proxy port value will automatically be incremented to avoid an overlap with existing clusters and may not match the screenshot.
{% endhint %}

17. Select **Calico** as the Kubernetes network plugin. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2Fzxm5C2dDYRYfXjBi4CfG%2Funknown.png?alt=media&#x26;token=a0baba8c-ce96-4d66-ba93-301da9ffbc5d" alt="" width="563"><figcaption></figcaption></figure>

18. Select **no** to installing the **Kyverno Policy Engine** and click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FynKolRAkdeFZ6qo5GAgb%2Funknown.png?alt=media&#x26;token=83185a4d-c5b7-4a09-9250-b72dfba1140c" alt="" width="563"><figcaption></figcaption></figure>

19. The components selected in this screen represent those required by NVIDIA Run:ai for a self-hosted installation. Select the operator and NVIDIA Run:ai self-hosted options as depicted below. Click **Ok** to proceed:
    * NVIDIA GPU Operator
    * Grafana Operator
    * Ingress NGINX Controller
    * Knative Operator
    * Kubeflow Training Operator
    * Kubernetes Metrics Server
    * Kubernetes MPI Operator
    * Kubernetes State Metrics
    * LeaderWorkerSet Operator
    * MetalLB
    * Network Operator
    * NIM Operator (optional)
    * Prometheus Adapter
    * Prometheus Operator Stack
    * Run:ai (self-hosted)

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FTIsdsQt1bz3bBQBFCoec%2Funknown.png?alt=media&#x26;token=17d99465-865a-480c-874b-63c581abb5ab" alt="" width="563"><figcaption></figcaption></figure>

20. Provide the NVIDIA Run:ai configuration with the below and click **Ok** to proceed:
    * **Run:ai Registry Credentials** - Enter the path to a file containing the base64-encoded NVIDIA token. Alternatively the Base64 encoded value can be pasted in directly.
    * **Run:ai Control Plane Domain Name (FQDN)** - Enter the NVIDIA Run:ai control plane’s fully qualified domain name (e.g., `runai.example.com`). This value should be different from the FQDN entered on the first “Insert basic values” Kubernetes setup in Step 9. It should be what was used when creating certificates (and should not be the same as the BCM head node hostname).
    * **Local CA Cert Path (.crt or .pem)** - Path to the root CA certificate file if you are using a local CA–issued certificate (common in testing or internal environments). It’s optional if using a certificate from a public CA.
    * **Domain Cert Path (.crt/.pem)** - Path to the full-chain certificate for your domain (the domain’s leaf certificate followed by any intermediate certificates).
    * **Domain Cert Key Path (.key)** - Path to the private key that matches the domain certificate.

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FMzunqe16dc54zqRbRZfw%2Funknown.png?alt=media&#x26;token=a0f09602-ad64-4c64-8cfa-cd6266793334" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

It’s recommended to save all certificates, configuration files, and deployment artifacts into a persistent and accessible location in case of redeployment. The `/cm/shared/runai/` directory referred to in this guide resides on a shared mount point and would be a suitable location. See the [TLS certificates](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/preparations#tls-certificates) section for additional clarification.
{% endhint %}

21. Select **yes** to install NVIDIA Run:ai components. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FdEO7O1dEYCzfJ0aArXgx%2Funknown.png?alt=media&#x26;token=e40802e6-c2ce-4bae-8ec8-1e5af189a536" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

In this version of the BCM installation assistant, a warning dialog indicating an ssh issue will follow - disregard and click **Ok** to proceed. Other indications at this stage may indicate a problem with the certs supplied.
{% endhint %}

22. Select the `k8s-system-user` node category for the NVIDIA Run:ai control plane nodes and click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FuwrX5PW3lBwXc8uigBuR%2Funknown.png?alt=media&#x26;token=724765fe-01a9-4b94-89ac-95d8303c8202" alt="" width="563"><figcaption></figcaption></figure>

23. Select the required **NVIDIA GPU Operator** version (v25.10.0). Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FR8LuXesEFrCtKMvTpYlT%2Funknown.png?alt=media&#x26;token=46e822b8-451e-43dd-b700-f9a0fbdd1ecb" alt="" width="563"><figcaption></figcaption></figure>

24. Select the required **Network Operator** (v25.7.0) version. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FnLh470EBNoYRrK1UWaNc%2Funknown.png?alt=media&#x26;token=69e750a8-73f6-4cc4-8c38-f49afd53095c" alt="" width="563"><figcaption></figcaption></figure>

25. Select the required **NVIDIA Run:ai version** (v2.23.x). Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FUIsrrkPDzRl4u57wlteL%2Funknown.png?alt=media&#x26;token=6bdb8e3f-5fa7-4fc7-90c4-15ee15dca03a" alt="" width="563"><figcaption></figcaption></figure>

26. When prompted to supply a **Custom YAML config** for the GPU Operator leave the default (blank) and click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FbevwJTm3v6WSkHHx6XmK%2Funknown.png?alt=media&#x26;token=d2169066-e285-443d-8000-5e0b2ca25243" alt="" width="563"><figcaption></figcaption></figure>

27. Configure the NVIDIA GPU Operator by selecting the following configuration parameters. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FyRnGG5Vj30mM2b3lldhc%2Funknown.png?alt=media&#x26;token=5ecfe253-6ddf-49e6-89ed-7c007712e8bb" alt="" width="563"><figcaption></figcaption></figure>

28. Supply the path to the `netop-values.yaml` file that was created in Step 3. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FKiyJD0hGXnYDMDiJZrox%2Funknown.png?alt=media&#x26;token=e105791f-11a1-4ec6-81c9-fe2428adfb5a" alt="" width="563"><figcaption></figcaption></figure>

29. Select **Do not use pre-defined** at the GPU Operator configuration step. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2F7f80XCoQgU4oSNXq3B9p%2Funknown.png?alt=media&#x26;token=ebddd7bf-d933-406a-b454-98f9af7a13c2" alt="" width="563"><figcaption></figcaption></figure>

30. Click **Ok** for the MetalLB IP address pools page and it will automatically set up the requirements for NVIDIA Run:ai:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2Fc6LF6dE1PAu7FKVfgGsk%2Funknown.png?alt=media&#x26;token=cd4c2191-a66a-439e-b492-46c83ea62de9" alt="" width="563"><figcaption></figcaption></figure>

31. Specify the ingress IP addresses prepared as documented in the [Pre-installation checklist](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/preparations#pre-installation-checklist) section. The mention of MetalLB here is an indication that these will be set up as part of a load balanced pool and assigned to each respective ingress. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FeHnoP8JSdgyCs5RzfBMT%2Funknown.png?alt=media&#x26;token=267cf162-9c46-4cc5-bc47-3d87a6f4e634" alt="" width="563"><figcaption></figcaption></figure>

32. Select **no** to expose the **Kubernetes Ingress** to the default HTTPS port. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FKY5uYVIgCPMSHML3N06V%2Funknown.png?alt=media&#x26;token=4d7b2def-1649-43c3-b662-e5bed61d1417" alt="" width="563"><figcaption></figcaption></figure>

33. Leave the node ports for the Ingress NGINX Controller at the pre-populated values (do not modify them) and click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FQFxaNBgJwCgldB2x7O8r%2Funknown.png?alt=media&#x26;token=00b8947b-e2b8-4cdf-b999-d9f00e73f92b" alt="" width="563"><figcaption></figcaption></figure>

34. Select the serving option in the Knative Operator components dialog. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2Fr1stIxx4KPWcI150NKB0%2Funknown.png?alt=media&#x26;token=73022be1-d25e-415e-accd-8a122c9517a3" alt="" width="563"><figcaption></figcaption></figure>

35. If deploying onto an A100 or H100 only cluster, select **yes**. If deploying on any other cluster configuration select **no**. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2F2Xlo19Gtsctr9wjQEVES%2Funknown.png?alt=media&#x26;token=1f7d23a3-4bda-4b86-9281-dfed9103fd26" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

If applicable, Network Operator policies for DGX B200, DGX GB200 or later systems will be applied in a [post-deployment](#post-wizard-deployment-steps) step described below.
{% endhint %}

36. If **yes** was selected for the previous step, select the appropriate option for the cluster and click **Ok** to proceed. In certain cases, this dialog may appear even if **no** is selected at the preceding step:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FMCUMIsZvwMFt6PaLvQHH%2Funknown.png?alt=media&#x26;token=e4b0451e-87bf-4135-8000-ea40ea7a8f76" alt="" width="563"><figcaption></figcaption></figure>

37. Select **yes** to install the **Permission Manager**. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FjItBj2Ku58tfpR4y3sJ1%2Funknown.png?alt=media&#x26;token=e4de90cd-36bd-4922-ac59-a2f1e385f706" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

The BCM Permission Manager coordinates security policy, system accounts, RBAC, and configures Kubernetes to employ BCM LDAP for user accounts. BCM User Accounts, however, are not automatically represented within NVIDIA Run:ai. For assistance with configuring NVIDIA Run:ai, see [Set Up SSO with OpenID Connect](https://run-ai-docs.nvidia.com/self-hosted/infrastructure-setup/authentication/sso/openidconnect). For more information on the BCM Permission Manager, see [Containerization Manual documentation](https://docs.nvidia.com/base-command-manager/index.html#product-manuals).
{% endhint %}

38. Select **Local path** as the Kubernetes StorageClass. Ensure that both **enabled** and **default** are specified. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FZiiF5rbpdiKTbsShLcAg%2Funknown.png?alt=media&#x26;token=5f1584f9-0480-4bff-93cf-04f3045237ce" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

The indication “local path” in the installation assistant may imply that local storage is employed, but those paths are pointing to NFS mountpoints. These were mounted as part of standard BCM node provisioning (e.g. `/cm/shared` and `/home`).
{% endhint %}

39. Configure the CSI Provider (`local-path-provisioner`) to employ shared storage (`/cm/shared/apps/kubernetes/k8s-user/var/volumes` as a default). Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FbEZN9oP7ogikCKjUrHjZ%2Funknown.png?alt=media&#x26;token=e4906843-16d3-42f6-9b3a-f3a4e52b8d1f" alt="" width="563"><figcaption></figcaption></figure>

40. Select **yes** to enable local persistent storage for Grafana. Click **Ok** to proceed:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FgJcjQfoipWXXlibdReUH%2Funknown.png?alt=media&#x26;token=8bbfe30c-c61c-49c6-8fa7-7eefed310ae1" alt="" width="563"><figcaption></figcaption></figure>

41. Select **Save config**, set an accessible location for the config file (for example: `/cm/share/runai/cm-kubernete-setup.conf`) with the rest of the config files and then click **Ok**:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FUdjvlmu7gCNXv9MgFQWB%2Funknown.png?alt=media&#x26;token=b36d8a48-eb61-4a3b-a8b4-fdb94c792607" alt="" width="563"><figcaption></figcaption></figure>

42. After saving the config, select **Exit** and **Ok** to complete the wizard and return to the terminal:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FVlMfzJGn9bvfi4gb1YRr%2Funknown.png?alt=media&#x26;token=73594ad6-07dc-4e65-8cc1-4633dcda84d8" alt="" width="563"><figcaption></figcaption></figure>

The deployment process may require an extended period (60+ minutes). In order to prevent potential interruptions, failures, or network outages from disrupting the deployment process it’s recommended to perform the deployment from a persistent terminal session such as tmux or screen.

```sh
# Start a new screen session named "install_runai" 
# This allows detach/reattaching safely during the installation
screen -S install_runai

# Inside the screen session: run the cluster setup using the configuration file 
cm-kubernetes-setup -c /cm/shared/runai/cm-kubernetes-setup.conf
```

{% hint style="info" %}
**Note**

During the deployment process all nodes that are members of the new Kubernetes cluster will be rebooted.
{% endhint %}

## Connect to NVIDIA Run:ai User Interface <a href="#connect-to-nvidia-run-ai-user-interface" id="connect-to-nvidia-run-ai-user-interface"></a>

Upon completion of `cm-kubernetes-setup`, access NVIDIA Run:ai at the ingress IP or hostname specified earlier (e.g. [runai.example.com](http://runai.example.com)). The default NVIDIA Run:ai credentials required for login are:

* User: `test@run.ai`
* Password: `Abcd!234`

You will be prompted to change the password.

{% hint style="info" %}
**Note**

It is critical for security reasons that upon first login a new admin user is created with a secret password and the initial default credentials are changed or the test user deleted.
{% endhint %}

On first access, administrators are presented with an **optional onboarding wizard** that helps with initial setup tasks. The onboarding wizard can guide you through:

* Configuring single sign-on (SSO)
* Inviting the first research team

You can choose to **complete or skip** the onboarding wizard and perform these actions later.

## Post-wizard Deployment Steps

After the BCM installation assistant completes additional steps are required.

If multiple Kubernetes clusters are configured in this instance of BCM, load the correct Kubernetes module before running all post-wizard commands:

```bash
module unload kubernetes
module load kubernetes/k8s-user
```

### NVIDIA Dynamic Resource Allocation (DRA) Driver

The [NVIDIA DRA Driver for GPUs](https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/dra-cds.html) extends how NVIDIA GPUs are consumed within Kubernetes. This is required to enable secure Internode Memory Exchange (IMEX) on Multi-Node NVLink (MNNVL) systems (e.g. GB200, GB300) for Kubernetes workloads and should be included with all NVIDIA GPU systems.

1. Install using Helm:

   ```bash
   helm repo add nvidia https://helm.ngc.nvidia.com/nvidia \
   && helm repo update
   helm install nvidia-dra-driver-gpu nvidia/nvidia-dra-driver-gpu \
   --version="25.8.0" \
   --create-namespace \
   --namespace nvidia-dra-driver-gpu \
   --set nvidiaDriverRoot=/ \
   --set resources.gpus.enabled=false
   ```
2. **GB200 and GB300 only** - Create a `dra-test-gb200-gb300.yaml` file in `/cm/shared/runai` from the [Validation tests](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/validation-tests) and update the clique ID to match a clique ID from the cluster. The following test addresses single rack NVL72 clusters. For multi-rack systems, you’ll need to adjust `podAffinity` (e.g. t`opologyKey: nvidia.com/gpu.clique`):

   ```bash
   kubectl describe nodes | grep nvidia.com/gpu.clique=
   >                    nvidia.com/gpu.clique=f84d133c-bbc9-55fd-b1ff-ffffc7ef6783.23322

   # For DGX GB200 & GB300 systems
   kubectl apply -f /cm/shared/runai/dra-test-gb200-gb300.yaml
   ```
3. **GB200 and GB300 only** - Validate the test successfully completed and inspect the logs of the launcher:

   <pre class="language-bash"><code class="lang-bash"><strong># For GB200 &#x26; GB300
   </strong>kubectl get pods
   > NAME                              READY   STATUS      RESTARTS   AGE
   > nvbandwidth-test-launcher-snb82   0/1     Completed   0          72s

   kubectl logs nvbandwidth-test-launcher-snb82
   </code></pre>
4. **GB200 and GB300 only** - Cleanup test:

   ```bash
   # For GB200 & GB300
   kubectl delete -f dra-test-gb200-gb300.yaml
   ```

#### Enable DRA and Multi-Node NVLink

The default NVIDIA Run:ai configuration does not expose DRA features. After installing the DRA components, this can be enabled by modifying the `runaiconfig` in the cluster. See [Advanced cluster configurations](https://run-ai-docs.nvidia.com/self-hosted/infrastructure-setup/advanced-setup/cluster-config) for more details:

```yaml
# Edit the runaiconfig object to toggle GPUNetworkAccelerationEneable
# to true and adjust tolerations for the Kubernetes control plane

kubectl patch runaiconfig runai \
  -n runai \
  --type='merge' \
  -p '{
    "spec": {
      "workload-controller": {
        "GPUNetworkAccelerationEnabled": true
      },
      "global": {
        "tolerations": [
          {
            "key": "node-role.kubernetes.io/control-plane",
            "operator": "Exists",
            "effect": "NoSchedule"
          }
        ]
      }
    }
  }'
```

Instructions for validating the change and reverting if necessary:

```yaml
# Validate the patch was applied successfully


kubectl get runaiconfig runai \
  -n runai \
  -o custom-columns=GPUAccelEnabled:.spec.workload-controller.GPUNetworkAccelerationEnabled,Tolerations:.spec.global.tolerations

# To revert the runaiconfig object change

kubectl patch runaiconfig runai -n runai --type='merge' -p '{
  "spec": {
    "workload-controller": {
      "GPUNetworkAccelerationEnabled": false
    },
    "global": {
      "tolerations": null
    }
  }
}'
```

### Configure the Network Operator

In version 11.31.0 of the BCM installation assistant, the Network Operator requires additional configuration on DGX B200 / GB200  & B300 / GB300 SuperPOD / BasePOD systems. While the operator is installed in a preceding step, it does not automatically initialize or configure SR-IOV and secondary network plugins.

The following CRD resources have to be created in the exact order as below:

* SR-IOV Network Policies for each NVIDIA InfiniBand NIC
* An nvIPAM IP address pool
* SR-IOV InfiniBand networks

1. Create SR-IOV network node policies using the `nic-cluster-policy.yaml` that was created in an earlier step:

   ```bash
   # DGX GB300 Example - substitute policy name as appropriate
   kubectl apply -f /cm/shared/runai/nic-cluster-policy-gb300.yaml
   ```
2. Create an IPAM IP Pool using the `combined-ippools.yaml` that was created in an earlier step:

   ```bash
   # DGX GB300 Example - substitute policy name as appropriate
   kubectl apply -f /cm/shared/runai/combined-ippools-gb300.yaml
   ```
3. Create the SR-IOV IB networks using the `combined-sriovbnet.yaml` that was created in an earlier step:

   ```bash
   # DGX GB300 Example - substitute policy name as appropriate
   kubectl apply -f /cm/shared/runai/combined-sriovibnet-gb300.yaml
   ```
4. Create the SR-IOV Node Pool configuration using the `sriov-node-pool-config.yaml` appropriate for the DGX platform:

   ```bash
   kubectl apply -f /cm/shared/runai/sriov-node-pool-config.yaml
   ```

{% hint style="info" %}
**Note**

This will typically reconfigure NICs and may result in a node reboot. The supplied YAML sets the maxUnavailable field to 20%. This value should be adjusted to align with your operational requirements. A value of 1 would have the effect of serializing the upgrade and would result in blocking upon a single node failure. It may be appropriate for a small lab deployment to set it to 100%. This would prevent any single machine failure from blocking the remaining nodes from upgrading. For larger clusters, setting the value to a lower percentage means that the upgrade process will be effectively split into batches.
{% endhint %}

5. Validate by describing one of the DGX nodes and checking for SRIOV devices:

   ```bash
   # Describe a DGX worker node
   kubectl describe node <dgx-node> --context=kubernetes-admin@k8s-user | grep sriovib

   # Example output
     
     nvidia.com/sriovib_resource_a:  16
     
     nvidia.com/sriovib_resource_b:  16
     
     nvidia.com/sriovib_resource_c:  16
     
     nvidia.com/sriovib_resource_d:  16
     
     nvidia.com/sriovib_resource_a:  16
     
     nvidia.com/sriovib_resource_b:  16
     
     nvidia.com/sriovib_resource_c:  16
     
     nvidia.com/sriovib_resource_d:  16

   nvidia.com/sriovib_resource_b

   # Check the state of SR-IOV Nodes

   kubectl get -n network-operator sriovnetworknodestate --context=kubernetes-admin@k8s-user

   # Example Output

   NAME        SYNC STATUS
   <dgx_node>   Succeeded
   ```

{% hint style="info" %}
**Note**

It might take several minutes for these settings to take effect. If the `sriovnetworkconfig` daemon changes the NIC config, then a node reboot will occur.
{% endhint %}

6. Validate by running the DGX SuperPOD platform specific tests - [Validation tests](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/bcm-install/validation-tests):
   1. For GB200 & GB300 - [ib-test-gb200-gb300.yaml](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/validation-tests#infiniband-tests-for-gb200-and-gb300-systems-ib-test-gb200-gb300.yaml):

      <pre class="language-bash"><code class="lang-bash"># DGX GB200 &#x26; GB300

      kubectl apply -f /cm/shared/runai/ib-test-gb200-gb300.yaml -n default
      <strong>
      </strong><strong>MPI version: Open MPI v4.1.4, package: Debian OpenMPI, ident: 4.1.4, repo rev: v4.1.4, May 26, 2022
      </strong>
      CUDA Runtime Version: 12080

      CUDA Driver Version: 12080

      Driver Version: 570.172.08

      Process 0 (nvbandwidth-test-worker-0): device 0: NVIDIA GB200 (00000008:01:00)

      Process 1 (nvbandwidth-test-worker-0): device 1: NVIDIA GB200 (00000009:01:00)

      Process 2 (nvbandwidth-test-worker-0): device 2: NVIDIA GB200 (00000018:01:00)

      Process 3 (nvbandwidth-test-worker-0): device 3: NVIDIA GB200 (00000019:01:00)

      Process 4 (nvbandwidth-test-worker-1): device 0: NVIDIA GB200 (00000008:01:00)

      Process 5 (nvbandwidth-test-worker-1): device 1: NVIDIA GB200 (00000009:01:00)

      Process 6 (nvbandwidth-test-worker-1): device 2: NVIDIA GB200 (00000018:01:00)

      Process 7 (nvbandwidth-test-worker-1): device 3: NVIDIA GB200 (00000019:01:00)

      Running host_to_device_memcpy_ce.

      memcpy CE CPU(row) -> GPU(column) bandwidth (GB/s)
                 0         1         2         3
       0     85.59     95.33    200.73    191.27

      SUM host_to_device_memcpy_ce 572.93
      </code></pre>
   2. For B200 & B300 - [ib-test-b200-b300.yaml](https://run-ai-docs.nvidia.com/self-hosted/getting-started/installation/validation-tests#infiniband-tests-for-b200-and-b300-systems-ib-test-b200-b300.yaml):&#x20;

      ```bash
      # DGX B200 & B300
      kubectl apply -f /cm/shared/runai/ib-test-b200.yaml -n default

      kubectl logs -n default nccl-test-launcher-hdm54 
      Warning: Permanently added '[nccl-test-worker-0.nccl-test.default.svc]:2222' (ED25519) to the list of known hosts.
      Warning: Permanently added '[nccl-test-worker-1.nccl-test.default.svc]:2222' (ED25519) to the list of known hosts.
      # nThread 1 nGpus 1 minBytes 16 maxBytes 17179869184 step: 2(factor) warmup iters: 5 iters: 20 agg iters: 1 validation: 1 graph: 0
      #
      # Using devices
      #  Rank  0 Group  0 Pid     46 on nccl-test-worker-0 device  0 [0x1b] NVIDIA B200
      #  Rank  1 Group  0 Pid     47 on nccl-test-worker-0 device  1 [0x43] NVIDIA B200
      #  Rank  2 Group  0 Pid     48 on nccl-test-worker-0 device  2 [0x52] NVIDIA B200
      #  Rank  3 Group  0 Pid     49 on nccl-test-worker-0 device  3 [0x61] NVIDIA B200
      #  Rank  4 Group  0 Pid     50 on nccl-test-worker-0 device  4 [0x9d] NVIDIA B200
      #  Rank  5 Group  0 Pid     52 on nccl-test-worker-0 device  5 [0xc3] NVIDIA B200
      #  Rank  6 Group  0 Pid     55 on nccl-test-worker-0 device  6 [0xd1] NVIDIA B200
      #  Rank  7 Group  0 Pid     59 on nccl-test-worker-0 device  7 [0xdf] NVIDIA B200
      #  Rank  8 Group  0 Pid     46 on nccl-test-worker-1 device  0 [0x1b] NVIDIA B200
      #  Rank  9 Group  0 Pid     47 on nccl-test-worker-1 device  1 [0x43] NVIDIA B200
      #  Rank 10 Group  0 Pid     48 on nccl-test-worker-1 device  2 [0x52] NVIDIA B200
      #  Rank 11 Group  0 Pid     49 on nccl-test-worker-1 device  3 [0x61] NVIDIA B200
      #  Rank 12 Group  0 Pid     50 on nccl-test-worker-1 device  4 [0x9d] NVIDIA B200
      #  Rank 13 Group  0 Pid     51 on nccl-test-worker-1 device  5 [0xc3] NVIDIA B200
      #  Rank 14 Group  0 Pid     54 on nccl-test-worker-1 device  6 [0xd1] NVIDIA B200
      #  Rank 15 Group  0 Pid     58 on nccl-test-worker-1 device  7 [0xdf] NVIDIA B200
      #
      #                                                              out-of-place                       in-place          
      #       size         count      type   redop    root     time   algbw   busbw #wrong     time   algbw   busbw #wrong
      #        (B)    (elements)                               (us)  (GB/s)  (GB/s)            (us)  (GB/s)  (GB/s)       
                16             4     float     sum      -1    38.60    0.00    0.00      0    49.18    0.00    0.00      0
                32             8     float     sum      -1    42.23    0.00    0.00      0    50.96    0.00    0.00      0
                64            16     float     sum      -1    47.44    0.00    0.00      0    42.18    0.00    0.00      0
               128            32     float     sum      -1    39.51    0.00    0.01      0    42.78    0.00    0.01      0
               256            64     float     sum      -1    40.16    0.01    0.01      0    43.35    0.01    0.01      0
               512           128     float     sum      -1    39.22    0.01    0.02      0    44.53    0.01    0.02      0
              1024           256     float     sum      -1    42.81    0.02    0.04      0    44.47    0.02    0.04      0
              2048           512     float     sum      -1    40.63    0.05    0.09      0    52.70    0.04    0.07      0
              4096          1024     float     sum      -1    46.76    0.09    0.16      0    52.63    0.08    0.15      0
              8192          2048     float     sum      -1    47.22    0.17    0.33      0    53.69    0.15    0.29      0
             16384          4096     float     sum      -1    49.02    0.33    0.63      0    50.96    0.32    0.60      0
             32768          8192     float     sum      -1    54.24    0.60    1.13      0    53.88    0.61    1.14      0
             65536         16384     float     sum      -1    59.05    1.11    2.08      0    59.53    1.10    2.06      0
            131072         32768     float     sum      -1    62.04    2.11    3.96      0    63.99    2.05    3.84      0
            262144         65536     float     sum      -1    106.4    2.46    4.62      0    103.1    2.54    4.77      0
            524288        131072     float     sum      -1    107.5    4.88    9.15      0    102.8    5.10    9.56      0
           1048576        262144     float     sum      -1    108.8    9.64   18.07      0    106.6    9.83   18.44      0
           2097152        524288     float     sum      -1    112.7   18.60   34.88      0    106.6   19.67   36.88      0
           4194304       1048576     float     sum      -1    118.2   35.49   66.54      0    116.6   35.97   67.44      0
           8388608       2097152     float     sum      -1    150.2   55.85  104.72      0    153.8   54.54  102.26      0
          16777216       4194304     float     sum      -1    187.5   89.46  167.73      0    188.1   89.19  167.23      0
          33554432       8388608     float     sum      -1    250.5  133.97  251.20      0    251.6  133.35  250.02      0
          67108864      16777216     float     sum      -1    395.9  169.52  317.86      0    395.1  169.87  318.50      0
         134217728      33554432     float     sum      -1    618.9  216.85  406.59      0    620.8  216.20  405.37      0
         268435456      67108864     float     sum      -1   1073.4  250.08  468.90      0   1074.2  249.89  468.54      0
         536870912     134217728     float     sum      -1   1977.2  271.53  509.13      0   1976.0  271.69  509.42      0
        1073741824     268435456     float     sum      -1   3713.5  289.14  542.15      0   3710.3  289.40  542.62      0
        2147483648     536870912     float     sum      -1   7245.1  296.40  555.76      0   7226.3  297.18  557.20      0
        4294967296    1073741824     float     sum      -1    14049  305.71  573.20      0    13939  308.13  577.75      0
        8589934592    2147483648     float     sum      -1    27360  313.97  588.68      0    27292  314.74  590.13      0
       17179869184    4294967296     float     sum      -1    53941  318.49  597.17      0    53953  318.43  597.05      0
      # Out of bounds values : 0 OK
      # Avg bus bandwidth    : 168.649 


      # Clean up after validating via ib-test-b200.yaml
      kubectl delete -f /cm/shared/runai/ib-test-b200.yaml -n default 
      ```

{% hint style="info" %}
**Note**

The Network Operator will restart the DGX nodes if the number of Virtual Functions in the SR-IOV Network Policy file does not match the NVIDIA/Mellanox firmware configuration.
{% endhint %}

## (Optional) Apply Security Policies

By default, BCM Kubernetes deployment has permissive security policies to ease in development environments. For production clusters or in secure environments, it’s recommended to take additional steps to harden the cluster. This includes steps such as configuring permission manager, applying Kyverno policies, and applying Calico policies.

For deployments of NVIDIA Run:ai as a part of NVIDIA Mission Control, please reach out to your NVIDIA representative for the latest example configurations and suggested policies. The Mission Control software installation guide’s [Kubernetes Security Hardening](https://docs.nvidia.com/mission-control/docs/nmc-software-installation-guide/2.0.0/nmc-kube-security-guide.html) documentation provides guidance for application and links for obtaining the latest policy manifests.

## (Optional) Create Node Pools

See [Node pools](https://run-ai-docs.nvidia.com/self-hosted/platform-management/aiinitiatives/resources/node-pools) to create and manage groups of nodes (either by predefined node label or administrator-defined node labels). This optional configuration step can be used for advanced deployment scenarios to allocate different resources across teams or projects.

## (Optional) Add Additional Users

See [Users](https://run-ai-docs.nvidia.com/self-hosted/infrastructure-setup/authentication/users) for steps on adding additional users beyond the initially created account or configuring SSO authentication.

## (Optional) Install the NVIDA Run:ai Command Line&#x20;

To obtain the command line binary, see the [Install and configure CLI](https://run-ai-docs.nvidia.com/self-hosted/reference/cli/install-cli) section.

### Test the Command Line Tool Installation

Validate the installation by running the following command:

```bash
runai version
```

{% hint style="info" %}
**Note**

If NVIDIA Run:ai had previously been installed via BCM, it may be necessary to update the command line version.
{% endhint %}

### Set the Control Plane URL

The following step is required for Windows users only. Linux and Mac clients are configured via the installation script.

Run the following command (substituting the NVIDIA Run:ai control plane FQDN value specified in previous steps) to create the `config.json` file in the default path:

```bash
runai config set --cp-url runai.example.com
```

Alternative, the Base Command Manager installation assistant can generate this config with the following steps:

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2F52RFWCjjtcbBaNxgurDt%2Funknown.png?alt=media&#x26;token=41324394-2019-4f94-8d57-8ec0b25c6b7d" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://254436074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvuZQSF7VCx1Azh0LF0H%2Fuploads%2FUGOZy46BOrIre3GoTayt%2Funknown.png?alt=media&#x26;token=1476b977-b4af-4bee-8522-bc1b10d99373" alt="" width="563"><figcaption></figcaption></figure>

## Validate NVIDIA Run:ai

To validate the installation, please refer to the quick start guides for deploying single-GPU training jobs, multi-node training jobs, single-GPU inference jobs, and multi-GPU inference jobs. Certain NGC workloads may require adding [NGC API keys and docker credentials](https://docs.nvidia.com/nemo/microservices/latest/set-up/manage-secrets/ngc-image-pull-secret.html) into the cluster.

1. Validate the ingress IP for NVIDIA Run:ai inference is configured. `EXTERNAL-IP` should have the value configured in the prior MetalLB steps:

   ```bash
   kubectl get svc -n knative-serving kourier -o wide

   NAME      TYPE           CLUSTER-IP       EXTERNAL-IP    PORT(S)                      AGE
   kourier   LoadBalancer   x.x.x.x          10.1.1.26      80:31038/TCP,443:30783/TCP   8h
   ```
2. Validate distributed training workloads, see [Run you first distributed training workload](https://run-ai-docs.nvidia.com/self-hosted/workloads-in-nvidia-run-ai/using-training/distributed-training/quick-starts/distributed-training-quickstart).
3. Validate distributed inference workloads, see [Run your first custom inference workload](https://run-ai-docs.nvidia.com/self-hosted/workloads-in-nvidia-run-ai/using-inference/quick-starts/inference-quickstart).

## Troubleshooting Common Issues

<details>

<summary>Slow installation</summary>

Provide a registry mirror when requested in the wizard. If one isn’t available, authenticated access to Docker Hub can avoid potential [rate limiting](https://docs.docker.com/docker-hub/usage/pulls/) for at least some of the artifact pulls:

```bash
# Authenticate to Docker Hub prior to running cm-kubernetes-setup
echo -n "$DOCKERHUB_TOKEN" | docker login --username "$DOCKERHUB_USER" --password-stdin
```

</details>

<details>

<summary>Delayed responsiveness from the cmsh command</summary>

If encountering slow response when running the `cmsh` command, try using the `cmsh-lazy-load` command (substituting it for cmsh wherever referenced in the above deployment steps).

```sh
# Example: use of cmsh-lazy-load as substitute for cmsh
cmsh-lazy-load -c "device list; quit"
```

</details>

<details>

<summary>Failed installation</summary>

If encountering issues with installation failure (which should be evident immediately) ensure that the DGX node kernel parameters are not inadvertently forcing [Cgroup v1 vs Cgroup v2](https://kubernetes.io/blog/2024/08/14/kubernetes-1-31-moving-cgroup-v1-support-maintenance-mode/):

```bash
# the following kernel parameters should not be present 
systemd.unified_cgroup_hierarchy=0 systemd.legacy_systemd_cgroup_controller
```

</details>

<details>

<summary>Shared Storage (NFS) configuration</summary>

If encountering issues indicating problems consistently accessing Persistent Volumes (PVs) ensure that NFSv3 for `/cm/shared` for both of the node categories that’ll be used later in this guide. For example (please substitute the category name as appropriate for the DGX type):

```sh
# Force NFSv3 for the worker node category
cmsh -c "category use dgx-gb200-k8s; fsmounts; use /cm/shared; set mountoptions defaults,_netdev,vers=3; commit; quit"

# Force NFSv3 on the CPU nodes
cmsh -c "category use k8s-system-user; fsmounts; use /cm/shared; set mountoptions defaults,_netdev,vers=3; commit; quit"
```

</details>

<details>

<summary>MetalLB Load Balancer manual installation</summary>

Since there’s shared use of CPU nodes for the combined control plane elements in this architecture, BCM configures MetalLB and adjusts node labels to run. The following would be required as a manual step when deploying MetalLB in this manner:

```bash
# Remove the exclusion preventing nodes from receiving load balancer traffic
kubectl label nodes --all node.kubernetes.io/exclude-from-external-load-balancers-
```

{% hint style="info" %}
**Note**

The above is not required when using the BCM installation assistant. It’s included here to assist with alternative deployment approaches on DGX SuperPOD / BasePOD.
{% endhint %}

</details>

<details>

<summary>NVIDIA Run:ai exact version selection</summary>

The BCM installation assistant will pull the latest NVIDIA Run:ai patch release available for the minor version selected. The following can be used to indicate which version will be installed:

```bash
helm repo add runai https://runai.jfrog.io/artifactory/cp-charts-prod
helm repo update
helm search repo runai/control-plane --versions | grep "2.22"

runai-backend/control-plane	2.22.48      	2.22.48    	Run:ai Control Plane
```

</details>
