“Batch apply host configuration Cannot apply the host configuration. Host profile apply failed with error: Error setting advanced options on the host. View the host logs for details.”
var/run/log/hostd.log
2025-05-23T05:40:51.683Z In( 166) Hostd[2100098]: [Originator@6876 sub=Hostsvc. Sys logConfigProvider opID=m82zrjbi-982192-auto-liwd-h5:70217401-2d-01-ec-a4d3-a4ef sid=5261e524 user=vpxuser] Set called with key'Syslog.global. auditRecord. storageCapacity', value '4'
2025-05-23T05:40:51.705Z Er(163) Hostd[2100098]: [Originator@6876 sub=Hostsvc.SyslogConfigProvider opID=m82zrjbi-982192-auto-l1wd-h5:70217401-2d-01-ec-a4d3-a4ef sid=5261e524 user=vpxuser] Failed to set global syslog configuration : Audit record storage capacity cannot be reduced.
2025-05-23T05:40:51.705Z In(166) Hostd[2100098]: [Originator@6876 sub=AdapterServer opID=m82zrjbi-982192-auto-l1wd-h5: 70217401-2d-01-ec-a4d3-a4ef sid=5261e524 user=vpxuser] AdapterServer caught exception; <5261e524-a139-adf9-8d7a-15965c512f0e, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 35901'>>, ha-adv-options, vim. option. OptionManager. updateValues, <vim. version. v8_0_1_0, official, 8.0.1.0>, [N11HostdCommon18VmomiAdapterServer19ActivationResponderE:0x000000f5a23fbfa8]>, N5Vmomi5Fault11SystemError9ExceptionE( Fault cause: vmodl. fault. SystemError
VMware vSphere ESXi 8.x
The remediation process attempts to reduce the audit record storage capacity to 4 GB, which ESXi does not permit once a higher value has been set. This restriction is in place to prevent loss of audit log data and to ensure compliance with security policies.
To resolve the remediation failure, manually align host’s audit record storage settings.
esxcli system syslog config set --audit-storage-enable=true
esxcli system syslog config set --audit-storage-capacity=4
/etc/init.d/vmsyslogd restart