Custom quiesce script failure with error "Custom quiesce script failed" for VM snapshot creation on vCenter
search cancel

Custom quiesce script failure with error "Custom quiesce script failed" for VM snapshot creation on vCenter

book

Article ID: 458127

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • Unable to create quiesce snapshot on vCenter using custom quiesce script.
  • From vmware.log file on the VM, we notice below errors:
    YYYY-MM-DDTXX:XX:XX:XXXZ In(05) vmx - SnapshotVMX_TakeSnapshot start: 'VM Snapshot MM/DD/YYYY, XX:XX:XX PM', deviceState=0, lazy=0, quiesced=1, forceNative=0, tryNative=1, saveAllocMaps=0
    [msg.snapshot.quiesce.vmerr] The guest OS has reported an error during quiescing.
    YYYY-MM-DDTXX:XX:XX:XXXZ In(05)+ vmx - The error code was: 2
    YYYY-MM-DDTXX:XX:XX:XXXZ In(05)+ vmx - The error message was: Custom quiesce script failed.

 

Environment

VMware ESXi 8.x

vCenter Server 8.x

Cause

The snapshot creation process in vCenter was unsuccessful due to errors within the custom quiesce script

Resolution

  • Before attributing a vCenter snapshot failure to a custom quiesce script, perform the following diagnostic steps to rule out infrastructure or configuration issues:

    1. Verify manual snapshots:
      Confirm that a standard snapshot can be created successfully from vCenter.

    2. Verify quiesced snapshots:
      Confirm that a manual quiesced snapshot operation completes successfully from vCenter.

    3. Check execution time:
      Ensure the snapshot creation task completes within an expected timeframe, without extended delays.

    4. Confirm task logging:
      Verify that the snapshot creation tasks are correctly recorded in the logs and no difference in timestamps in the task workflow.

    5. Update VMware Tools:
      Ensure the VMware Tools version on the virtual machine is up to date.

    6. Review guest event logs:
      Examine the virtual machine's event logs to confirm there are no operational or functionality issues within the guest OS.

    7. Enable debug logging (if required):
      If further investigation is necessary, enable VMX debug logging for the virtual machine to identify potential issues with guest-level communication.

      Refer to the following article for guidance: 
      Enabling VMX debug logging for a Virtual Machine

          

  • If all manual snapshot creation tests are successful yet the failure persists with a custom quiesce script error, engage the respective vendor to validate the custom quiesce script.