Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

vMotion

Direct answer

vMotion automation moves running VMs between hosts with Move-VM, for maintenance or balancing, checking compatibility and network settings first.

When to use this

Use this when moving running VMware VMs between hosts with Move-VM.

First 30 seconds

1. vMotion automation: host evacuation, balancing, storage moves.

2. Maintenance mode with DRS.

3. Throttle.

4. Verify after.

5. Log.

Operational verification

maintenance → evacuate (vMotion) → patch → exit maintenance

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
VMware vSphere / PowerCLI automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformVMware vSphere / PowerCLI automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when moving running VMware VMs between hosts with Move-VM.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Move-VM performs vMotion.
  • Check compatibility first.
  • Network settings must match.
Key checks
  • Move-VM -VM <vm> -Destination <host> — vMotion
  • Move-VM -VM <vm> -Datastore <ds> — Storage vMotion
  • Set-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.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docVMware vSphere / PowerCLI automation current

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%
Depth when you need it

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.

Confirmation

Confirm action

Continue?