vm_migrate
Live-migrate a VM to another host with automatic undo recording for safe rollback. Includes dry-run preview.
Instructions
[WRITE][risk=medium] Live-migrate a VM to another host. Inverse: migrate back.
The REAL source host is captured BEFORE the move so the recorded undo (migrate back to it) is replayable.
Args: vm_id: VM uuid (see vm_list). host_id: Destination host uuid (see host_list). dry_run: If True, preview without migrating (no undo recorded). target: Xen Orchestra target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes | ||
| target | No | ||
| dry_run | No | ||
| host_id | Yes |