XCP-ng AIops: Governing XCP-ng Virtualization Operations via Xen Orchestra

Preface

When troubleshooting or making changes to an XCP-ng resource pool, a common practice is to open Xen Orchestra (XO) and check VMs, storage repositories (SRs), backup jobs, and pool patch status one by one, then run start/stop, migration, or snapshot commands in the console. If a conversational agent directly calls open APIs, it often lacks audit trails, budget controls, and rollback boundaries. The following section introduces the community skill “XCP-ng AIops” on SkillHub, which consolidates XO-mediated read operations, four categories of root cause analysis (RCA), and governed write operations under a unified governance framework.

What Is This

XCP-ng AIops targets XCP-ng virtualization clusters managed by Xen Orchestra. Its coordinate is @user_993b98b1/xcpng-aiops, the current version is 0.11.0, it is categorized as it-ops-security, and it originates from the community (publisher user_993b98b1). The skill page notes requires_api_key=true; you must have XO API access ready before use.

Official SkillHub page: https://www.skillhub.cn/skills/user_993b98b1/xcpng-aiops
API endpoint: https://api.skillhub.cn/user_993b98b1/xcpng-aiops

Core Capabilities

The following capabilities are drawn from the official skill description, organized by “Observe → Analyze → Change.”

Cluster & Health Overview

  • Fetch a fleet health overview in one call.
  • Query VMs (list, details, RRD metrics), hosts, and pools.
  • Query storage repositories (SRs), virtual disks (VDIs), and VM snapshots.
  • Query XO backup jobs and their run logs, as well as XO tasks.

Four RCA Analyses

  1. VM health
  2. SR usage
  3. Backup job failures
  4. Pool patches & HA posture

Governed Write Operations

Under the audit, policy, token budget, undo, and risk-tier framework, common changes are supported, for example:

  • VMs: start, stop, restart, migrate
  • Snapshots: create, delete, roll back
  • SRs: rescan

The official description refers to the above orchestration as a governance harness (audit, policy, token budget, undo, risk tiers).

Routing Hints (When to Enable / When Not to)

Suitable triggers include keywords or scenarios such as: xcp-ng vm, xen orchestra, xo backup failed, sr full, orphaned vdi, xcp-ng snapshot, migrate vm to another host, xcp-ng patches, pool HA, and contexts that are explicitly about XCP-ng / Xen Orchestra / Xen-based fleets.

Out of scope: virtualization environments not managed by XO; other hypervisors (e.g., Proxmox VE — the official recommendation is to use proxmox-aiops instead); NAS/storage appliances, standalone backup software suites, container clusters, network devices, etc. (listed as negative routing hints only).

Installation & Enablement

The SkillHub skill page requires installing this skill per the SkillHub installation docs. Below, we first check the CLI, then install to the current agent’s skills directory.

1. Check the SkillHub CLI

command -v skillhub && skillhub --version

If not installed, run the full installation per the official docs (example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install XCP-ng AIops

During installation, you must use --dir to point to the current agent’s skills directory; otherwise the skill may land in the default ./skills/ and go unrecognized. The official generic command form is as follows:

skillhub install @user_993b98b1/xcpng-aiops --dir <skills 目录>

Skills directories per environment (excerpted from the SkillHub installation docs — pick the one matching the agent you actually use):

Agent Skills directory (example)
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or project-level .agents/skills/

After installation, restart or refresh skill loading as required by your agent. Sensitive configuration such as API keys should be set according to the skill package’s instructions and the requires_api_key requirement — do not commit them to version control.

Typical Usage

The official description does not provide fixed conversation templates, but it does define reproducible task types. Once the skill is enabled in your agent, you can map natural-language intents to the following patterns (example phrasing, not verbatim official wording):

  1. Health check: “Give me a fleet health overview of the current XCP-ng pool via Xen Orchestra.”
  2. Storage alert: “An SR is nearly full — list SR/VDI usage and run an SR-usage RCA.”
  3. Backup failure: “An XO backup job failed — check the run logs and perform a backup-job-failures analysis.”
  4. Change operation: “Under the governance framework, restart a VM / migrate a VM to another host / create a snapshot and roll it back if needed.”
  5. Patches & HA: “Check the pool’s patch status and HA posture.”

Write operations should go through the skill’s built-in policy, risk-tier, and undo flows; specific tool names and parameters are defined by the installed skill.

Applicable Scenarios & Caveats

Who it’s for: ops or SRE teams that manage XCP-ng via Xen Orchestra on a daily basis and want to unify read-only inspections, RCA, and a small set of controlled changes in a conversational agent — while retaining audit and budget constraints.

Limitations & notes:

  • The target environment must be XCP-ng + Xen Orchestra; it cannot replace Proxmox, K8s, or pure networking/NAS scenarios.
  • The tag requires_api_key=true: without valid XO API credentials, calls cannot be completed.
  • Community source (community): monitor version updates and behavior changes on SkillHub (current version 0.11.0).
  • SkillHub page stats (based on scraped data): rating 100000, downloads 825; metrics such as install counts may change as the platform updates.

Conclusion

XCP-ng AIops packages XCP-ng observability via Xen Orchestra, four categories of RCA, and governed write operations into a routable agent skill. It is well suited for fleet-ops conversations under a clearly defined XO management boundary. To install or view documentation, visit the official page: https://www.skillhub.cn/skills/user_993b98b1/xcpng-aiops.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye