Install OpenShift Virtualization to add virtualization functionality to your OpenShift Container Platform cluster.
You can use the OpenShift Container Platform 4.7 web console to subscribe to and deploy the OpenShift Virtualization Operators.
You can install the OpenShift Virtualization Operator from the OpenShift Container Platform web console.
Install OpenShift Container Platform 4.7 on your cluster.
Log in to the OpenShift Container Platform web console as a user with
Open a browser window and log in to the OpenShift Container Platform web console.
From the Administrator perspective, click Operators → OperatorHub.
In the Filter by keyword field, type OpenShift Virtualization.
Select the OpenShift Virtualization tile.
Read the information about the Operator and click Install.
On the Install Operator page:
Select stable from the list of available Update Channel options. This ensures that:
You install the version of OpenShift Virtualization that is compatible with your OpenShift Container Platform version.
When you update OpenShift Container Platform, OpenShift Virtualization automatically updates to the next minor version.
For Installed Namespace, ensure that the Operator recommended namespace option is selected. This installs the Operator in the mandatory
openshift-cnv namespace, which is automatically created if it does not exist.
Attempting to install the OpenShift Virtualization Operator in a namespace other than
For Approval Strategy, ensure that Automatic, which is the default value, is selected. OpenShift Virtualization automatically updates when a new z-stream release is available.
Click Install to make the Operator available to the
When the Operator installs successfully, click Create HyperConverged.
Optional: Configure Infra and Workloads node placement options for OpenShift Virtualization components.
Click Create to launch OpenShift Virtualization.
Navigate to the Workloads → Pods page and monitor the OpenShift Virtualization pods until they are all Running. After all the pods display the Running state, you can use OpenShift Virtualization.
You might want to additionally configure the following components:
The KubeMacPool component provides a MAC address pool service for virtual machine NICs in designated namespaces. Enable a MAC address pool in a namespace by applying the KubeMacPool label to that namespace.
The hostpath provisioner is a local storage provisioner designed for OpenShift Virtualization. If you want to configure local storage for virtual machines, you must enable the hostpath provisioner first.