Table of Content

This is part one in a series about Openshift Virtualization with Portworx. The series will cover installation and usage, backup and restore, and data protection for virtual machines on Openshift. You can read the Part 2 here.

As organizations modernize their application platforms, containers are becoming the preferred deployment model. However, many enterprises still rely on a significant number of virtual machine (VM)-based applications that continue to support critical business services. OpenShift Virtualization, powered by KubeVirt, enables organizations to run VM-based and containerized workloads side by side on a single platform, providing a unified operational experience for developers and administrators.

Portworx complements this approach by delivering a common data management and protection layer for both containers and VMs. With capabilities such as persistent storage, high availability, backup and recovery, and disaster recovery, Portworx helps simplify operations while ensuring consistent data services across all workloads. In this blog, we’ll explore how Portworx enables seamless VM operations on OpenShift Virtualization, including features such as Live Migration using the px-rwx-block-kubevirt StorageClass.

Pre-requisites

  • Install OpenShift using a version that supports virtualization, such as 4.20. Make sure all the OpenShift requirements are met. This includes tasks such as using a specific OS and sizing your worker nodes to ensure VMs can run properly.
  • Install Portworx on OpenShift. This can easily be done using the Portworx Operator in the OpenShift Software Catalog.

Portworx Operator is installed

NOTE : Once the Portworx Operator is installed, follow the following instruction to install the Portworx StorageCluster.

  • Install OpenShift Virtualization into your OpenShift cluster. This can be done by installing the OpenShift Virtualization operator from the Software Catalog.

OpenShift Virtualization into your OpenShift cluster

Using OpenShift Virtualization with Portworx

Portworx deploys several pre-configured StorageClasses after the cluster is created. Portworx recommends using the CSI provisioner (pxd.portworx.com) for persistent volume operations and OpenShift Virtualization integrations.

Recommended Virtualization StorageClasses

  • px-rwx-block-kubevirt – This StorageClass should be used for VM operating system disks and application data disks. Block-mode RWX volumes provide the performance characteristics required by most virtualization workloads and support OpenShift Virtualization features such as live migration.
  • px-rwx-file-kubevirt – This StorageClass provides filesystem-based RWX storage and is commonly used for workloads requiring shared file access, vTPM storage, or applications requiring filesystem semantics rather than raw block access.
  • px-cdi-scratch – This StorageClass is used by the Containerized Data Importer (CDI) during image imports, uploads, and conversion operations. These volumes are temporary in nature and can use lower replication requirements than persistent VM disks.

Deploying a Virtual Machine Using a GUI Template

OpenShift Virtualization simplifies VM provisioning through a rich catalog of pre-configured templates. Instead of manually creating virtual machine definitions, administrators can quickly deploy a VM using the web console by selecting a template, specifying compute and storage requirements, and customizing optional settings such as networking and cloud-init.

Note: the catalog items with “source available” means the boot disk image has been downloaded to the cluster and is ready to be used.

create new virtual machines

Select the Red Hat Enterprise Linux 9 template and click Customize. Update the boot disk settings to use the px-rwx-block-kubevirt StorageClass before creating the VM.

customise and create virtual machines

Once the VM has been created, the Overview page provides key details such as CPU, memory, and storage allocation. In addition, the Portworx tab offers valuable insights into the underlying storage, including the associated Portworx volume, replication settings, storage consumption, and real-time disk performance metrics. This unified view simplifies monitoring and management of VM storage directly from the OpenShift console.

monitoring and management of VM

vm storage

vm details section

Conclusion

Portworx and OpenShift Virtualization provide a powerful platform for running virtual machines and containers side by side on OpenShift. By leveraging Portworx StorageClasses such as px-rwx-block-kubevirt, organizations can simplify VM storage management while benefiting from enterprise features such as high availability, live migration, and data protection. Together, they deliver a unified and resilient infrastructure that helps accelerate application modernization without requiring immediate VM-to-container migration.