From 7eceff0a97bdaa7d38dbc39bb4ca017de389ad8b Mon Sep 17 00:00:00 2001 From: Ross Brattain Date: Mon, 24 Nov 2025 17:24:03 -0500 Subject: [PATCH 1/2] OCPBUGS-65847: vsphere: add SkipIPAllocation to network devices Set SkipIPAllocation: true and disable DHCP4/DHCP6 on VSphereMachine network devices to prevent CAPV from waiting for VMware Tools to report IP addresses. This is appropriate when IP allocation is handled externally or when VMware Tools may not reliably report IPs to vCenter. --- pkg/asset/machines/vsphere/capimachines.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/asset/machines/vsphere/capimachines.go b/pkg/asset/machines/vsphere/capimachines.go index 0f941c44c46..73f0122276f 100644 --- a/pkg/asset/machines/vsphere/capimachines.go +++ b/pkg/asset/machines/vsphere/capimachines.go @@ -104,8 +104,10 @@ func GenerateMachines(ctx context.Context, clusterID string, config *types.Insta return nil, fmt.Errorf("unable to get network inventory path: %w", err) } deviceSpec := capv.NetworkDeviceSpec{ - NetworkName: networkName, - DHCP4: true, + NetworkName: networkName, + DHCP4: false, + DHCP6: false, + SkipIPAllocation: true, } // Static IP configured. Add kargs. From 9ab62c04ce732071363703b5e46f938e5e246358 Mon Sep 17 00:00:00 2001 From: Ross Brattain Date: Tue, 25 Nov 2025 01:37:02 -0500 Subject: [PATCH 2/2] test DHCP true --- pkg/asset/machines/vsphere/capimachines.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/asset/machines/vsphere/capimachines.go b/pkg/asset/machines/vsphere/capimachines.go index 73f0122276f..159f026b768 100644 --- a/pkg/asset/machines/vsphere/capimachines.go +++ b/pkg/asset/machines/vsphere/capimachines.go @@ -105,8 +105,8 @@ func GenerateMachines(ctx context.Context, clusterID string, config *types.Insta } deviceSpec := capv.NetworkDeviceSpec{ NetworkName: networkName, - DHCP4: false, - DHCP6: false, + DHCP4: true, + DHCP6: true, SkipIPAllocation: true, }