snapshot_create
Snapshot a VM to record its current state before changes. The created snapshot is tracked for replayable rollback through deletion.
Instructions
[WRITE][risk=medium] Snapshot a VM. Inverse: delete THAT snapshot.
The created snapshot's REAL id is captured from the XO response, so the
recorded undo (snapshot_delete) is replayable.
Args:
vm_id: VM uuid to snapshot (see vm_list).
name: Snapshot name (e.g. 'pre-change-2026-07-17').
dry_run: If True, preview without snapshotting (no undo recorded).
target: Xen Orchestra target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| vm_id | Yes | ||
| target | No | ||
| dry_run | No |