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

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

Prerequisites

Verify that you are connected to a vCenter Server system.

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.

Procedure

  • Get the VM1 virtual machine and move it to a host named ESXHost2.
    Get-VM VM1 | Move-VM -Destination (Get-VMHost ESXHost2)