vMotion compatibility check displays a warning "The operation is not allowed in the current state of the host." during migration to a DRS cluster, when one or more cluster nodes are in maintenance mode
search cancel

vMotion compatibility check displays a warning "The operation is not allowed in the current state of the host." during migration to a DRS cluster, when one or more cluster nodes are in maintenance mode

book

Article ID: 419143

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • You attempt to manually migrate a virtual machine using vSphere Client.
  • In the migration wizard under '2 Select a compute resource' you select the option 'Clusters'. 
  • As destination or target, you select a DRS cluster.
  • One or more of the cluster members (ESXi hosts) are currently in maintenance mode.
  • As soon as you do this, in the 'Compatibility' window below the the selection list a warning message is displayed, stating:

The operation is not allowed in the current state of the host

similar to the example below:

Environment

VMware vCenter Server 7.0.x

VMware vCenter Server 8.0.x

Cause

When a DRS cluster is selected as migration target, the distributed resource scheduler (DRS) will run compatibility checks against all cluster members in order to verify where it will be able to place the VM, no matter which mode or state the host is currently in.

If DRS finds that there are any hosts where the VM cannot be placed on due to the state they are currently in, aka when the host is in maintenance-, quarantine- or standby mode, or disconnected from vCenter Server, DRS will report the above message in the wizard for transparency reasons, to inform the user which of the cluster members it will not be able to use. 

Resolution

This is an expected behavior.

The message shown in the migration wizard is meant as an information related to where DRS will be able to place the virtual machine and where it won't. 

This will not prevent you from moving on and finishes the migration, but it allows you to use the information and act upon it.