|
| 1 | +// Do not edit this module. It is generated with a script. |
| 2 | +// Do not reuse this module. The anchor IDs do not contain a context statement. |
| 3 | +// Module included in the following assemblies: |
| 4 | +// |
| 5 | +// * virt/support/virt-runbooks.adoc |
| 6 | + |
| 7 | +:_content-type: REFERENCE |
| 8 | +[id="virt-runbook-KubeVirtNoAvailableNodesToRunVMs"] |
| 9 | += KubeVirtNoAvailableNodesToRunVMs |
| 10 | + |
| 11 | +[discrete] |
| 12 | +[id="meaning-kubevirtnoavailablenodestorunvms"] |
| 13 | +== Meaning |
| 14 | + |
| 15 | +This alert fires when the node CPUs in the cluster do not support virtualization |
| 16 | +or the virtualization extensions are not enabled. |
| 17 | + |
| 18 | +[discrete] |
| 19 | +[id="impact-kubevirtnoavailablenodestorunvms"] |
| 20 | +== Impact |
| 21 | + |
| 22 | +The nodes must support virtualization and the virtualization features must be |
| 23 | +enabled in the BIOS to run virtual machines (VMs). |
| 24 | + |
| 25 | +[discrete] |
| 26 | +[id="diagnosis-kubevirtnoavailablenodestorunvms"] |
| 27 | +== Diagnosis |
| 28 | + |
| 29 | +* Check the nodes for hardware virtualization support: |
| 30 | ++ |
| 31 | +[source,terminal] |
| 32 | +---- |
| 33 | +$ oc get nodes -o json|jq '.items[]|{"name": .metadata.name, "kvm": .status.allocatable["devices.kubevirt.io/kvm"]}' |
| 34 | +---- |
| 35 | ++ |
| 36 | +.Example output |
| 37 | ++ |
| 38 | +[source,text] |
| 39 | +---- |
| 40 | +{ |
| 41 | + "name": "shift-vwpsz-master-0", |
| 42 | + "kvm": null |
| 43 | +} |
| 44 | +{ |
| 45 | + "name": "shift-vwpsz-master-1", |
| 46 | + "kvm": null |
| 47 | +} |
| 48 | +{ |
| 49 | + "name": "shift-vwpsz-master-2", |
| 50 | + "kvm": null |
| 51 | +} |
| 52 | +{ |
| 53 | + "name": "shift-vwpsz-worker-8bxkp", |
| 54 | + "kvm": "1k" |
| 55 | +} |
| 56 | +{ |
| 57 | + "name": "shift-vwpsz-worker-ctgmc", |
| 58 | + "kvm": "1k" |
| 59 | +} |
| 60 | +{ |
| 61 | + "name": "shift-vwpsz-worker-gl5zl", |
| 62 | + "kvm": "1k" |
| 63 | +} |
| 64 | +---- |
| 65 | ++ |
| 66 | +Nodes with `"kvm": null` or `"kvm": 0` do not support virtualization extensions. |
| 67 | ++ |
| 68 | +Nodes with `"kvm": "1k"` do support virtualization extensions. |
| 69 | + |
| 70 | +[discrete] |
| 71 | +[id="mitigation-kubevirtnoavailablenodestorunvms"] |
| 72 | +== Mitigation |
| 73 | + |
| 74 | +Ensure that hardware and CPU virtualization extensions are enabled on all nodes |
| 75 | +and that the nodes are correctly labeled. |
| 76 | + |
| 77 | +See link:https://access.redhat.com/solutions/5106121[{VirtProductName} reports no nodes are available, cannot start VMs] |
| 78 | +for details. |
| 79 | + |
| 80 | +If you cannot resolve the issue, log in to the |
| 81 | +link:https://access.redhat.com[Customer Portal] and open a support case. |
0 commit comments