You can monitor the progress of a replication-based migration from the user interface, or from the command line.

View the Task Console, as described in Monitor Service Appliance Deployment, and look for the “Migrate VM” task. When the status is “Completed,” the VM has been migrated and powered on in vCloud® Air™.

This procedure uses an unrelated VM in the same vCenter to track the progress of a migrating VM.

1

Identify the VM to migrate, and choose an observer VM that can ping the migrating VM.

2

From the user interface, start migrating the VM, and monitor it from the task console.

3

Using SSH, log in to the ESXi host running the observer VM.

4

Run the following command to obtain the virtual machine ID (the vmid).

# vim-cmd vmsvc/getallvms | grep -i vmname 
5

Run the following commands to monitor the replication state, where the vmid is the value obtained in the previous step.

# vim-cmd hbrsvc/vmreplica.getState vmid 
# vim-cmd hbrsvc/vmreplica.queryReplicationState vmid
6

ICMP Ping: Monitor the continuous ping you started earlier.

You see an interruption in the continuous ping during the switchover. However, the test ping quickly resumes after the “Migrate VM” task completes (as reflected in the task console).