You can migrate a virtual machine between vSphere hosts by using VMware vMotion.

Note

You can use VMware vMotion to move a powered-on virtual machine from one host to another.

Connect to a vSphere server.

The virtual machine must be stored on a datastore shared by the current and the destination host, and the vMotion interfaces on the two hosts must be configured.

Get the VM1 virtual machine and move it to a host named ESXHost2.

Get-VM VM1 | Move-VM -Destination ( Get-VMHost ESXHost2 )