There are many reasons you might be running a virtual machine (VM) at your organization, and you're probably also using or planning to use containers at the same time. Whether you're looking to migrate away from your current virtualization platform or you're just looking for a unified platform for both VMs and containers, Red Hat OpenShift is a centralized control center for all the services you provide to your users. Here's how to get started with OpenShift Virtualization, a feature of Red Hat OpenShift.

Install OpenShift and virtualization operators

To use OpenShift Virtualization, you must have access to a bare metal OpenShift cluster. There are several ways to install OpenShift:

  • Interactive: Deploy a cluster with the web-based Assisted Installer. This provides smart and safe defaults, and performs several pre-flight validations before installing a cluster.
  • Local agent: In an air-gapped or network-restricted environment, you can deploy a cluster locally with the agent-based installer.
  • Automated: Deploy a cluster on infrastructure provisioned by the installer using your host's baseboard management controller (BMC).
  • Full control: Deploy a cluster on your own infrastructure.

Once you've got access to an OpenShift cluster, you must ensure that the OpenShift Virtualization operators are enabled. To verify that the required operators are enabled, log in to your OpenShift account and click the perspective drop-down menu in the top left of the OpenShift web console. If Virtualization appears in the menu, then OpenShift Virtualization is ready to use.

If Virtualization is not listed in the Perspective drop-down menu, then select Administrator. In the Administrator perspective, click Ecosystem in the left navigation panel, and then click Software Catalog. Contact your cluster Administrator if you don't have an Software Catalog option available,

On the Software Catalog page, search for "virt" and install the OpenShift Virtualization operators.

Create a new VM

One of the easiest ways to start with OpenShift Virtualization is to build on the features already included.

To create a VM, select the Virtualization perspective from the drop-down menu in the top left of the OpenShift web console. For a quick start, click the Create VirtualMachine button in the Welcome to OpenShift Virtualization pop-up window.

OpenShift Virtualization welcome screen

If you've already closed that pop-up window, you can alternately click Catalog in the left column of the OpenShift web console.

1. Select a boot image

Regardless of how you got there, the catalog displays several pre-defined virtual machine images, including supported versions of Red Hat Enterprise Linux (RHEL), the latest Fedora Linux, and CentOS Stream. If you need a Windows host, a link to the latest Windows installer images is also provided under the list of virtual machines.

Select the image you want to boot, then scroll down for the next step.

2. Select an instance type

The next step after you've chosen your base image is to define the resources you want to assign to the VM being created. There are pre-defined categories, including the General Purpose U Series with shared physical CPU cores and a modest allowance for RAM.

OpenShift Virtualization instancetype selection screen

Select an InstanceType and then scroll down for the final step. Some InstanceType choices won't work without special features being enabled and configured on the cluster. If you're unsure what to choose, try General Purpose to begin with.

3. Set virtual machine details

Most attributes of the VM you're about to create are defined by the boot image and instance type you selected. However, in this final step of creating a VM you can customize your image as you see fit. You can give your VM a custom name (by default, a unique name is generated for you), the disk size, storage class, and a public SSH key so you can log in remotely without a password. Should you need to customize your VM further, click the Customize VirtualMachine button to modify configuration, including the network connection (default is the private cluster network). For convenience, you can also set the virtual machine to start immediately after creation.

Click the Create VirtualMachine button at the bottom of the window to create the VM.

You're done! You've created a VM in OpenShift.

Import your own base image

If the base image you want to use isn't already included in OpenShift, then you can import your own image using the Migration Toolkit for Virtualization (MTV). Using MTV, you can define a migration plan for an existing virtual machine image, providing an image repository or a filesystem location. The MTV web console guides you through each step of the process, so it's just a matter of knowing the locations of your source and destination data.

Migrate a VM to OpenShift Virtualization

You can use the migration toolkit for virtualization (MTV) to bring a VM from Red Hat Virtualization, VMware, Red Hat OpenStack Platform (now referred to as Red Hat OpenStack Services on OpenShift), Open Virtual Appliances (OVA), and more. Migration toolkit for virtualization is an operator, so you (or your cluster administrator) can install it from the Software Catalog of OpenShift console.

Once the migration toolkit for virtualization operator has been installed, click Migration in the left column of the Administrator perspective, and then Providers for virtualization. In the Providers window, define the current location of your virtual machines.

Once your providers have been configured, click Plans for virtualization in the left column. Click the Create Plan button at the bottom of the Plans window and follow the prompts to select the source provider and then to define the attributes of the resulting virtual machine (including storage locations and virtual machine specifications).

Once you've created your migration plan, click the Start Migration button in the top right of the Plan details window.

Time to integrate

With Red Hat OpenShift, you don't need separate infrastructure just to manage your virtual machines. Your VMs and containers are more powerful when they can be integrated into the same workflows, managed by the same policies, and automated by the same platform. Integrate your VMs into your cloud platform and get the most out of your most valuable resources. To learn more about Red Hat OpenShift Virtualization, check out our Learning Hub to learn more through featured resources and tools based on your virtualization tasks.

제품 체험판

Red Hat OpenShift Virtualization Engine | 제품 체험판

가상 머신의 배포, 관리, 확장만을 전담하여 수행하는 간소화된 솔루션입니다.

저자 소개

Seth Kenlon is a Linux geek, open source enthusiast, free culture advocate, and tabletop gamer. Between gigs in the film industry and the tech industry (not necessarily exclusive of one another), he likes to design games and hack on code (also not necessarily exclusive of one another).

UI_Icon-Red_Hat-Close-A-Black-RGB

채널별 검색

automation icon

오토메이션

기술, 팀, 인프라를 위한 IT 자동화 최신 동향

AI icon

인공지능

고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트

open hybrid cloud icon

오픈 하이브리드 클라우드

하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요

security icon

보안

환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보

edge icon

엣지 컴퓨팅

엣지에서의 운영을 단순화하는 플랫폼 업데이트

Infrastructure icon

인프라

세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보

application development icon

애플리케이션

복잡한 애플리케이션에 대한 솔루션 더 보기

Virtualization icon

가상화

온프레미스와 클라우드 환경에서 워크로드를 유연하게 운영하기 위한 엔터프라이즈 가상화의 미래