Virtual Machine Migration

NOTES:

  • It is not recommended to enable Virtual Machine Migration when all nodes in the cluster are being shut down, except when Delay Maintenance Mode is disabled and VMware DRS is set to fully automated.

  • It is not recommended to enable Virtual Machine Migration when VxRail support is enabled.

If you enable Virtual Machine migration, use the Duration field to set the time allowed for the VMs to migrate to another healthy Host in the Cluster. VMs will not be migrated to Hosts that are powered off, in a disconnected state, in maintenance mode, or affected by a UPS critical event.

Custom Target Host Migration

By default, PowerChute will migrate VMs to any available Host in the same cluster.  To control where VMs get migrated to, enable the Select target host for Migration option in the Virtualization Settings page of the PowerChute Setup or on the Virtualization Settings page in the main UI.

Select target host for Migration - PowerChute Setup Single/Redundant/Parallel UPS Configuration

In Advanced configurations, Select target host for Migration is not available in the Setup wizard, to prevent all UPS Setups using the same set of Target Hosts. It is defined in Virtualization Settings of each individual UPS Setup instead.

Select target host for Migration - Single/Redundant/Parallel Configuration

The left pane shows all available hosts in the datacenter. To specify a host to which the VMs should migrate in the event of a UPS critical event, drag and drop the host to the right pane. Using this option will allow VMs to migrate to hosts available in other clusters in the datacenter or Standalone Hosts in the inventory.

Do not enable custom target host migration for Hosts that are part of a Cluster that has DRS enabled and set to fully automated, as DRS rules will take precedence and VMs may not be migrated as specified. See VM Migration using DRS below for more information.

 

VM Migration using DRS

If VMware DRS is enabled and set to fully automated for the Cluster, PowerChute will start a maintenance mode task on the host when a UPS critical event occurs if Delay Maintenance Mode and Skip Maintenance Mode are disabled - these are enabled by default when HCI support is enabled and for vSAN. This allows DRS to migrate the VMs to other hosts in the cluster.

 

DRS is enabled in the Cluster Settings dialog of vSphere. To access Cluster settings, click on a cluster, select Configure, click vSphere DRS, and click Edit.

DRS Rules can be configured to control to which Hosts VMs are migrated:

  1. Click on the Cluster, select Configure, and select VM/Host Groups. Click the Add button.

  2. Specify a rule for the VM and Host DRS groups. For example,to prevent VMs from being migrated to Hosts in the Host DRS Group, select Must Not run on hosts in group.

If DRS is enabled and set to fully automated and Delay Maintenance Mode is disabled, VM Migration must be enabled in PowerChute with a VM migration duration set, in order to allow Virtual Machines to migrate successfully. See VMware Troubleshooting.

 

For more information on DRS, see "VMware Distributed Resource Scheduler (DRS)" at VMware.com.

When the duration time elapses PowerChute continues to the next step in the sequence.


DRS and Host Maintenance Mode

If Delay Maintenance Mode is enabled in the Virtualization Settings page, and DRS is enabled and set to Fully automated when a critical event occurs, PowerChute will set DRS to Partially automated before VMs and vApps are shut down. This is done to prevent DRS from migrating VMs back to a critical host. DRS is set back to Fully automated when the critical event(s) have been resolved.

VM Migration without DRS

VM migration is also supported without DRS. In this instance, PowerChute will start a maintenance mode task on the host and migrate the VMs to other available hosts during the duration time specified.

If all VMs have been migrated before the duration time has elapsed, PowerChute will wait until the remaining time has passed before proceeding with the next step in the sequence. If the duration time is not long enough, any remaining VMs may not be migrated. These VMs will be shut down gracefully if VM Shutdown is selected as the next step in the sequence.