Use this when moving running VMware VMs between hosts with Move-VM.
vMotion
vMotion automation moves running VMs between hosts with Move-VM, for maintenance or balancing, checking compatibility and network settings first.
1. vMotion automation: host evacuation, balancing, storage moves.
2. Maintenance mode with DRS.
3. Throttle.
4. Verify after.
5. Log.
maintenance → evacuate (vMotion) → patch → exit maintenance
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as duplicate names, stale inventory, task still running after client timeout, vCenter/host permission gaps, storage/network dependency failure and assuming task success shows guest service health, choosing the cases most relevant to source/destination host compatibility, VM/host/datastore/network identity, migration task progress and post-migration guest/network continuity.
Step 2 Common mistakes Narrow the fault
- vMotion network not configured on both hosts.
- CPU compatibility (EVC) mismatch.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Move-VM performs vMotion.
- Check compatibility first.
- Network settings must match.
Move-VM -VM <vm> -Destination <host>— vMotionMove-VM -VM <vm> -Datastore <ds>— Storage vMotionSet-VMHost -VMHost <h> -State Maintenance -Evacuate— maintenance mode
ReferenceWhy it matters1 section · depth on demand
What it is
vMotion automation moves running VMs between hosts or datastores.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
vMotion moves a running VM between ESXi hosts without downtime; Storage vMotion moves its disks between datastores. Automation uses them for maintenance (evacuating hosts before patching), load balancing and migrations.
Move-VM -VM app01 -Destination (Get-VMHost esx04)
Set-VMHost -VMHost esx03 -State Maintenance -Evacuate # DRS moves VMs off
Requirements: shared storage (or combined compute + storage vMotion), a vMotion VMkernel network, compatible CPUs (EVC mode) and the same port groups on source and destination. vMotion traffic is unencrypted by default unless encrypted vMotion is enabled — keep it on an isolated network.
Example
Move-VM web01 -Destination (Get-VMHost esx02) -Datastore ds02
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in VMware Automation > vMotion. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.broadcom.com/powercli · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For source/destination host compatibility, VM/host/datastore/network identity, migration task progress and post-migration guest/network continuity, prefer typed fields and stable IDs over human presentation text.