$ oc apply -f <file name>.yaml
Install OpenShift Virtualization to add virtualization functionality to your Red Hat OpenShift Service on AWS cluster.
Install the OpenShift Virtualization Operator by using the Red Hat OpenShift Service on AWS web console or the command line.
You can deploy the OpenShift Virtualization Operator by using the Red Hat OpenShift Service on AWS web console.
Install Red Hat OpenShift Service on AWS on your cluster.
Log in to the Red Hat OpenShift Service on AWS web console as a user with cluster-admin
permissions.
Create a machine pool based on a bare metal compute node instance type. For more information, see "Creating a machine pool" in the Additional resources of this section.
From the Administrator perspective, click Operators → OperatorHub.
In the Filter by keyword field, type Virtualization.
Select the OpenShift Virtualization Operator tile with the Red Hat source label.
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 Red Hat OpenShift Service on AWS 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, it is highly recommended that you select Automatic, which is the default value, so that OpenShift Virtualization automatically updates when a new version is available in the stable update channel.
While it is possible to select the Manual approval strategy, this is inadvisable because of the high risk that it presents to the supportability and functionality of your cluster. Only select Manual if you fully understand these risks and cannot use Automatic.
Because OpenShift Virtualization is only supported when used with the corresponding Red Hat OpenShift Service on AWS version, missing OpenShift Virtualization updates can cause your cluster to become unsupported. |
click Install to make the Operator available to the openshift-cnv
namespace.
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.
Subscribe to the OpenShift Virtualization catalog and install the OpenShift Virtualization Operator by applying manifests to your cluster.
Before you install OpenShift Virtualization, you must subscribe to the OpenShift Virtualization catalog. Subscribing gives the openshift-cnv
namespace access to the OpenShift Virtualization Operators.
To subscribe, configure Namespace
, OperatorGroup
, and Subscription
objects by applying a single manifest to your cluster.
Install Red Hat OpenShift Service on AWS on your cluster.
Install the OpenShift cli (oc
).
Log in as a user with cluster-admin
privileges.
Create the required Namespace
, OperatorGroup
, and Subscription
objects
for OpenShift Virtualization by running the following command:
$ oc apply -f <file name>.yaml
You can configure certificate rotation parameters in the YAML file. |
You can deploy the OpenShift Virtualization Operator by using the oc
cli.
Subscribe to the OpenShift Virtualization catalog in the openshift-cnv
namespace.
Log in as a user with cluster-admin
privileges.
Create a machine pool based on a bare metal compute node instance type.
Create a YAML file that contains the following manifest:
apiVersion: hco.kubevirt.io/v1beta1
kind: HyperConverged
metadata:
name: kubevirt-hyperconverged
namespace: openshift-cnv
spec:
Deploy the OpenShift Virtualization Operator by running the following command:
$ oc apply -f <file_name>.yaml
Ensure that OpenShift Virtualization deployed successfully by watching the PHASE
of the cluster service version (CSV) in the openshift-cnv
namespace. Run the following command:
$ watch oc get csv -n openshift-cnv
The following output displays if deployment was successful:
NAME DISPLAY VERSION REPLACES PHASE
kubevirt-hyperconverged-operator.v4.17.0 OpenShift Virtualization 4.17.0 Succeeded
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.