Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# DeprecatedMachineType

## Meaning
This alert triggers when one or more Virtual Machines (VMs) are using machine
types that have been marked as no longer supported.
This alert triggers when one or more virtual machines (VMs) are using machine
types that are no longer supported.

## Impact

Expand All @@ -22,11 +22,11 @@ types that have been marked as no longer supported.
## Diagnosis
The alert detects VMs using unsupported machine types.

**Identify affected VMs**
**Identify affected VMs:**
Use the alert description to locate VM names, namespaces, and nodes (if
running).

**Root Cause:**
**Root cause:**
The VM's `spec.template.spec.domain.machine.type` field is set to a type
that has been marked as unsupported. This can happen due to:

Expand All @@ -45,10 +45,9 @@ following:
in one operation. This ensures consistent, automated migration and reduces
manual errors or downtime during cluster upgrades. For details, see [Updating
multiple

VMs](https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/virtualization/managing-vms#virt-updating-multiple-vms_virt-edit-vms).

**Important:** Plan and apply these updates before performing cluster
**Important** Plan and apply these updates before performing cluster
upgrades to avoid VM restart failures or compatibility issues.

Alternative: remove the machine field to let OpenShift Virtualization default
Expand All @@ -57,13 +56,13 @@ supported type:

```bash
# Removes spec.template.spec.domain.machine so the mutating webhook defaults it
oc patch vm <vm-name> -n <namespace> --type='json' \
$ oc patch vm <vm-name> -n <namespace> --type='json' \
-p='[{"op":"remove","path":"/spec/template/spec/domain/machine"}]'
```

Note: The automation tool performs these JSON patches
in bulk across multiple VMs.

If you cannot resolve the issue, log in to the
[Customer Portal](https://access.redhat.com) and open a support case,
[Red Hat Customer Portal](https://access.redhat.com) and open a support case,
attaching the artifacts gathered during the diagnosis procedure.