mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 20:23:39 +09:00
The auto-injected permittedHostDevices only works if each resourceName equals what nvidia-sandbox-device-plugin advertises on the node; otherwise the admission webhook rejects the VM — the very manual step this bundle removes. Several defaults did not match the slug the plugin (nvcr.io/nvidia/kubevirt-gpu-device-plugin) derives from the PCI-IDs database name, which uppercases the name and keeps the die suffix, the Tesla brand and the form-factor/memory tokens: 10DE:1EB8 TU104GL_T4 -> TU104GL_TESLA_T4 10DE:20B7 GA100_A30 -> GA100GL_A30_PCIE 10DE:2331 GH100_H100_PCIE_80GB-> GH100_H100_PCIE 10DE:2321 GH100_H100_NVL_94GB -> GH100_H100L_94GB 10DE:1DB1/1DB4/1DF6 + new 1DB5 -> GV100GL_TESLA_V100_* family Device 10DE:1DB1 was also mislabelled: it is the SXM2 16GB part, not the 32GB one — the 32GB SXM2 V100 is a distinct device (10DE:1DB5) that was missing entirely. Relabel 1DB1 as 16GB and add 1DB5. Restate the header comment as the actual generation rule and pin the corrected slugs (T4, A30, both V100 SXM2 parts) with a regression test that also asserts the tidy/short forms never reappear. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
90 lines
3.7 KiB
YAML
90 lines
3.7 KiB
YAML
# NVIDIA datacenter GPUs commonly used in passthrough VFIO mode. Used by
|
|
# bundles/iaas.yaml when bundles.iaas.gpuOperatorVariant=default and
|
|
# cozystack.gpu-operator is in bundles.enabledPackages. Auto-injected into
|
|
# the KubeVirt CR at spec.configuration.permittedHostDevices.pciHostDevices.
|
|
#
|
|
# PCI vendor:device pairs are stable vendor-assigned identifiers under the
|
|
# PCI-SIG-administered namespace and do not drift across driver versions.
|
|
#
|
|
# The resourceName is what nvidia-sandbox-device-plugin
|
|
# (nvcr.io/nvidia/kubevirt-gpu-device-plugin, the image shipped by the
|
|
# gpu-operator package) advertises on the node. The plugin derives it
|
|
# mechanically from the device's PCI-IDs database name: uppercase the
|
|
# name, turn "/", "." and whitespace into "_", then strip the remaining
|
|
# non-alphanumerics (the "[" / "]" around the model). So
|
|
# "TU104GL [Tesla T4]" becomes nvidia.com/TU104GL_TESLA_T4 and
|
|
# "GA100GL [A30 PCIe]" becomes nvidia.com/GA100GL_A30_PCIE — the slug
|
|
# carries every token the PCI-IDs string holds (die suffix "GL", the
|
|
# "Tesla" brand on Turing/Volta, form factor, memory), not a tidy
|
|
# <arch>_<model>. The names here track the pci.ids snapshot bundled in
|
|
# the plugin image; a different plugin build can emit a different string.
|
|
# Always confirm against the live node (kubectl describe node <node> |
|
|
# grep nvidia.com/) and extend or replace via .Values.gpu.permittedHostDevices
|
|
# / .Values.gpu.replaceDefaults when it differs.
|
|
#
|
|
# externalResourceProvider: true is mandatory here — the resource is
|
|
# published by the sandbox-device-plugin DaemonSet, not by KubeVirt itself.
|
|
pciHostDevices:
|
|
# Hopper
|
|
- pciVendorSelector: "10DE:2335"
|
|
resourceName: nvidia.com/GH100_H200_SXM_141GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:2330"
|
|
resourceName: nvidia.com/GH100_H100_SXM5_80GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:2331"
|
|
resourceName: nvidia.com/GH100_H100_PCIE
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:2321"
|
|
resourceName: nvidia.com/GH100_H100L_94GB
|
|
externalResourceProvider: true
|
|
# Ada Lovelace (datacenter SKUs)
|
|
- pciVendorSelector: "10DE:26B9"
|
|
resourceName: nvidia.com/AD102GL_L40S
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:26B5"
|
|
resourceName: nvidia.com/AD102GL_L40
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:27B8"
|
|
resourceName: nvidia.com/AD104GL_L4
|
|
externalResourceProvider: true
|
|
# Ampere
|
|
- pciVendorSelector: "10DE:20B2"
|
|
resourceName: nvidia.com/GA100_A100_SXM4_80GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:20B0"
|
|
resourceName: nvidia.com/GA100_A100_SXM4_40GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:20B5"
|
|
resourceName: nvidia.com/GA100_A100_PCIE_80GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:20F1"
|
|
resourceName: nvidia.com/GA100_A100_PCIE_40GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:20B7"
|
|
resourceName: nvidia.com/GA100GL_A30_PCIE
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:2235"
|
|
resourceName: nvidia.com/GA102GL_A40
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:2236"
|
|
resourceName: nvidia.com/GA102GL_A10
|
|
externalResourceProvider: true
|
|
# Turing
|
|
- pciVendorSelector: "10DE:1EB8"
|
|
resourceName: nvidia.com/TU104GL_TESLA_T4
|
|
externalResourceProvider: true
|
|
# Volta
|
|
- pciVendorSelector: "10DE:1DB1"
|
|
resourceName: nvidia.com/GV100GL_TESLA_V100_SXM2_16GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:1DB5"
|
|
resourceName: nvidia.com/GV100GL_TESLA_V100_SXM2_32GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:1DB4"
|
|
resourceName: nvidia.com/GV100GL_TESLA_V100_PCIE_16GB
|
|
externalResourceProvider: true
|
|
- pciVendorSelector: "10DE:1DF6"
|
|
resourceName: nvidia.com/GV100GL_TESLA_V100S_PCIE_32GB
|
|
externalResourceProvider: true
|