Install container-native virtualization to add virtualization functionality to your OpenShift Container Platform cluster.
You can use the OpenShift Container Platform 4.3 web console to subscribe to and deploy the container-native virtualization Operators.
OpenShift Container Platform 4.3
Container-native virtualization is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see https://access.redhat.com/support/offerings/techpreview/. |
Before installing container-native virtualization, create a namespace that is named
openshift-cnv
.
User with cluster-admin
privileges
From the OpenShift Container Platform web console, navigate to the Administration → Namespaces page.
Click Create Namespace.
In the Name field, type openshift-cnv
.
Click Create.
Before you install container-native virtualization, subscribe to the
Container-native virtualization catalog from the OpenShift Container Platform web console.
Subscribing gives the openshift-cnv
namespace access to the container-native virtualization
Operators.
Create a namespace that is named openshift-cnv
.
Open a browser window and log in to the OpenShift Container Platform web console.
Navigate to the Operators → OperatorHub page.
Search for Container-native virtualization and then select it.
Read the information about the Operator and click Install.
On the Create Operator Subscription page:
Select A specific namespace on the cluster from the Installation Mode
list and choose the openshift-cnv
namespace.
|
Select 2.2 from the list of available Update Channel options.
For Approval Strategy, ensure that Automatic, which is the default value, is selected. Container-native virtualization automatically updates when a new z-stream release is available.
Click Subscribe to make the Operator available to the openshift-cnv
namespace.
After subscribing to the Container-native virtualization catalog, create the KubeVirt HyperConverged Cluster Operator Deployment custom resource to deploy container-native virtualization.
An active subscription to the Container-native virtualization catalog in the openshift-cnv
namespace
Navigate to the Operators → Installed Operators page.
Click Container-native virtualization.
Click the KubeVirt HyperConverged Cluster Operator Deployment tab and click Create HyperConverged Cluster.
To avoid deployment errors, do not rename the custom resource. Before you proceed
to the next step, ensure that the custom resource is named the default
|
Click Create to launch container-native virtualization.
Navigate to the Workloads → Pods page and monitor the container-native virtualization Pods until they are all Running. After all the Pods display the Running state, you can access container-native virtualization.