PAIF VKS cluster with vGPU fails to power on with "Insufficient resources" or "hard set power state to poweredOn failed No host is compatible with the virtual machine"
search cancel

PAIF VKS cluster with vGPU fails to power on with "Insufficient resources" or "hard set power state to poweredOn failed No host is compatible with the virtual machine"

book

Article ID: 429506

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service VMware vSphere ESXi

Issue/Introduction

  • PAIF VMs in the VKS cluster fail to power on with the error: "hard set power state to poweredOn failed. No host is compatible with the virtual machine."

  • From the vCenter UI, the VM power-on fails with: "Insufficient resources. One or more devices (pciPassthru0) required by VM are not available on host."

Environment

VMware vSphere Kubernetes Service

Cause

The issue is caused by a configuration mismatch between the vGPU graphics settings and the requested vGPU profiles. If a VKS/PAIF cluster utilizes diverse VM classes (e.g., 23c, 47c, 94c, 15c) and all physical GPUs on the host are occupied by existing workloads, new worker nodes requesting different profile sizes will fail to find a compatible host, even if total framebuffer memory appears sufficient. 

Example:

In a three-node ESXi cluster:

Resource Contention: As shown in the error message, all six GPUs were already occupied by existing vGPUs of various sizes (23c, 47c, 94c, 15c):

  • Host 1 and Host 2: GPU 0 occupied by 23c; GPU 1 occupied by 94c/47c.
  • Host 3: GPU 0 occupied by 23c; GPU 1 occupied by 15c.

New VM power-on attempts fail on Host 3 because the requested profile conflicts with the existing GPU allocation while "Same Size" mode is enabled. For future deployments with diverse VM classes, we recommend maintaining GPUs in "Mixed Mode" or ensuring the VM classes align with the "Same Size" constraint.

Resolution

To resolve this, the ESXi host(s) must be changed from "Same Size" mode to "Mixed Mode". This allows the physical GPU to host diverse vGPU profiles simultaneously.

Important Requirements:

  • Maintenance Mode: This configuration change requires the host to be in Maintenance Mode. Ensure all running VMs are migrated (vMotion) or powered off before proceeding.
  • Host Reboot: A reboot of the ESXi host is required for the new graphics configuration to take effect.
  • Rolling Procedure: To avoid cluster downtime, perform this change one host at a time within your cluster.

Steps to Change GPU Mode to Mixed:

  1. Migrate Workloads: Use vMotion to move all virtual machines off the target ESXi host.
  2. Enter Maintenance Mode: Right-click the host in the vSphere Client and select Maintenance Mode > Enter Maintenance Mode.
  3. Navigate to Graphics Settings:
    • Select the Host in the vSphere inventory.
    • Go to the Configure tab.
    • Under the Hardware section, click Graphics.
  4. Edit Configuration:
    • Click the Edit button (or "Graphics Settings" edit link).
    • Change the Graphics Type (or Mode) from "Same Size" to "Mixed Mode".
    • Click OK.
  5. Reboot: Reboot the ESXi host to apply the changes.
  6. Exit Maintenance Mode: Once the host is back online and the task completes, right-click the host and select Maintenance Mode > Exit Maintenance Mode.
  7. Verify: After the host is back in the cluster, attempt to power on the failed VKS worker node VMs.