You can migrate a virtual machine between datastores using the VMware Storage vMotion feature of vCenter Server.
Note: You can use Storage vMotion to move a powered-on virtual machine from one datastore to another.
Prerequisites
Verify that you are connected to a vCenter Server system.
The host on which the virtual machine is running must have access both to the datastore where the virtual machine is located and to the destination datastore.
Procedure
- ♦Get the VM1 virtual machine and move it to a datastore named DS2:
Get-VM VM1 | Move-VM -Datastore DS2