Skip to content
Skills Library
DevOps & cloud · Automation

vm-snapshot-workflow

/vm-snapshot-workflow

Manage VM snapshot lifecycle - create, revert, commit, list, cleanup. Suspend/resume for consistent snapshots. Use when creating VM checkpoints or reverting to previous state.

Repository
skills ↗
Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Manage VM snapshot lifecycle - create, revert, commit, list, cleanup. Suspend/resume for consistent snapshots. Use when creating VM checkpoints or reverting to previous state.

Original author description

Manage VM snapshot lifecycle - create, revert, commit, list, cleanup. Suspend/resume for consistent snapshots. Use when creating VM checkpoints or reverting to previous state.

How it works

  1. Inputs
  2. Persona
  3. Workflow
  4. Related Skills
Original SKILL.md headings · 64 lines, 253 words
SKILL.md preview
---
name: vm-snapshot-workflow
description: Manage VM snapshot lifecycle - create, revert, commit, list, cleanup. Suspend/resume for consistent snapshots. Use when creating VM checkpoints or reverting to previous state.
---

# VM Snapshot Workflow

Manage VM snapshot lifecycle including creation, revert, and cleanup.

## Inputs

| Input           | Type   | Default  | Purpose                               |
| --------------- | ------ | -------- | ------------------------------------- |
| `vm_name`       | string | required | Name of the virtual machine           |
| `action`        | string | required | create, revert, commit, list, cleanup |
| `snapshot_name` | string | ""       | Name of the snapshot                  |

## Persona

Load **infra** persona (libvirt tools).

## Workflow

### 1. Bootstrap

- `persona_load("infra")`
- `check_known_issues("virsh_snapshot", "")` — known snapshot issues

### 2. VM Status

- `virsh_list()` — list all VMs
- `virsh_domstate(domain=vm_name)` — VM state
- `virsh_dominfo(domain=vm_name)` — VM details
- `virsh_vcpuinfo(domain=vm_name)` — vCPU info
- `virsh_memtune(domain=vm_name)` — memory tuning

### 3. Snapshot Operations

- `virsh_snapshot_list(domain=vm_name)` — list snapshots
- If action=create:
  - `virsh_suspend(domain=vm_name)` — for consistent snapshot
  - `virsh_snapshot_create(domain=vm_name, name=snapshot_name)`
  - `virsh_resume(domain=vm_name)`
- If action=revert and snapshot_name: `virsh_snapshot_revert(domain=vm_name, snapshot=snapshot_name)`
- If action=cleanup and snapshot_name: `virsh_snapshot_delete(domain=vm_name, snapshot=snapshot_name)`

### 4. Storage (action=commit or cleanup)

- `virsh_pool_info(pool="default")` — pool info
- `virsh_vol_list(pool="default")` — volumes
- If action=commit: `virsh_vol_resize(pool="default", volume="{vm_name}.qcow2", ...)`
- If action=cleanup: `virsh_vol_delete(pool="default", volume="{vm_name}-old.qcow2")`

### 5. Error Handling

- On "no space" or "disk full": `learn_tool_fix("virsh_snapshot", "no space", "Storage pool full", "Free space or virsh pool-resize")`
- On "snapshot not found": list snapshots first to get valid names
- On "domain not running": start VM first with `virsh_start`

### 6. Session Log

- `memory_session_log("VM snapshot: {action}", "vm={vm_name}, snapshot={snapshot_name}")`

## Related Skills

- `vm_lab_setup` — VM lifecycle
- `ansible_configure_vm` — configure after revert

Versions

The database has no other skills named vm-snapshot-workflow.

Database snapshot: 13.11.2026 · package version c1108512ffb5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 4 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95navaris-snapshots-images-async
    Use when the user wants to snapshot a sandbox, restore from a snapshot, promote a snapshot to a reusable base image, register an external image, or manage long-running async operations (wait-state, operation wait/get/cancel). Covers stopped vs live snapshots and the async operation lifecycle.
  • 100dx-org-snapshot-manage
    ALWAYS USE THIS SKILL to create, check the status of, list, or delete scratch org snapshots. A snapshot is a point-in-time copy of a scratch org's metadata AND data, referenced by name in the `snapshot` field of a scratch org definition file. Use when the user asks to…
  • 100dx-org-manage
    Use to EXECUTE Salesforce org operations immediately via the sf CLI (this skill runs them, it does NOT generate scripts): create scratch orgs (from edition, definition file, snapshot, or org shape), list/display/resume/delete scratch orgs, open orgs in browser. Trigger: 'create…
  • 90vm-lab-setup
    Create and manage local virtual machines for testing. Handles create, clone, snapshot, revert, destroy, status. Uses virsh, virt-install, ssh, ansible. Use when setting up VMs, cloning VMs, or checking VM status.
  • 100alibabacloud-ecs-disk-ops
    Alibaba Cloud ECS disk and snapshot operations. Use for managing cloud disks (attach, detach, expand, create data disk), snapshots (create, restore, delete, policy), and disk category management. Covers system disk and data disk lifecycle. Triggers: "ecs disk", "cloud disk",…
  • 100tigris-snapshots-recovery
    Use when recovering deleted or changed files from Tigris, restoring objects to a previous state, or setting up snapshot-enabled buckets for point-in-time recovery

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.