Getting started with Red Hat OpenShift Virtualization

Red Hat® OpenShift® Virtualization allows users to run virtual machines (VMs) alongside containers on the same platform. Learn how to create, deploy, and migrate different VMs on a single platform. 

Red Hat® OpenShift® Virtualization allows users to run virtual machines (VMs) alongside containers on the same platform. Learn how to create, deploy, and migrate different VMs on a single platform. 

Using catalog to create Linux and Windows virtual machines in Red Hat OpenShift Virtualization

20 mins

After you have configured your Operator and created your nodes, a variety of options will become available when your instance is configured. To start, we will create either a Red Hat® Enterprise Linux® (RHEL) or a Microsoft Windows virtual machine (VM) from the catalog in the virtualization menu.

What will you learn?

  • How to create RHEL VMs in Red Hat OpenShift® Virtualization
  • How to create Windows VMs in OpenShift Virtualization

What you need before starting:

  • Red Hat account
  • OpenShift cluster running with bare metal nodes
  • OpenShift Virtualization Operator installed on your node

 

The video above is a visual walkthrough of the steps below.

Creating a Red Hat Enterprise Linux virtual machine

  1. From the Virtualization page on the OpenShift console, select Catalog in the left hand menu. 
  2. The page that shows will display several options for Linux virtual machines that are available for virtualization.
  3. Click the Template project dropdown in the upper left and select the “linux-vms” project.
  4. Select the Red Hat Enterprise Linux 9 VM option. 
  5. Here you may choose to Quick Create or customize your virtual machine. 
    1. Note: customization options will vary, including unique passwords, data source name, and namespace. 
  6. After changing any options as desired, the next screen will give the opportunity to review all settings. Here you may edit the CPU and memory made available, as well as disk size and networking. 
  7. Click Next to create the virtual machine. The page will refresh. You may need to wait several minutes while it is provisioning. 
    1. Note: you will need the VM to begin to post under the VNC console area. 
  8. Once this posts, click Open web console to open a new tab accessing the VM. 

Creating a Microsoft Windows virtual machine

  1. From the Virtualization page on the OpenShift console, select Catalog in the left hand menu. 
  2. The page that shows will display several options for virtual machines that are available for virtualization.
  3. Click the Template project dropdown in the upper left and select the “windows-vms” project.
  4. Select the Microsoft Windows Server 2012 R2 VM option. 
    1. Note: this type of machine does not have a Quick Create option. 
  5. Click Next to proceed to the customize template options. 
  6. Under Disk source, click the dropdown and select the Upload option.
  7. You may browse your local system for the desired Windows disk image. Once selected, the upload process will begin and take several minutes. 
  8. After the upload is completed, you can create the virtual machine and watch its provision in the refreshed screen. 
  9. Once this posts, click Open web console to open a new tab accessing the VM. 
  10. Proceed with steps to change the Windows machine administrator password. Once done, the VM will be running. 

Now that you have learned how to create virtual machines from the catalog, next you’ll learn how to import existing virtual machines into your OpenShift environment. 

Previous resource
Installing OpenShift Operator
Next resource
Migrating virtual machines

This learning path is for operations teams or system administrators

Developers may want to check out Developing applications on OpenShift on developers.redhat.com.

Get started on developers.redhat.com

Hybrid Cloud Logo LinkedIn YouTube Facebook Twitter

Products

Tools

Try, buy, sell

Communicate

About Red Hat

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Subscribe to our newsletter, Red Hat Shares

Sign up now