Snapshot using a Snapshot Manager fails with the error: Operation not allowed in current state
search cancel

Snapshot using a Snapshot Manager fails with the error: Operation not allowed in current state

book

Article ID: 334177

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Attempting a snapshot for a virtual machine using Snapshot Manager, or VMware Consolidated Backup or a third party backup solution such as vRanger fails.
  • You see these errors in vCenter Server:

    Cannot create snapshot
    Operation not allowed in current state


     
  • The virtual machine, VMware vCenter Server and the host appear to be running without problems, but the error persists.
  • The hostd.log file on the host contains entries similar to:

    [07:43:03.404 F64A8B90 error 'vm:/vmfs/volumes/4acc704a-2b59540f-116b-0017a477fc18/VMNAME/VMNAME.vmx'] Invalid transition requested (VM_STATE_ON_SHUTTING_DOWN -> VM_STATE_CREATE_SNAPSHOT): Invalid state

     


Cause

This issue occurs if the vCenter Server management agents have stopped causing the snapshot attempt to move in to the ON_SHUTTING_DOWN state.

Resolution

To resolve this issue, restart the VMware agents on the host.

To restart the agents:
  1. Ensure that the Virtual machine startup / shutdown with host feature is disabled before this step. For more information, see Restarting hostd (mgmt-vmware) on ESX hosts restarts hosted virtual machines where virtual machine Startup/Shutdown is enabled (1003312).
  2. Restart the management agents on the host. For more information, see Restarting the Management agents on an ESXi or ESX host (1003490).
  3. On vCenter Server, restart the VMware Virtual Center service. For more information, see Stopping, starting, or restarting vCenter services (1003895).
  4. Attempt the snapshot again.
  5. The operation succeeds and the corresponding log entry for the snapshot attempt reflects a transition from ON to CREATE SNAPSHOT instead of ON_SHUTTING_DOWN.


Workaround:
  • This issue can occur when the PCI device is attached to virtual machine. Snapshots are not supported with the PCI devices.  
  • To resolve the issue, remove the PCI device to create the snapshot or power off the virtual machine and take a snapshot.


Additional Information

Default locations of the hostd.log file are located at:
  • ESXi 5.x: /var/log
  • ESXi 3.5/4.x: /var/log/vmware/
Restarting the Management agents in ESXi
How to stop, start, or restart vCenter Server services
Snapshot Manager からのスナップショットの取得に次のエラーで失敗する: Operation not allowed in current state
在快照管理器中创建快照失败,并显示以下错误:当前状态下不允许此操作