VM Lifecycle Management
Overview
This module covers virtual machine lifecycle management in OpenShift Virtualization, including image imports, golden images, cloning, snapshots, and boot configuration. These workflows help you create reusable VM images, rapidly deploy copies, and manage backup and recovery.
What You’ll Learn
-
How to import existing qcow2 disk images into OpenShift Virtualization
-
How to create and manage reusable golden images for consistent deployments
-
How to clone VMs within and across namespaces
-
How to create, manage, and restore VM snapshots
-
How to configure boot order, boot sources, and UEFI/Secure Boot modes
Prerequisites
Before working with VM lifecycle management, ensure you have:
-
OpenShift 4.18+ with OpenShift Virtualization operator installed
-
A configured StorageClass with ReadWriteMany access mode support
-
CLI tools installed:
oc,virtctl,kubectl -
Basic understanding of PersistentVolumeClaims and DataVolumes
Topics
- Creating a Boot Volume from a Local qcow2 Image
-
Import existing qcow2 disk images from local KVM platforms to create boot volumes in OpenShift Virtualization for easy VM migration.
- Creating Custom OS Images and Golden Images
-
Create reusable golden images with pre-configured software and settings for consistent VM deployments across environments.
- Golden Images Troubleshooting Guide
-
Troubleshooting guide for creating and using custom golden images, including verification commands and common issue resolutions.
- Cloning Virtual Machines for Rapid Deployment
-
Clone existing VMs for rapid deployment of identical or customized instances, including cloning across namespaces and post-clone customization with cloud-init.
- Creating and Managing VM Snapshots
-
Create, manage, and restore VM snapshots for quick rollback, safe testing of changes, and pre-maintenance backup points.
- Configuring VM Boot Order and Boot Sources
-
Configure VM boot order, boot sources (PVC, ContainerDisk, HTTP), and boot options including UEFI vs BIOS modes and Secure Boot for different deployment scenarios.
Related Topics
-
VM Configuration - General VM setup and access
-
Storage Configuration - Persistent storage for VMs
-
Performance Tuning - Resource limits, CPU pinning, NUMA