vm-rebalance

Automate VM rebalancing across OpenShift cluster nodes using KubeVirt migrations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openshift-virtualization, resources_list, resources_get, resources_create_or_update, vm_lifecycle, nodes_top, pods_top, nodes_stats_summary, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of uneven resource allocation in an OpenShift cluster, optimizing CPU and memory utilization, and facilitating node maintenance.

Core Features & Use Cases

  • Automated Rebalancing: AI-driven rebalancing for CPU and memory optimization, with user-specified goals.
  • Manual Rebalancing: User-driven VM migration with specified target nodes and migration types.
  • Live and Cold Migrations: Execute migrations with minimal downtime using live or cold migration strategies.
  • Validation and Error Handling: Ensures all VMs are migratable and verifies storage compatibility before executing migrations.
  • Use Case: When a user needs to balance CPU and memory across nodes in an OpenShift cluster, or when a specific VM needs to be moved to another node for maintenance.

Quick Start

To rebalance VMs based on CPU load, run: /vm-rebalance rebalance CPU

Frequently Asked Questions about vm-rebalance

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

FAQPage Schema
How do I balance VM CPU and memory usage across OpenShift nodes?

You can balance VM CPU and memory usage across OpenShift nodes by running automated or manual rebalancing commands. This optimizes cluster resource utilization and facilitates node maintenance by migrating VMs off overloaded nodes.

Can I live migrate a VM in OpenShift Virtualization for node maintenance?

Yes, you can live migrate a VM in OpenShift Virtualization for node maintenance with minimal downtime. The rebalancing process uses KubeVirt's VirtualMachineInstanceMigration API and node affinity to execute migrations smoothly.

Does VM rebalancing validate storage compatibility before migrating OpenShift VMs?

Yes, VM rebalancing validates storage compatibility and ensures all VMs are migratable before executing migrations. This validation and error handling prevents failures during live or cold migration operations.

What is the difference between live and cold migration for OpenShift VMs?

Live migration moves running VMs with minimal downtime, while cold migration stops the VM before moving it to another node. The rebalancing process supports both strategies via KubeVirt's VirtualMachineInstanceMigration API based on your maintenance needs.

Do I need the OpenShift Virtualization operator to rebalance cluster nodes?

Yes, you need the OpenShift Virtualization operator installed to rebalance cluster nodes. The rebalancing functionality depends on KubeVirt APIs and various MCP tools to automate VM migrations across the cluster.

How do I trigger an automated VM rebalance based on CPU load in OpenShift?

You can trigger an automated VM rebalance based on CPU load by running the rebalance command with the CPU parameter. This AI-driven process analyzes node statistics and migrates VMs to optimize overall cluster performance.