vm-snapshot-create

Create VirtualMachineSnapshot resources in OpenShift Virtualization after validating storage and VM prerequisites.

48|31|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/RHEcosystemAppEng/agentic-plugins --skill vm-snapshot-create
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vm-snapshot-create
Source: https://github.com/RHEcosystemAppEng/agentic-plugins/tree/main/rh-virt/skills/vm-snapshot-create
Command: npx skills add https://github.com/RHEcosystemAppEng/agentic-plugins --skill vm-snapshot-create

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires resources_create_or_update, resources_get, resources_list, vm_lifecycle, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of virtual machine snapshots in OpenShift Virtualization, providing backup and recovery capabilities with comprehensive validation.

Core Features & Use Cases

  • Snapshot Creation: Create snapshots of a VM for backup and recovery purposes.
  • Validation: Validates storage class snapshot support, CSI driver capabilities, and guest agent status before snapshot creation.
  • Use Case: Before performing a VM upgrade, use this Skill to create a snapshot of the VM to ensure recoverability in case of issues.

Quick Start

Use the vm-snapshot-create skill to create a snapshot of VM 'database-01' in the 'production' namespace.

Frequently Asked Questions about vm-snapshot-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a VM snapshot in OpenShift Virtualization?

To create a VM snapshot in OpenShift Virtualization, you need to generate a VirtualMachineSnapshot resource. This process involves validating storage class capabilities, CSI driver support, and guest agent status before successfully capturing the backup.

What prerequisites are needed to back up a KubeVirt virtual machine?

Backing up a KubeVirt virtual machine requires cluster access with appropriate RBAC permissions and a configured KUBECONFIG. The storage backend must also support snapshots, and the target VM must exist with a verified guest agent status.

Why does my OpenShift VM snapshot creation fail validation?

OpenShift VM snapshot validation fails when the storage class lacks snapshot support or the CSI driver is incompatible. The process also checks guest agent status and VM existence, halting creation if these prerequisites are not met.

Can I validate storage backend capabilities before taking a VM snapshot?

Yes, you can validate storage backend capabilities before taking a VM snapshot. The creation process explicitly checks storage class snapshot support and CSI driver capabilities to ensure the OpenShift environment can handle the backup.

When should I create a snapshot of my OpenShift virtual machine?

You should create a snapshot of your OpenShift virtual machine before performing risky operations like system upgrades. This ensures you have a valid recovery point to restore the VM if the upgrade causes issues.

Does vm-snapshot-create check the guest agent status before backup?

Yes, vm-snapshot-create checks the guest agent status before initiating the backup. Verifying the guest agent is part of the comprehensive validation process ensuring the OpenShift VM is in a safe state for snapshot creation.