From db8b5d4e1d51132a4b161fff5479a755d333a3ac Mon Sep 17 00:00:00 2001 From: Olli Hauer Date: Sat, 10 May 2025 11:13:56 +0200 Subject: [PATCH 1/2] extend tools.conf - disable CoreDump - set maxOldLogFiles - set maxLogSize - add primary-nics filter - extend exclude-nics man (7) systemd.net-naming-scheme - set max-ipv4-routes, max-ipv6-routes --- .../files/etc/vmware-tools/tools.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/images/capi/ansible/roles/providers/files/etc/vmware-tools/tools.conf b/images/capi/ansible/roles/providers/files/etc/vmware-tools/tools.conf index f2b63ed49f..32d38cb3af 100644 --- a/images/capi/ansible/roles/providers/files/etc/vmware-tools/tools.conf +++ b/images/capi/ansible/roles/providers/files/etc/vmware-tools/tools.conf @@ -1,3 +1,22 @@ +[logging] +## Disables core dumps on fatal errors; they're enabled by default. +enableCoreDump = false +## Setup file rotation - keep 3 files +vmsvc.maxOldLogFiles = 3 +## Max log file size kept: 1 MB +vmsvc.maxLogSize = 1 + [guestinfo] exclude-nics=antrea-*,cali*,cilium*,lxc*,ovs-system,br*,flannel*,veth*,vxlan_sys_*,genev_sys_*,gre_sys_*,stt_sys_*,????????-?????? +## This configuration ensures that any address in the interfaces matching en* is sorted on top of the list of IP addresses. +primary-nics=en* + +## The configuration will exclude all interfaces with the names matching the patterns specified from GuestInfo. +exclude-nics=antrea-*,br*,cali*,cbr*,cilium*,cni*,docker*,dummy*,flannel*,genev_sys_*,gre_sys_*,kube-ipvs*,lo,lxc*,nodelocaldns*,ovs-system,stt_sys_*,tunl*,veth*,virbr*,vxlan_sys_*,wg*,????????-?????? + +## https://github.com/vmware/open-vm-tools/commit/065f09b94e09f1127901db29e73cc9b9f36df4fc +# max-ipv4-routes: Max IPv4 routes to gather. Set 0 to disable gathering. +# max-ipv6-routes: Max IPv6 routes to gather. Set 0 to disable gathering. +max-ipv4-routes=0 +max-ipv6-routes=0 From 23b45dd8e79dbfb289a55274f3affad28c3cf74d Mon Sep 17 00:00:00 2001 From: Olli Hauer Date: Sat, 10 May 2025 13:27:02 +0200 Subject: [PATCH 2/2] remove replaced exclude-nics key --- .../ansible/roles/providers/files/etc/vmware-tools/tools.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/images/capi/ansible/roles/providers/files/etc/vmware-tools/tools.conf b/images/capi/ansible/roles/providers/files/etc/vmware-tools/tools.conf index 32d38cb3af..1bc61fc198 100644 --- a/images/capi/ansible/roles/providers/files/etc/vmware-tools/tools.conf +++ b/images/capi/ansible/roles/providers/files/etc/vmware-tools/tools.conf @@ -7,7 +7,6 @@ vmsvc.maxOldLogFiles = 3 vmsvc.maxLogSize = 1 [guestinfo] -exclude-nics=antrea-*,cali*,cilium*,lxc*,ovs-system,br*,flannel*,veth*,vxlan_sys_*,genev_sys_*,gre_sys_*,stt_sys_*,????????-?????? ## This configuration ensures that any address in the interfaces matching en* is sorted on top of the list of IP addresses. primary-nics=en*