Snapshot operation of a VM fails with the error "The operation is not allowed in the current state of the host"
search cancel

Snapshot operation of a VM fails with the error "The operation is not allowed in the current state of the host"

book

Article ID: 394268

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi 7.0 VMware vSphere ESXi 8.0

Issue/Introduction

Snapshot operations of a VM fails with the error "The operation is not allowed in the current state of the host" which causes the backup operations to fail.

Environment

VMware vSphere ESXi 7.x

VMware vSphere ESXi 8.x

Cause

This is expected when the host is in a process of transition into maintenance mode. During this time, if the host is hosting many VMs, they are sequentially migrated to other hosts.

Although the VMs have not started migration, the snapshot operations will still fail until the VMs are moved out to the destination host from the time the host started processing the maintenance mode.

 

vcenter: /var/log/vmware/vpxd/vpxd.log

YYYY-MM-DD hh:mm:ss.zzzZ error vpxd[#####] [Originator@6876 sub=StateLock opID=########] [VpxdVmStateLocker::ValidateObject] VM <VM name>: Host <FQDN of the host> is in maintenance mode

Resolution

Pause the backup operations of the corresponding VMs when a host is transitioning into maintenance mode to avoid backup job failures.

This is an expected behavior.