Deploy the OpenShift Virtualization operator in an existing Red Hat OpenShift environment and create a VM to prove the operator's functionality.
Outcomes
Deploy the OpenShift Virtualization operator in an existing OpenShift instance by using the web console.
Review the installed operators and confirm that the OpenShift Virtualization operator is installed.
Create a Fedora virtual machine from a template.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command ensures that the cluster API is reachable and creates the required resources for this exercise.
[student@workstation ~]$ lab start virtualization-deploy
Instructions
Open a web browser and log in to https://console-openshift-console.apps.ocp4.example.com from the workstation machine.
Click and log in as the admin user with redhatocp as the password.
From the RHOCP web console left panel, navigate to → . If you do not see the left panel, then click the main menu icon at the upper left of the web console.
Type virtualization in the OperatorHub search bar. Scroll down and select from the list.
![]() |
From the Operator page, click to open the page.
Review the available installation options. For this exercise, keep the default options:
is set to .
is set to .
is set to .
is set to .
is set to .
Click to initiate the operator installation.
![]() |
Create a HyperConverged instance.
After the OpenShift Virtualization operator installation completes, you are prompted to create a HyperConverged instance. Click to view the options for the HyperConverged instance.
![]() |
You can also create a HyperCoverged instance in the OpenShift web console by navigating to → .
Select the OpenShift Virtualization operator and then click the tab.
Click to view the options for the HyperConverged instance.
Accept the default options and click in the lower left of the window.
Wait for the operation to finish.
The kubevirt-hyperconverged HyperConverged instance displays a status of when the operation completes.
Log out of the web console, and log in as the admin user to ensure that the entry appears in the side panel.
From the OpenShift web console left panel, navigate to → to confirm that the OpenShift Virtualization installation succeeded.
![]() |
Create a project and a simple VM to confirm the functionality of OpenShift Virtualization.
From the OpenShift web console left panel, navigate to → .
From the menu, click .
Name the project as test-vms, and then click .
Click , select the option, and then select the template.
Enter the virtual machine name CentOS-test, or leave the autogenerated name, and click to deploy the VM.
![]() |
From the resulting details page for the VM, monitor the deployment of the VM until the status is Running.
10.Remove the deployed test VM by selecting btn:Actions[Delete].