Installing OKD Virtualization using the CLI

    • Install OKD 4.12 on your cluster.

    • Log in as a user with cluster-admin privileges.

    Before you install OKD Virtualization, you must subscribe to the OKD Virtualization catalog. Subscribing gives the openshift-cnv namespace access to the OKD Virtualization Operators.

    To subscribe, configure Namespace, OperatorGroup, and Subscription objects by applying a single manifest to your cluster.

    1. Create a YAML file that contains the following manifest:

    2. Create the required Namespace, OperatorGroup, and Subscription objects for OKD Virtualization by running the following command:

      1. $ oc apply -f <file name>.yaml

    You can deploy the OKD Virtualization Operator by using the oc CLI.

    Prerequisites

    • An active subscription to the OKD Virtualization catalog in the namespace.

    Procedure

    1. Deploy the OKD Virtualization Operator by running the following command:

      1. $ oc apply -f <file_name>.yaml

    Verification

    • Ensure that OKD Virtualization deployed successfully by watching the PHASE of the cluster service version (CSV) in the openshift-cnv namespace. Run the following command:

      The following output displays if deployment was successful:

      Example output

      1. NAME DISPLAY VERSION REPLACES PHASE
      2. kubevirt-hyperconverged-operator.v4.12.0 OKD Virtualization 4.12.0 Succeeded

    You might want to additionally configure the following components: