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

"The operation is not allowed in the current state of the host." during vMotion compatibility check in 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 VMware vSphere ESXi

Issue/Introduction

When trying to migrate a virtual machine between clusters, the compatibility check in the migration wizard displays a warning:

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

This message comes up, despite the cluster itself being confidestination cluster being enabled for DRS:

  • Select a virtual machine in one cluster.
  • Right click the VM and select Migrate.
  • Select any migration type. The issue is present both when migrating the compute resources only and when migrating compute- and storage resources.
  • Under 2 Select a compute resource, select the option 'Clusters'.
  • As migration target, select a DRS cluster where at least one ESXi host is currently in maintenance-, standby- or quarantine mode

As soon as the cluster is selected the Compatibility tab displays a warning as mentioned above:

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.