move_vm_disk
Move a virtual machine disk to a different storage location or attach it to another VM, with optional deletion of the original disk.
Instructions
Move a VM disk to different storage or attach to another VM.
Args: node: The node name. vmid: The VM ID. disk: Source disk name (e.g. 'scsi0'). storage: Target storage ID (for moving to different storage). target_vmid: Target VM ID (for moving disk to another VM). target_disk: Target disk slot on the target VM. delete_original: Delete the original disk after moving.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| vmid | Yes | ||
| disk | Yes | ||
| storage | No | ||
| target_vmid | No | ||
| target_disk | No | ||
| delete_original | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |