LogoLogo
4.0.X
4.0.X
  • About Trilio for Kubernetes
    • Welcome to Trilio For Kubernetes
    • Version 4.0.X Release Highlights
    • Compatibility Matrix
    • Marketplace Support
    • Features
    • Use Cases
  • Getting Started
    • Getting Started with Trilio on Red Hat OpenShift (OCP)
    • Getting Started with Trilio for Upstream Kubernetes (K8S)
    • Getting Started with Trilio for AWS Elastic Kubernetes Service (EKS)
    • Getting Started with Trilio on Google Kubernetes Engine (GKE)
    • Getting Started with Trilio on VMware Tanzu Kubernetes Grid (TKG)
    • More Trilio Supported Kubernetes Distributions
      • General Installation Prerequisites
      • Rancher Deployments
      • Azure Cloud AKS
      • Digital Ocean Cloud
      • Mirantis Kubernetes Engine
      • IBM Cloud
    • Licensing
    • Using Trilio
      • Overview
      • Post-Install Configuration
      • Management Console
        • About the UI
        • Navigating the UI
          • UI Login
          • Cluster Management (Home)
          • Backup & Recovery
            • Namespaces
              • Namespaces - Actions
              • Namespaces - Bulk Actions
            • Applications
              • Applications - Actions
              • Applications - Bulk Actions
            • Backup Plans
              • Create Backup Plans
              • Backup Plans - Actions
            • Targets
              • Create New Target
              • Targets - Actions
          • Trilio Monitoring
          • Resource Management
          • Guided Tours
        • UI How-to Guides
          • Multi-Cluster Management
          • Creating Backups
            • Cleanup Failed Backups
          • Restoring Backups
            • Cross-Cluster Restores
          • Monitoring Details
          • Disaster Recovery Plan
          • Continuous Restore
      • Command-Line Interface
        • YAML Examples
        • Trilio Helm Operator Values
    • Upgrade
    • Air-Gapped Installations
    • Uninstall
  • Reference Guides
    • T4K Pod/Job Capabilities
      • Resource Quotas
    • Trilio Operator API Specifications
    • Custom Resource Definition - Application
  • Advanced Configuration
    • AWS S3 Target Permissions
    • Management Console
      • KubeConfig Authenticaton
      • Authentication Methods Via Dex
      • UI Authentication
      • RBAC Authentication
      • Configuring the UI
    • Resource Request Requirements
      • Fine Tuning Resource Requests and Limits
    • Observability
      • Observability of Trilio with Prometheus and Grafana
      • Exported Prometheus Metrics
      • T4K Integration with Observability Stack
    • Modifying Default T4K Configuration
  • T4K Concepts
    • Supported Application Types
    • Support for Helm Releases
    • Support for OpenShift Operators
    • T4K Components
    • Backup and Restore Details
      • Immutable Backups
      • Application Centric Backups
    • Backup Retention Process
      • Retention Use Case
    • Continuous Restore
      • Architecture and Concepts
  • Performance
    • S3 as Backup Target
      • T4K S3 Fuse Plugin performance
    • Measuring Backup Performance
  • Ecosystem
    • T4K Integration with Slack using BotKube
    • Monitoring T4K Logs using ELK Stack
    • Rancher Navigation Links for Trilio Management Console
    • Optimize T4K Backups with StormForge
    • T4K GitHub Runner
    • AWS RDS snapshots using T4K hooks
    • Deploying Trilio For Kubernetes with Openshift ACM Policies
  • Krew Plugins
    • T4K QuickStart Plugin
    • Trilio for Kubernetes Preflight Checks Plugin
    • T4K Log Collector Plugin
    • T4K Cleanup Plugin
    • OCP ETCD Plugin
    • RKE ETCD Plugin
  • Support
    • Troubleshooting Guide
    • Known Issues and Workarounds
    • Contacting Support
  • Appendix
    • Ignored Resources
    • OpenSource Software Disclosure
    • CSI Drivers
      • Installing VolumeSnapshot CRDs
      • Install AWS EBS CSI Driver
    • T4K Product Quickview
    • OpenShift OperatorHub Custom CatalogSource
      • Custom CatalogSource in a restricted environment
    • Configure OVH Object Storage as a Target
    • Connect T4K UI hosted with HTTPS to another cluster hosted with HTTP or vice versa
    • Fetch DigitalOcean Kubernetes Cluster kubeconfig for T4K UI Authentication
    • Force Update T4K Operator in Rancher Marketplace
    • Backup and Restore Virtual Machines running on OpenShift
    • T4K For Volumes with Generic Storage
Powered by GitBook
On this page
  • Install OpenShift Virtualization Operator
  • Install and Configure the OpenShift Data Foundation Operator for underlying Storage for VM Deployment
  • Deploy a Virtual Machine on OpenShift
  • Backup a Virtual Machine Using T4K
  • Understanding Virtual Machine Backup Size Discrepancies
  1. Appendix

Backup and Restore Virtual Machines running on OpenShift

A guide for performing the backup and restore of the Virtual Machine (VM) running on the OpenShift environment.

PreviousForce Update T4K Operator in Rancher MarketplaceNextT4K For Volumes with Generic Storage

Last updated 9 months ago

Red Hat OpenShift Container Platform (OCP) is the market-leading Kubernetes platform. OpenShift efficiently manages your Kubernetes-based applications deployed on it. With the help of the OpenShift Virtualization operator, users can also run their VMs into a pod and these pods are also managed by OpenShift similar to other pods running Kubernetes-based applications.

Minimum Supported versions to run a VM and perform backup and restore of VM:

  1. Red Hat Openshift Container Platform version 4.11

  2. Red Hat OpenShift Virtualization version 4.11

Install OpenShift Virtualization Operator

  1. Log in to the OpenShift Management Console and go to OperatorHub.

  2. Search the Operator “OpenShift Virtualization”\

3. Click on “Install” and proceed with the installation.\

4. Select the appropriate options and proceed with the installation\

5. Once the installation is complete, the user needs to create HyperConverged using the Local Storage Class Name. HyperConverged creates and maintains the OpenShift Virtualization Deployments.

6. Once the installation is complete, you can check a new option “Virtualization” visible under the Workload section.

Follow the below steps to install and configure the underlying storage required to run virtual machines.

Install and Configure the OpenShift Data Foundation Operator for underlying Storage for VM Deployment

Once the OpenShift Virtualization Operator is installed, it also needs underlying storage for the VM deployments. You will install OpenShift Data Foundation (ODF) (Formerly known as OpenShift Container Storage (OCS)) Operator which will configure the underlying storage for the VMs to use.

Follow the steps below to install and configure the ODF Operator:

  1. Login to OpenShift Management Console and go to the OperatorHub

  2. Search the Operator “OpenShift Data Foundation” operator

3. Select the Operator and provide appropriate input values. Click on Install.

4. After the installation is complete, you have to create a Storage System which would in turn create a Storage Cluster. You have to provide an existing Storage class to provision the new storage for Storage Cluster creation to proceed.

5. Once the Storage System creation is complete, in the background, it will install different storage components such as BackingStore, BucketClass, CephBlockPool, etc.

6. Once all the components are in the Ready state, you can check that the storage class is also created in the backend.

7. Now, you are ready to deploy a virtual machine on OpenShift.

Deploy a Virtual Machine on OpenShift

Since you have installed the OpenShift Virtualization Operator and you might already be aware of how to deploy a VM or you have already deployed a VM.

Backup a Virtual Machine Using T4K

Now, we can proceed to perform a VM backup. Trilio for Kubernetes treats Virtual Machine as any other objects and application running on the OpenShift Container Platform.

Understanding Virtual Machine Backup Size Discrepancies

Virtual Machine Backups Occupying More Space Than Actual Disk Usage:

This issue occurs in the following scenario:

  • A user creates a Virtual Machine with a disk that has 10GB of used data.

  • The initial backup will be approximately 10GB.

  • The user then deletes 10GB of data.

  • The backup still shows to be around 10GB in size.

Reason:

Deleting files in the Virtual Machine does not mean the file system zeros out all data blocks. Instead, the file system simply adds the data blocks to the free list, leaving the content unchanged. When Trilio performs a backup, it backs up the entire disk image of the Virtual Machine, ignoring only the zero blocks and including every block that contains data. Consequently, even after deleting files, the blocks still hold the data. Thus, Trilio backs up these blocks, even though they are marked as deleted from the file system perspective.

Note: You can learn more about OpenShift Virtualization in.

If not, it's very easy and similar to the Virtual Machine deployment on any other virtualization technology. You can follow from the OpenShift team to deploy a VM.

After setting up all the to deploy Trilio for Kubernetes, you might have already launched . Follow the section to login into the console using OpenShift credentials.

Follow to perform VM backup and restore.

this video
this video
these instructions
prerequisites
T4K Management Console
UI authentication
Search OpenShift Virtualization Operator
OpenShift Virtualization Operator
Install OpenShift Virtualization Operator
Search OpenShift Data Foundation Operator
ODF Operator Description
Installed ODF Operator
Storage system created by ODF Operator
Storage classes created by the storage cluster