In vSphere 9.1.x environments managed by vSphere Configuration Profiles (VCP), administrators may observe an unexpected configuration drift after enabling Distributed Firewall (DFW) on ESXi hosts (specifically when DfwOnDvpg is enabled).
The VCP compliance engine flags a discrepancy in the following path: /profile/esx/syslog/global_settings/remote_host_max_msg_len
While the host remains functional, the cluster status will remain "Non-Compliant" until the drift is acknowledged and absorbed into the desired state.
This issue is observed in environments meeting the following criteria:
vCenter Server: Version 9.1.x
ESXi Hosts: Version 9.1.x
Management Framework: Clusters managed via vSphere Configuration Profiles (VCP).
Feature Enablement: Distributed Firewall (DFW) is enabled at the Distributed Virtual Port Group (DVPG) level (DfwOnDvpg).
Following the enablement of Distributed Firewall (DFW) in vSphere 9.1.x and the subsequent remediation of hosts to the desired image, a compliance check (Configure → Configuration → Compliance → Check Compliance) may report a drift for the following parameter: /profile/esx/syslog/global_settings/remote_host_max_msg_len
When DFW feature is enabled, the underlying system requires the syslog message length to be adjusted (typically to 4096). During the first compliance check post-enablement, the VCP engine identifies that the current value on the ESXi hosts does not match the cluster’s current 9.1.x global Desired State.
After enabling Distributed Firewall (DFW) through vSphere Configuration Profiles (VCP):
After performing compliance check (Configure → Configuration → Compliance → Check Compliance):
To resolve the reported configuration drifts, the administrator must synchronize the cluster's desired configuration with the current settings of the remediated hosts. This process "absorbs" the host-level settings into the cluster-wide profile, ensuring consistency across the environment.
Note: For clusters where DFW is enabled, the recommended and expected value for
remote_host_max_msg_lenis 4096. Ensure this value is present on the reference host before proceeding with the import.
Follow these steps to synchronize the host's actual settings with the cluster's desired state:
Select the affected vSphere Configuration Profiles (VCP) cluster from the vCenter inventory.
Navigate to the Configure tab → Desired State → Configuration. Click on the Edit button to initialize a new configuration draft.
Under the Draft tab, select the Import from Host option.
Action: Select a host that currently has the correct settings as your reference.
Result: This action pulls the configuration from the reference host and populates it into the current draft, including the required syslog parameters.
Before finalizing, ensure the values are correct:
Verify: Within the draft, locate the parameter path: /profile/esx/syslog/global_settings/remote_host_max_msg_len.
Confirm: Ensure the value is set to 4096.
Commit: Click Save and then select Commit (or Apply Changes) to promote this draft to the active "Desired State."
Return to the Compliance tab and click Check Compliance.
The VCP engine will re-scan the hosts against the updated profile.
The drift alerts should disappear, and the cluster status should update to Compliant.
Select the affected VCP-enabled cluster from the vCenter inventory.
Within the Configure tab, navigate to Desired State → Configuration. Select the option #2 only deviating settings from other hosts. Reference host settings become common settings for the cluster. Deviating settings from other hosts in the cluster are added as overrides.
Note: A new draft will be generated using settings from the cluster hosts. You may manually modify the draft at this stage to ensure
remote_host_max_msg_lenis set to 4096.
Navigate to Configure → Desired State → Configuration → Draft → Show Changes. Use this view to compare the newly imported draft against the cluster's current Desired Configuration. This ensures only the intended syslog changes are being absorbed.
Select Apply Changes (or Commit) to save the draft as the new cluster-wide Desired Configuration.
Note: This action will trigger an automatic Remediation operation across the cluster to align all hosts with the new profile.
Once the "Apply" task completes, a Check Compliance operation is triggered automatically. The hosts should now report a status of Compliant, and the syslog drift alerts should be cleared.