How to Prevent VDAs from Remaining Powered Off After a Scheduled Reboot Cycle

book

Article ID: CTX697284

calendar_today

Updated On:

Description

  • Environment:

    • Product: Citrix Virtual Apps and Desktops (CVAD) / Citrix DaaS (On-Premises)

    • Provisioning Method: Provisioning Services (PVS)

    • Hypervisor: VMware vSphere / vCenter

    • Operating System: Windows Server 2019 / Server 2025

  • Symptoms:

    • During large scheduled reboot windows (e.g., across hundreds of machines), a random subset of VDAs shut down cleanly but fail to power back on automatically.

    • Manually powering on affected machines from Citrix Studio succeeds, and VDAs register normally.

    • System event logs on affected VDAs indicate clean OS shutdowns (no BSOD, Event 6008, or Kernel-Power 41).

  • Diagnostic Findings:

    • CDF traces from the Delivery Controller (DDC) capture the following warning:

 
 
 
BrokerRebootSchedule: RebootCycle(<ID>): Worker(<SID>) failed to reboot/shutdown within allowed time
  • Trace analysis confirms that while the Broker initiated the shutdown, hypervisor-side shutdown completion and power status updates took more than 10 minutes (around 14+ minutes), causing the Broker reboot cycle to time out and abandon the power-on step.

Cause

The Citrix Broker Reboot Schedule enforces a default 10-minute timeout for a target VM to complete its shutdown and report the power state back to the Controller via the hypervisor connection.

Under heavy hypervisor load, storage latency, or delayed vCenter task polling, the VM shutdown process can exceed 10 minutes. Because the hypervisor does not return the "PowerOff" state before the 10-minute threshold expires, the Broker marks the worker as timed out and halts the reboot cycle for that machine, leaving it powered off.

Resolution

To prevent scheduled reboot cycles from timing out prematurely, increase the allowed shutdown delay threshold on all Delivery Controllers:

  1. Log in to each Delivery Controller (DDC) in the site with administrative credentials.

  2. Open the Windows Registry Editor (regedit.exe).

  3. Navigate to:

     
     
     
    HKLM\Software\Citrix\DesktopServer
  4. If it does not already exist, create a new subkey named:

     
     
     
    RebootSchedule
  5. Inside RebootSchedule, create a new DWORD (32-bit) value:

    • Value name: MaxShutdownDelayMin

    • Base: Decimal

    • Value data: 30 (Increases timeout to 30 minutes; default is 10)

  6. Ensure this registry value is configured identically across all Delivery Controllers in the site.

  7. Restart the Citrix Broker Service (Citrix Broker Service / BrokerService.exe) on all Delivery Controllers to apply the change.

  8. Monitor the next scheduled reboot cycle to verify all VDAs shut down and power back on as expected.

Issue/Introduction

In Citrix Virtual Apps and Desktops (CVAD) environments, a subset of Virtual Delivery Agents (VDAs) may intermittently remain in a powered-off state following a scheduled reboot cycle. This behavior occurs when the VM shutdown process exceeds the default 10-minute timeout enforced by BrokerRebootSchedule. Increasing the shutdown delay threshold via the MaxShutdownDelayMin registry key on all Delivery Controllers resolves the issue.

Additional Information

  • Related Settings: If VDAs also experience registration delays during bulk reboot events after powering on, consider evaluating MaxRegistrationDelayMin under HKLM\Software\Citrix\DesktopServer (refer to CTX223434).