VCF 9.1.1 - Building a nested lab together with Claude
VCFnested labvmwarenetworknsxNSX 9VPCVKSAVIvDefendAIClaude
4015 Words Words // ReadTime 18 Minutes, 15 Seconds
2026-11-23 20:00 +0100
Introduction
In my previous blog posts I wrote about VKS with NSX VPCs and the integration of AVI. All of those labs were built the classic way: reading documentation, clicking through wizards, writing API calls by hand and troubleshooting with packet captures late in the evening. This time I tried something different. I built a complete VCF 9.1.1 lab together with an AI assistant, Claude Code from Anthropic, running directly on the jumphost of the lab.
The lab is a nested lab on top of VCF Automation. All VMs of the lab, including the nested ESX hosts, the router and the jumphost, are VM Service VMs in a single VCF Automation namespace of our physical VCF environment. The VLANs for management, vMotion, vSAN, TEP and the external network are provided by VPC subnets and VLAN bindings of the outer NSX.
So the full stack from the nested ESX hosts up to VKS guest clusters with a default DROP firewall policy was created out of a single VCF Automation namespace.
The way of working was simple. I defined the goals and conditions for each step, for example “deploy a VKS Supervisor with NSX VPC and AVI, size Medium, single node, management on vpc-mgmt01”. Claude translated those goals into API calls against VCF Automation, the VCF Installer, SDDC Manager, vCenter, NSX, AVI and VCF Operations, watched the deployments, collected logs and maintained a problem log for everything which did not work as expected.
I stayed in control of the decisions. Every change with a wider impact, like silencing a vSAN health check or enabling the vDefend DFW cluster-wide, was discussed first. Further I corrected Claude more than once, and some of those corrections are part of this blog post, since they are as interesting as the results.
This blog post covers three topics:
- the architecture of the lab and the versions used
- the challenges we solved along the way and the points that are still open
- what troubleshooting together with an AI looks like in practice, using a real example: the Supervisor node that was not reachable, the static ARP workaround and the
rp_filtersetting that turned out to be the cause
Architectural overview of the lab
The following drawing shows the lab in a high level overview.
The outer layer is the VCF Automation namespace with the jumphost, the VyOS router, the VCF Installer and the four nested ESX hosts.
Inside the nested VCF 9.1.1 management domain vcf-m01 there are two NSX projects. The default project hosts the VKS Supervisor sup01 on the public VPC subnet public01. The custom project tenant01 hosts two VKS guest clusters in the VPC vpc-t01, protected by a vDefend DFW policy with a default DROP rule.
Both projects are using a distributed transit gateway and share the same external IP block 10.0.14.0/23 on VLAN 1614.
The jumphost is the central point of the lab. It serves DNS (dnsmasq), NTP and SFTP for all components and runs Claude Code as well as a webtop desktop for the browser based UIs. Claude works in a dedicated working folder on the jumphost, which grew during the project to a small infrastructure as code repository:
bin/helper scripts for the REST APIs of vCenter, NSX, SDDC Manager, AVI, the fleet lifecycle and the VCF Automation VM Servicensx/,dfw/,wcp/all JSON specifications sent to the APIsmanifests/the VM Service manifests for the lab VMs and the VKS cluster manifestsdrawings/problem reports and diagramsPROBLEMS.mdthe problem log with open, mitigated, accepted and solved problems
Especially the problem log turned out to be very valuable. Every problem got an ID, a status, the cause and the fix. Since the conversation context of an AI session is limited, this file was also the memory of the project. After a context reset Claude continued exactly at the point where we stopped.
Versions used
The following versions were used in the lab. All versions were read directly from the APIs of the components.
| Component | Version |
|---|---|
| VCF | 9.1.1 |
| VCF Installer / SDDC Manager | 9.1.1.0200.25801071 |
| ESX (nested) | 9.1.1.0.25714478 |
| vCenter | 9.1.1.0100.25784172 |
| NSX | 9.1.1.0100.25762940 |
| VCF Operations | 9.1.1.0100.25795063 |
| VCF Services Platform (VSP) | 9.1.1.0100.25801571 |
| Fleet lifecycle | 9.1.1.0200.25801070 |
| Fleet depot | 9.1.1.0200.25801072 |
| SDDC lifecycle (instance) | 9.1.1.0200.25801981 |
| Identity broker (VIDB) | 9.1.1.0.25679886 |
| Log management (OPS_LOGS) | 9.1.1.0100.25795095 |
| AVI Load Balancer | 32.1.3 (build 9105), single node controller |
| Supervisor | v1.34.9+vmware.1-vsc9.1.1.0100-25784172 |
| VKS Supervisor service | 3.7.1 |
| VKS Kubernetes release (VKr) | v1.34.11+vmware.2-vkr.3 |
| Jumphost | Ubuntu 24.04.4 LTS |
| AI assistant | Claude Code with Claude Opus 5.5 |
The journey
From the first VM to the last component, the lab took three days of elapsed time. The real working time was much shorter, though. Many tasks ran for hours in the background, like bundle downloads, the bring-up or the resizing of the ESX hosts, and a part of the time I simply spent testing and playing around with Claude to see how it works. The following list gives a rough overview of the different steps.
- Lab foundation in VCF Automation. VPC subnets and VLAN bindings for the VLANs 1610 to 1614, VyOS router, jumphost, VCF Installer and three nested ESX hosts, all deployed as VM Service VMs over the Kubernetes API of the namespace.
- VCF bring-up. Offline depot, bundle downloads and the bring-up of the management domain
vcf-m01with 312 subtasks in round about 8 hours. - Cluster expansion. A fourth ESX host
esx04was commissioned and added to the cluster. Afterwards all hosts were resized from 96 GiB to 128 GiB RAM. - NSX VPC networking. Distributed VLAN connection, VNA cluster as service gateway, distributed transit gateway
dtgw01, VPC connectivity profile and the management VPCvpc-mgmt01. - AVI. Single node AVI controller deployed via SDDC Manager, NSX cloud in VPC mode.
- VKS Supervisor. Supervisor
sup01with NSX VPC networking and AVI. - Custom NSX project. Project
tenant01sharing the same external IP block, an own distributed transit gateway, VPC, vSphere namespace and VKS guest cluster. - DFW automation. vDefend DFW rules based on dynamic tag membership, which allow new VKS clusters to be deployed with a default DROP rule.
- Log management. Deployment of Log management as VSP component, syslog forwarding of all ESX hosts and NSX, logging enabled for all DFW rules.
Challenges and problems we solved
During the journey the problem log grew to more than 60 entries. Most of them were small things, but some were real challenges. The following table shows a selection.
| Area | Problem | Cause and solution |
|---|---|---|
| Offline depot | Bundle downloads failed with checksum mismatches | The depot is a simple HTTP server without support for range requests. Parallel or resumed downloads corrupt the files. Solved with sequential downloads and retries. |
| Nested ESX | Commission validation failed: “Host must have only Management tag enabled on the VMkernel” | The nested ESX appliance template tags vmk0 with vMotion and vSAN. Tags removed with esxcli vsan network remove -i vmk0. |
| Cluster expansion | Validation failed: “license key cannot be provided” | VCF 9.1 requires the explicit flag deployWithoutLicenseKeys: true. |
| Host resize | vMotion of a VSP node stuck at 56 % for one hour, maintenance mode hanging | Stale migration state in vCenter, in the HA agent and in the VMX process of the VM itself. Only a cold migration of the VM cleared it. Lesson learned: if a vMotion is stuck at the same percentage for more than 10 minutes, check the vmkernel.log of the source host. |
| AVI | AVI bundle download failed with 404 from dl.broadcom.com |
SDDC Manager 9.1 downloads only from the fleet software depot, which was connected to the Broadcom online depot instead of the offline depot. Solved by switching the depot connection in VCF Operations. |
| AVI | Three controller nodes do not fit into the lab | Single node AVI cluster by using an undocumented SDDC Manager feature flag. Not supported, but fine for a lab. |
| NSX | Default project and default VPC connectivity profile cannot be changed | Both are system defined objects. Solved with an own distributed transit gateway and connectivity profile in the default project. |
| NSX projects | Connectivity profile in tenant01 rejected, since the VNA cluster is out of the project scope. Sharing via /infra/shares is not allowed for VNA clusters |
The VNA cluster must be assigned to the project with site_infos.edge_cluster_paths. |
| vSphere Pods | Spherelet installation via vLCM failed every minute | vSAN health check “NVMe device is VMware certified” was yellow, since a nested NVMe controller is not on the HCL. Solved by silencing the check nvmeonhcl after my approval. |
| DFW | Project groups reject the member type VpcSubnetPort |
Member type SegmentPort with the same tags works for VPC subnet ports. |
| DFW | New VKS cluster blocked with default DROP, although rules for the cluster API VIP existed | A new AVI VIP is only learned on the service engine port after the virtual service is up. This is a chicken-and-egg problem during kubeadm init. Solved with a static group for the external IP block. |
| DFW | Node egress to Supervisor, DNS and NTP dropped, although allowed at the node | The packet is evaluated by the DFW a second time after SNAT on a hidden transit port of the VNA, now with the SNAT IP as source. Solved with mirror rules using the external IP block as source. |
| Log management | Plain syslog on TCP/UDP 514 not working | The gateway maps 514 to the pod port 5514, but nothing listens there. ESX uses TLS on port 1514, NSX uses LI-TLS on port 9543. |
| Log management | Log management installed via API was not usable in VCF Operations (Operate, Logs redirected to the component installation) | The backend API bypasses the VCF Operations wizard and the integration in VCF Operations is never created. Removed with the procedure of KB 460076 and installed again via the wizard. |
Shared external IP block between NSX projects
One of the validations I was especially interested in was whether a custom NSX project can use the same external IP block as the default project.
The answer is yes. NSX automatically creates a read-only share default-tenant01 for the IP block and the distributed VLAN connection. The allocations from 10.0.14.0/23 are unique and sequential across both projects, and the same distributed VLAN connection can be attached to two distributed transit gateways.
AVI automatically imports the project as AVI tenant tenant01 with an own Default-Group. The settings of the admin tenant are not inherited, so the default values for buffer service engines and virtual services per service engine are used. In my lab this means two additional service engines.
DFW automation for VKS
The default DFW rule of a project is often set to DROP. In this case the deployment of a new VKS cluster fails, if there are not the right rules in place. The goal was to create the rules once and allow every new VKS cluster by default.
The VKS node VMs do not get NSX VM tags. But the VPC subnet ports of the nodes are tagged by CAPI, CAPV and the NSX operator, for example capv.vmware.com/cluster.role with the values controlplane or node. Therefore the groups are based on segment ports and the membership criteria use those tags. Static IP based groups are only used where it is required, like for the Supervisor API VIP, DNS/NTP and the external IP block.
The result is the policy vks-baseline with 16 rules. A new cluster vks-t02 was deployed successfully with the default rule set to DROP and joined the groups automatically.
Open points
Not everything is solved yet, otherwise it would be boring. The following points are still open.
- Supervisor node reachability (P-16). The validated cause and the details are described in the next chapter. At the moment the workaround is a runtime setting on the Supervisor node, which is not persistent.
- Gateway of the public VPC subnet not reachable from the external VLAN (P-01). With a distributed transit gateway the gateway IP of a public VPC subnet does not answer ARP from the external VLAN, while VM IPs and NAT IPs are reachable. My working hypothesis is that in the distributed model the gateway exists on every host with the same virtual MAC and NSX only answers ARP for IPs in use. This is not confirmed by documentation yet.
- Log management on syslog port 514. Plain syslog is not usable in my installation. TLS works fine.
- Log management API login. The local admin is rejected by the Log management API, so the event level verification was done in the VCF Operations UI.
- AVI license. The controller runs on an evaluation license, which expires on 2026-12-21.
- Fleet lifecycle errors. Some fleet lifecycle API calls return HTTP 500 errors, which are not analyzed yet.
- Backups. The SFTP target on the jumphost exists, but it is not configured in SDDC Manager and NSX.
Validating problems together with AI
This is the part I was most curious about. Deploying components with an API is something an AI assistant does well, if the API is documented. But what about troubleshooting a problem where the documentation does not help?
The best example in this lab was the reachability problem of the Supervisor node.
The symptom
The Supervisor sup01 was deployed with the management network on the public VPC subnet public01 (10.0.14.16/28, gateway 10.0.14.17) with five static IPs starting at 10.0.14.20.
The Supervisor control plane VM gets two IPs on eth0: the floating IP 10.0.14.20 and the node IP 10.0.14.21.
During the enablement the health check of vCenter failed with the following message.
Cluster … is unhealthy: Get "http://localhost:1080/external-cert/http2/10.0.14.21/6443/version": … Client.Timeout exceeded
From the jumphost and the VyOS router the floating IP .20 was reachable, but the node IP .21 did not answer at all. The ARP entry for .21 on the VyOS router stayed INCOMPLETE.
Since the Supervisor uses .21 as source IP for all outgoing traffic, it could not reach vCenter, AVI or DNS. The AVI Kubernetes Operator in the Supervisor even deleted its credentials secret after a login timeout.
Step 1: Workaround first
To get the enablement done, Claude set a static ARP entry for 10.0.14.21 on the VyOS router. The deployment continued and the Supervisor was running 20 minutes later.
That is the point where many of us would stop. It works, the lab is up. But a static ARP entry breaks with every redeployment of the Supervisor VM, since the MAC address changes.
So I asked Claude to remove the static ARP entry and to validate why .20 is working, but .21 is not.
Step 2: A wrong first conclusion
The first conclusion of Claude was that NSX never learns the IP .21. I was not convinced, since in my blog post “VCF 9 - VKS with NSX VPCs” I had exactly the same design with the Supervisor management network inside the external IP block, and I never faced this issue.
After pointing Claude to the blog, it checked the NSX segment port again and corrected itself: NSX holds both IPs .20 and .21 as realized bindings, learned from VMware Tools and ARP snooping. So NSX knows where .21 is. The problem must be somewhere else.
This is an important learning. An AI assistant can be confidently wrong, just like a colleague. My own experience from the previous lab was the hint which brought the analysis back on track.
Step 3: Packet captures on both sides
Claude captured the ARP traffic at the same time on eth0 of the Supervisor VM and on the VLAN interface of the VyOS router.
# guest eth0: the VPC gateway asks for .21, the guest never replies
15:27:01.711 02:50:56:56:44:52 > ff:ff:ff:ff:ff:ff ARP Request who-has 10.0.14.21 tell 10.0.14.17
15:27:02.734 02:50:56:56:44:52 > ff:ff:ff:ff:ff:ff ARP Request who-has 10.0.14.21 tell 10.0.14.17
# guest eth0: gratuitous ARP for the floating IP, every 5 s
15:27:06.102 00:50:56:bb:f7:9d > ff:ff:ff:ff:ff:ff ARP Reply 10.0.14.20 is-at 00:50:56:bb:f7:9d
# VyOS eth1.1614: .20 answered in 0.1 ms (request not seen on the guest), .21 never answered
15:27:07.227817 04:50:56:00:10:01 > ff:ff:ff:ff:ff:ff ARP Request who-has 10.0.14.20 tell 10.0.14.1
15:27:07.227917 00:50:56:bb:f7:9d > 04:50:56:00:10:01 ARP Reply 10.0.14.20 is-at 00:50:56:bb:f7:9d
15:27:08.236322 04:50:56:00:10:01 > ff:ff:ff:ff:ff:ff ARP Request who-has 10.0.14.21 tell 10.0.14.1
The captures show two things.
The ARP request for .20 never reaches the VM. The ESX host answers it within 0.1 ms, because the VM sends a gratuitous ARP for the floating IP every 5 seconds and NSX learns it from there.
For .21 the distributed VPC gateway sends real ARP requests who-has 10.0.14.21 tell 10.0.14.17 to the VM. The requests arrive at eth0, but the VM never replies. So the problem is inside the Supervisor VM.
Step 4: The routing policy inside the Supervisor
The routing configuration of the Supervisor VM shows the reason.
# ip rule
0: from all lookup local
0: from all to 172.31.0.0/16 lookup 200
0: from all to 10.0.14.0/23 lookup 200
0: from 172.28.0.2 lookup 200
0: from all to 172.29.0.0/16 lookup 200
0: from all to 10.0.14.10 lookup 200
32766: from all lookup main
# ip route show table 200
default via 172.28.0.1 dev eth1 proto static
# reverse path check as the kernel runs it for an ARP request on eth0
ip route get 10.0.14.21 from 10.0.14.17 iif eth0
RTNETLINK answers: Invalid cross-device link
# sysctl
net.ipv4.conf.all.rp_filter = 1 net.ipv4.conf.eth0.rp_filter = 1
There is a policy rule for the complete external IP block 10.0.14.0/23 which points to table 200, and table 200 routes via the workload interface eth1.
The management gateway 10.0.14.17 is part of this block. So from the kernel point of view the gateway is reachable via eth1, but the ARP request arrives on eth0. With strict reverse path filtering (rp_filter=1) the kernel drops the request silently.
Claude also found where the rule is coming from. The update controller of the Supervisor (/usr/lib/vmware-wcp/update-controller/network_setting.py) reads the NSX operator resource IPBlocksInfo and creates one rule per external and private transit gateway CIDR for VPC based Supervisors.
# kubectl get ipblocksinfos -o yaml
kind: IPBlocksInfo
metadata: { name: ip-blocks-info }
externalIPCIDRs: [ 10.0.14.0/23 ]
privateTGWIPCIDRs: [ 172.31.0.0/16 ]
The intention of the rule is clear: traffic to load balancer VIPs and SNAT IPs of the VPCs should leave via the workload network. But since the management subnet public01 was carved out of the same external IP block, the rule also catches the management gateway.
The following drawing shows the complete flow.
Step 5: Validation with a single change
A cause is only validated if a test proves it. The test was a single runtime change on the Supervisor VM after my approval: reverse path filtering set to loose mode.
sysctl -w net.ipv4.conf.all.rp_filter=2 net.ipv4.conf.eth0.rp_filter=2
No change in NSX, on the VyOS router or in vCenter. The result was immediately visible.
| Check | rp_filter = 1 | rp_filter = 2 |
|---|---|---|
| VyOS ARP for 10.0.14.21 | INCOMPLETE, no reply | reply with the VM MAC |
| Jumphost to 10.0.14.21 ping / 6443 | no reply | reply / HTTP 401 |
| Supervisor to vCenter, AVI, DNS | timeout | working |
| Supervisor Kubernetes status | NCP in CrashLoopBackOff | READY after 4 minutes |
The possible solutions are:
- Use a management network for the Supervisor outside of the external IP block, for example a VLAN backed segment.
- Split the external IP block into two blocks, one for the management VPC and one for the VPC connectivity profile of the Supervisor.
- Report it to Broadcom, so the rule excludes the management subnet of the Supervisor.
What is still unclear is why my VCF 9.0 lab from the earlier blog post worked with the same overlap. That lab used a centralized transit gateway on a T0 edge and the NSX native load balancer. Either the 9.0 Supervisor did not create this rule, or the centralized gateway resolved the node IP without ARP from the guest. Checking ip rule on a 9.0 Supervisor would answer this.
Why this was efficient
The whole analysis from removing the static ARP entry to the validated cause took round about 15 minutes. Doing the same manually would have cost me a long evening. The efficiency came from a few things:
- Parallel evidence collection. Packet captures on the guest and on the router at the same time, NSX port bindings, the routing policy of the guest and the source code of the update controller were collected and correlated in minutes.
- Reading the product code. Finding the script which generates the rule and the NSX operator resource behind it is the kind of work which takes a lot of time manually, but is easy for an AI with shell access.
- Hypothesis and proof. Claude did not stop at the first plausible explanation. The cause was proven with one minimal change, and the side effects of the change were documented as well.
- Documentation for free. At the end I asked for a detailed problem report including a drawing, the validated cause and the environment parameters like the distributed transit gateway. Claude created it as PDF in a few minutes. The drawing in this blog post is taken from that report.
But it also showed the limits.
- The first conclusion was wrong and needed my experience to be corrected.
- In the DFW part Claude first talked about VPC connectivity policies, which are an additional feature and not the same as the vDefend DFW. Again a correction from my side was needed.
- For Log management Claude first used the backend API for the installation. The component was running, but the integration in VCF Operations was missing. The lesson learned is to use the VCF Operations wizard for VCF management components.
- Some actions were blocked by the safety classifier of Claude Code, for example starting SSH on the ESX hosts or downloading tools from the internet. In those cases Claude used alternatives like the NSX Traceflow API or pyVmomi instead of working around the block. This is annoying sometimes, but I prefer it this way.
Summary
Building this lab together with Claude was a really interesting experience. The biggest benefit is the speed. Three days of elapsed time, with a lot of it spent waiting for background tasks or experimenting with Claude, for a nested VCF 9.1.1 lab including NSX VPCs with distributed transit gateways, AVI, a VKS Supervisor, a custom NSX project with VKS guest clusters, DFW automation and Log management is something I would not have achieved alone in that time. Especially the API heavy parts, like the Supervisor enablement via vCenter API or the DFW groups and rules, were created much faster.
The second benefit is the documentation. Every specification is stored as JSON, every problem is tracked in the problem log, and the reports and drawings were created on the fly. This blog post is based on exactly that documentation.
The third benefit is the quality of troubleshooting. The Supervisor ARP problem showed that an AI assistant can do a structured analysis from the symptom to a validated root cause, if it is allowed to collect the evidence and is challenged by somebody who knows the technology.
And that is also the most important learning. The AI does not replace the experience of an engineer. It was wrong a few times and confidently so. My role changed from typing API calls to defining goals, reviewing results, making decisions and challenging conclusions. For me this is a good deal.
The open points like the Supervisor management network design, the gateway reachability of public VPC subnets and the AVI license will be part of the next steps. I am looking forward to continue this journey, and maybe in one of my next blog posts I will describe how they were solved.


