Virtual Delivery Agent constantly goes into Maintenance mode

Virtual Delivery Agent constantly goes into Maintenance mode

book

Article ID: CTX137376

calendar_today

Updated On:

Description

Virtual Delivery Agent constantly and automatically goes into maintenance mode.

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.

On Delivery Controllers set DWORD value HKEY_LOCAL_MACHINE\Software\Citrix\DesktopServer\MaxFailedRegistrationsAllowed to a negative value (0xFFFFFFFF) to prevent the Virtual Machines (VMs) from automatically getting placed into maintenance mode.

Note: Settings delivered from the GPO appears under a local root of HKEY_LOCAL_MACHINE\Software\Policies\Citrix.


Problem Cause

When broker service starts the VM and fails to register after the MaxRegistrationDelayMin period (default 20 minutes), the VM is shut down again. The MaxFailedRegistrationsAllowed value defines the maximum number of times that this start-up, registration failure, shut down cycle is allowed to repeat before a subsequent registration failure causes the VM to be automatically placed into maintenance mode.

The default value of 2 means that if the VM fails to register three times in succession, VM is automatically placed into maintenance mode.

Issue/Introduction

This article provides a resolution to the issue "Virtual Delivery Agent constantly goes into maintenance mode."

Additional Information

CTX126704 - Registry Entries Used by XenDesktop 5.x Broker Service

CTX138738 - http://support.citrix.com/article/CTX138738