Pcornel
Storage · Hypervisor Storage › Hyper-V Storage

Storage Migration

Cheat sheet · https://pcornel.dk/topic.php?topic=4190

Back to the Topic

Answer

Hyper-V storage migration moves a running VM's VHDX files and configuration to another location (Move-VM -IncludeStorage or Move-VMStorage) without downtime, for example to a new volume or SMB share.

Remember

  • Move-VMStorage works without downtime.
  • Needs space at the destination.
  • Checkpoints move too.

First checks

  • Move-VMStorage -VMName <vm> -DestinationStoragePath <p> — move
  • Get-VMHost | fl MaximumStorageMigrations — concurrency
  • Get-VMHardDiskDrive <vm> | ft Path — after move

Verify in this order

running VM files → copy + mirror → switch

Where it usually breaks

First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4190

Confirmation

Confirm action

Continue?