vsphere_migrate_vm
Move a virtual machine to a different host, datastore, or resource pool with vMotion or storage vMotion. Specify at least one destination to relocate the VM.
Instructions
Move a virtual machine to another host, datastore or resource pool.
Supplying host performs a vMotion, datastore a storage vMotion,
and both at once a combined migration. At least one target is required.
Requires permission mode write or higher.
Args: vm: VM name, managed object id, UUID or inventory path. host: Destination ESXi host. datastore: Destination datastore. resource_pool: Destination resource pool. priority: vMotion scheduling priority. wait: Wait for the migration task to finish. timeout_seconds: Override the default task timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| host | No | ||
| wait | No | ||
| priority | No | default | |
| datastore | No | ||
| resource_pool | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||