vm-snapshot-restore

Restore virtual machines from snapshots in OpenShift Virtualization with safety checks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill restores virtual machines from snapshots, ensuring strict safety checks to prevent data loss and maintain system integrity.

Core Features & Use Cases

  • Snapshot Restoration: Restore virtual machines from snapshots.
  • Safety Confirmations: Ensures VM is stopped and snapshot name is correctly typed before restoration.
  • Use Case: Ideal for rolling back a VM to a previous state without data loss, such as before a system update or after a failure.

Quick Start

Restore VM 'api-server' from snapshot 'snapshot-20240115' in namespace 'default'.

Frequently Asked Questions about vm-snapshot-restore

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

FAQPage Schema
How do I restore a virtual machine from a snapshot in OpenShift Virtualization?

To restore a virtual machine from a snapshot in OpenShift Virtualization, you create a VirtualMachineRestore resource using Kubernetes tools. The process requires strict safety confirmations, including verifying the VM is stopped and confirming the snapshot name to prevent data loss.

Why does VM snapshot restoration require the virtual machine to be stopped?

VM snapshot restoration requires the virtual machine to be stopped to ensure system integrity and prevent data loss. Stopping the VM guarantees the restoration process safely reverts the system to the previous state captured in the snapshot without active write conflicts.

Can I use kubectl to restore an OpenShift VM snapshot without interactive confirmation?

You can use Kubernetes resource tools to create the VirtualMachineRestore resource, but the Skill enforces strict safety confirmations before restoration. It requires confirming the snapshot name and ensuring the VM is stopped to prevent accidental data loss during the rollback process.

When should I restore an OpenShift VM from a snapshot instead of redeploying it?

Restoring an OpenShift VM from a snapshot is ideal for rolling back to a previous state without data loss, such as before a system update or after a failure. Redeploying creates a fresh instance, whereas snapshot restoration reverts the existing VM to its exact captured state.

What is a VirtualMachineRestore resource in Kubernetes virtualization?

A VirtualMachineRestore resource is a Kubernetes object utilized to restore virtual machines from snapshots in OpenShift Virtualization. It serves as the core mechanism that triggers the rollback process while enforcing necessary safety checks to maintain data integrity.