VMware PowerCLI

The Best User Interface for your VMware Datacenter!

Enhanced Move-VM cmdlet to support compute-only Cross vCenter vMotion

Today, there is a limitation with the Move-VM cmdlet for a compute-only Cross vCenter vMotion where VMDKs stored across different datastores will actually be relocated to a single datastore after performing the migration. It is possible to override this behavior via the vSphere API which William's xMove-VM.ps1 script (https://www.virtuallyghetto.com/2016/05/automating-cross-vcenter-vmotion-xvc-vmotion-between-the-same-different-sso-domain.html) supports by simply enabling setting the $xvcType property to 1. The script makes use of the granular VirtualMachineRelocateSpecDiskLocator which allows you to specify the location for individual disks which you can have a look here for the specific implementation supporting this use case.

It would be very useful to also have additional flexibility for Cross vCenter vMotions!

  • William Lam
  • Oct 26 2017
  • Attach files