/etc/init.d/nsx-cfgagent service continuously crashes and goes down immediately after any start or restart attempts.nsx_cfgagent service status as down, and users might receive alerts prompting a service restart.nsx-syslog.log) during service startup will typically indicate that the system is unable to access or parse the configuration file.VMware NSX
VMware ESX
nsx-cfgagent.xml configuration file on the ESXi host.<enabled>falseled> instead of a valid closing tag, will trigger this failure.To resolve this issue, identify and correct the invalid XML formatting in the configuration file:
SSH into the affected ESXi host.
Open the nsx-cfgagent.xml file using a text editor (e.g., vi).
Review the file for any recent manual changes, malformed tags, or syntax errors. For example, look for invalid tags like the <enabled>falseled> typo mentioned above.
Correct the syntax error so that all XML tags are valid and properly closed (e.g., correcting the example typo to <enabled>false</enabled>).
Save the changes and exit the text editor.
Restart the nsx-cfgagent service using the following command: /etc/init.d/nsx-cfgagent restart
Verify that the service comes up and remains in a running state.
Note: If manual modifications or scripts were used to push changes across multiple hosts, it is highly recommended to audit other ESXi hosts in the environment for similar syntax errors. Even if the service is currently running on those hosts, it may be in a non-deterministic state and could fail upon the next restart.