Quiescing failure on Linux VM with disk.enableUUID set to true
search cancel

Quiescing failure on Linux VM with disk.enableUUID set to true

book

Article ID: 341553

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Taking a quiesced snapshot using the vSphere Web Client fails immediately with the error:

    The guest OS has reported an error during quiescing. The error code was: 3 The error message was: Error when enabling the sync provider.
     
  • Snapshot quiescing fails in Linux guests.
  • When disk.enableUUID parameter is set to true in the vmx file, snapshot quiescing fails.
  • In the /var/log/hostd.log file, you see the error:

    [3CB9EB90 verbose 'vm:/vmfs/volumes/<datastore>/<VMNAME>/<VMNAME>.vmx'] Handling message _vmx##: The guestOS has reported an error during quiescing.
    --> The error code was: 3
    --> The error message was: Error when enabling the sync provider.

     
  • In a Red Hat Enterprise Linux (RHEL) virtual machine, the /var/log/messages.log file contains error similar to:

    [ debug] [vmbackup] *** VmBackupStart
    [ debug] [vmbackup] Using quiesceApps = 1, quiesceFS = 1, allowHWProvider = 1,execScripts = 1, scriptArg = , timeout = 0
    [ debug] [vmbackup] Quiescing volumes: 6000c296-7562-12a2-a3a5-6547bbe78021
    [ debug] [vmbackup] *** VmBackup_SendEvent
    [ debug] [vmbackup] *** VmBackupStartScripts
    [ debug] [vmbackup] Trying to run scripts from /etc/vmware-tools/backupScripts.d
    [ debug] [vmbackup] *** VmBackupAsyncCallback
    [ debug] [vmbackup] VmBackupAsyncCallback: checking VmBackupOnFreeze
    [ debug] [vmbackup] Async request 'VmBackupOnFreeze' completed
    [ debug] [vmbackup] *** VmBackupEnableSync
    [ info] [guestinfo] Poll loop disabled.
    [ debug] [vmbackup] *** VmBackupSyncDriverStart
    [ debug] [vmsvc] SyncDriver: Freezing using Linux ioctls...
    [ debug] [vmsvc] SyncDriver: failed to open 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx': 2 (No such file or directory)
    [ warning] [vmbackup] Error freezing filesystems

     
  • When debug logging is enabled in VMware Tools, you see log entries similar to:
    • <YYYY-MM-DD>T<time>.864Z| vcpu-0| I120: Guest: [ debug] [vmsvc:vmsvc] SyncDriver: Freezing using Linux ioctls...

      </time>
    • <YYYY-MM-DD>T<time>.290Z| vmx| I120: GuestRpcSendTimedOut: message to toolbox timed out.
      <YYYY-MM-DD>T<time>.694Z| vmx| I120: Tools: Tools heartbeat timeout.
      <YYYY-MM-DD>T<time>.290Z| vmx| I120: GuestRpcSendTimedOut: message to toolbox timed out.
      <YYYY-MM-DD>T<time>.290Z| vmx| I120: GuestRpc: app toolbox's second ping timeout; assuming app is down
      <YYYY-MM-DD>T<time>.291Z| vmx| I120: ToolsBackup: changing quiesce state: STARTED -> DONE
      <YYYY-MM-DD>T<time>.291Z| vmx| I120: SnapshotVMXTakeSnapshotComplete: done with snapshot 'smvi_ee2e62bb-2eef-4d86-a03d-feb834813702': 0
      <YYYY-MM-DD>T<time>.291Z| vmx| I120: SnapshotVMXTakeSnapshotComplete: Snapshot 0 failed: Failed to quiesce the virtual machine (40).

      </time></time></time></time></time></time></time>
      For more information, see Enabling debug logging for VMware Tools within a guest operating system (1007873).


Environment

VMware vSphere ESXi 5.1
VMware vSphere ESXi 6.5
VMware vSphere ESXi 5.5
VMware vSphere ESXi 6.0

Cause

This issue occurs if the disk.EnableUUID parameter in the virtual_machine.vmx file is set to true. This supplies the incorrect path to the function that quiesces the file system in question.

Resolution

This issue is resolved in:

Workaround:
To work around this issue:
  • Update the VMware Tools to version 10.1.0 or later.
  • Set the disk.EnableUUID parameter to false in the virtual_machine.vmx file.
     
    Note: The disk.EnableUUID parameter is not included in the .vmx file by default. If the parameter does not exist, it is taken as false since this is the default behavior. To modify this setting, it is required to be added to the .vmx file.
     
    To set the disk.EnableUUID parameter to false in the virtual_machine.vmx file:
    1. Connect to the host running the virtual machine with an SSH session.

      For more information, see Using ESXi Shell in ESXi 5.x and 6.0 (2004746).
       
    2. Navigate to the virtual_machine.vmx file located at /vmfs/volumes/virtual_machine_datastore/ virtual_machine/.
    3. Open the virtual_machine.vmx file using a text editor.
    4. Locate the disk.EnableUUID entry within the file.
    5. Set the disk.EnableUUID entry to false.

      For more information see, Editing configuration files in VMware ESXi and ESX (1017022).
       
    6. Open a console session to the virtual machine.
    7. Open the tools.conf file, located at the /etc/vmware-tools directory, using a text editor.

      Note: If the tools.conf file does not exists, create an empty file by running the vi tools.conf command.
       
    8. Add these parameters to the file:

      [vmbackup]
      enableSyncDriver = false


      Note: This only runs a sync operation before the snapshot, and does not run a FREEZE on the filesystem.
       
    9. Save and close the file.


Additional Information

To be alerted when this document is updated, click the Subscribe to Article link in the Actions box Enabling debug logging for VMware Tools within a guest operating system
Editing configuration files in VMware ESXi and ESX
Using ESXi Shell in ESXi 5.x and 6.x
vmx ファイルで disk.enableUUID が true に設定されている場合は Linux ゲストでスナップショットの静止に失敗する
当 vmx 文件中的 disk.enableUUID 设置为 true 时,Linux 客户机中的快照静默失败