Move VM to different Host using vMotion.
Prerequisites:
1.Verify that you are connected to a vCenter Server system.
2.The virtual machine must be stored on a datastore shared by the current and the destination host, and the
3.vMotion interfaces on the two hosts must be configured.
Procedure:
(Get the VM1 virtual machine and move it to a host named ESXHost2 )
Get-VM VM1 | Move-VM -Destination (Get-VMHost ESXHost2)
Move VM to different datastore using SV Motion
Prerequisites :
1.Verify that you are connected to a vCenter Server system.
2.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
Thanks
-if it helps , consider marking it as helpful !!