At the end of part 1 I had a namespace, a VM class with 16 vCPU and 96 GB, and a dedicated VPC. What I did not have was a single nested ESX. The big open question was the one William Lam ran into years ago: does VM Service keep the vNIC of a nested ESX connected, or does it quietly cut it off?

Spoiler: it keeps it connected. Everything else took a little longer than planned. This part covers the way from the first test host to a fully deployed VCF 9.1.1 management domain, all of it via API and CLI.

TL;DR

TopicResult
vNIC on nested ESXStays connected with VM Service. The biggest risk is gone.
IP addressingStatic IPs on a private VPC subnet with DHCP and NSX IP allocation turned off
Lab networkOwn jumphost with DNS (dnsmasq), NTP (chrony) and SOCKS access
DisksBoot-only image (64 GB) plus PVCs for the vSAN disks, attached via NVMe
DepotOffline depot with the 9.1.1 GA bundles plus seven patch bundles
Bring-upStarted via the VCF Installer API, finished after roughly nine hours, 312 of 312 tasks green
NextTurn all of this into a catalog item in VCF Automation

The first nested ESX

First a quick health check. The namespace was running, and the images from the provider content library showed up. Not as namespaced VirtualMachineImage, but as ClusterVirtualMachineImage. VM Service does not care, so neither did I.

Then the moment of truth: one nested ESX called esx-test01 as a plain VirtualMachine object (VM Operator API v1alpha5). The configuration goes in through spec.bootstrap.vAppConfig with the usual guestinfo.* properties: hostname, IP, netmask, gateway, DNS, NTP, password and SSH.

The host booted. The vNIC stayed connected. Ping, HTTPS and SSH worked. That was the part I was most worried about, and it simply worked. Not what I planned for, honestly. I had a fallback with govc ready.

One small trap: getting the IP from NSX into the vApp template only rendered properly with

{{ V1alpha5_FormatIP (V1alpha5_FirstIPFromNIC 0) "" }}

More on why I dropped dynamic IPs anyway below.

A network of its own

A nested VCF needs DNS records for everything, and I did not want to clutter my real lab DNS with them. So the nested lab got its own small infrastructure:

  • Two NSX VPC subnets, created as Subnet objects (crd.nsx.vmware.com/v1alpha1):
    • nvcf-public: public, for access from my lab network
    • nvcf-mgmt: private, 172.28.10.0/24, with DHCP off and NSX IP allocation off, so I can hand out static IPs myself
  • A jumphost nvcf-svc01 (Ubuntu 24.04, configured by cloud-init) with one NIC in each subnet. It does three jobs:
    • DNS for nvcf.lab.local with dnsmasq host-record entries, so A and PTR records come from a single line
    • NTP with chrony
    • SSH and SOCKS access to all the web UIs

The IP plan for the management network:

ComponentIP
Gateway.1
nvcf-svc01 (DNS/NTP).5
esx01–esx04.11–.14
VCF Installer.20
vCenter / NSX VIP / NSX Manager.21 / .22 / .23
SDDC Manager.24
VCF Operations / Fleet / Collector.26 / .27 / .28
VCF Automation.30
VSP platform / instance / fleet.31 / .32 / .33
Identity Broker / License Server.34 / .35
VSP IP pool.40–.59

vMotion, vSAN and TEP each got their own range (172.28.11.0/24, 172.28.12.0/24, 172.28.13.0/24). They only live inside the nested environment.

Small gotcha with cloud-init: my first version pointed the jumphost at itself for DNS. Before dnsmasq was installed. So apt could not resolve anything and could not install dnsmasq. Classic. The jumphost now starts with the lab DNS server and switches to its own dnsmasq afterwards.

Dead end: big disks in the template

The original plan from part 1 was a nested ESX template with all disks already included: 64 GB boot plus 32 GB and 500 GB for vSAN. What could go wrong.

Two things, it turned out.

  1. The image cache. Before the first deployment, VM Service copies the image into a cache. With almost 600 GB, that copy took forever. I watched a progress bar crawl through the twenties for a long time.
  2. Linked clones. VMs from that cache are linked clones, and linked clones cannot grow their disks:
Invalid operation for device '0'. Disks with parents cannot be expanded.

So I flipped the design:

  • The template nested-esx-9-1-1-boot64 only carries the 64 GB boot disk.
  • The vSAN disks are PersistentVolumeClaims: 32 Gi for cache and 500 Gi for capacity, storage class rzb-local.
  • The volumes are attached to an NVMe controller. That needs controllerType: NVME plus an explicit controllerBusNumber and unitNumber. Without the bus number, VM Operator refuses the spec.
volumes:
  - name: vsan-cache
    controllerType: NVME
    controllerBusNumber: 0
    unitNumber: 1
    persistentVolumeClaim:
      claimName: esx01-vsan-cache
  - name: vsan-capacity
    controllerType: NVME
    controllerBusNumber: 0
    unitNumber: 2
    persistentVolumeClaim:
      claimName: esx01-vsan-capacity

Result: a small image, fast deployments, and ESXi detects the NVMe disks as SSDs right away. Exactly what vSAN wants.

Each nested ESX is now three Kubernetes objects: two PVCs and one VirtualMachine with a static IP and the guestinfo properties. I also dropped the dynamic IPs from NSX at this point. VCF wants fixed IPs and matching DNS records anyway, so static it is.

All VMs powered on, all PVCsbound. Three nested ESX, a jumphost and the installer. Everything a VCF needs, in one namespace.

The depot

The VCF Installer needs its bundles from somewhere. I had a VCF Offline Depot Appliance lying around from an older lab (depot.mb.lab), so it got a second life:

  • I deleted the old 9.0.0 bundles.
  • I downloaded the 16 GA bundles for 9.1.1 with the vcf-download-tool. By ID, because the full download for the version would have been around 150 GB.
  • Validation later asked for seven patch bundles on top (vCenter, VCF Operations, VSP, Identity Broker, Salt and friends). Those got downloaded too.

The depot is registered in the installer via API (/v1/system/settings/depot), and the depot CA is added as trusted.

VCF Installer and bring-up via API

The VCF Installer runs as a VM Service VM as well, deployed from the SDDC Manager appliance in the content library, with a static IP of .20. The passwords come from a Kubernetes secret into the vApp properties, so they never show up in a manifest.

The SDDC spec in short:

  • 3 hosts, vSAN OSA, FTT 1
  • vCenter small, NSX medium with one manager plus VIP
  • VCF Operations with fleet management and collector
  • License server
  • VCF Services Platform (VSP)
  • Identity Broker

Validation (POST /v1/sddcs/validations) needed a few rounds:

Validation saidFix
MTU too smallDistributed switch MTU set to 1600
License server and VSP missingAdded licenseServerSpec and vspClusterSpec. The VSP pool needs at least 12 IPs.
Patch bundles missingDownloaded, see above
SDDC Manager not on the target hostsDeploy a new SDDC Manager instead of reusing the installer (useExistingDeployment: false, own IP .24)

What was left were warnings I accept in a lab: not enough storage according to sizing (750 GB instead of about 5.4 TB), more vCPUs than physical cores, and unreachable gateways for vMotion and vSAN.

Then POST /v1/sddcs. And then a lot of waiting.

The bring-up ran for about nine hours. Most of that time went into the VCF management services: VSP, VCF Operations, Identity Broker and Salt. There was one stretch of an hour where the progress counter did not move at all. I checked the hosts, all fine, just slow. It finished with COMPLETED_WITH_SUCCESS, 312 of 312 tasks.

One detail that made me nervous for a moment: halfway through, my status checks suddenly failed with a certificate error. The installer had swapped its own certificate for one signed by the brand-new nested vCenter CA. If you pin the CA in your scripts, you have to pull the new root CA in. Nothing was broken, the bring-up just kept going.

Getting in: SOCKS through the jumphost

The nested management network is not reachable from my admin network, and that is on purpose. Access goes through an SSH SOCKS tunnel to the jumphost:

ssh -i ~/.ssh/<key> -D 1080 -N nvcf@10.12.0.66
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
  --user-data-dir=/tmp/chrome-nvcf --proxy-server="socks5://127.0.0.1:1080"

Chrome resolves DNS through a SOCKS5 proxy as well, so vcenter.nvcf.lab.local and friends just work in that window. A separate profile keeps my normal browser untouched.

Correction: 1600 MTU and a single NIC

After I shared the first results, a colleague aka. SDN-Warrior had a look and was not impressed. Fair enough.

– MTU: 1600 was simply the smallest value that got past the validation. The VCF 9 default for NSX is 1700. Overlay works with 1600 inside the lab, but the moment you deploy the first edge node with the default uplink profile, you have an MTU mismatch.

– Single NIC: One vmnic per host is accepted in a JSON deployment, but there is zero redundancy. Not something I would show anyone as a reference.

The honest root cause: I let the tooling pick network parameters until the validation turned green, instead of deciding them up front.

For the next labs, the parameters are fixed: MTU 1700 for the nested VDS and the NSX TEPs, two NICs per host on one VDS, and 1500 for management, vMotion and vSAN. The outer environment has enough headroom for this, both physical VDS and the outer NSX run with 9000. Part 3 uses these values.

Takeaway: decide MTU, NIC count and teaming before you write the spec. The validation tells you what is allowed, not what is sensible.

Learnings

  1. VM Service and nested ESX get along. The vNIC stays connected. The old horror story did not repeat.
  2. Keep images small. Linked clones cannot grow their disks, and huge images make the image cache painfully slow. Put data disks in PVCs.
  3. NVMe volumes need a bus number. controllerBusNumber is not optional.
  4. Static beats dynamic for VCF. A private VPC subnet with DHCP and NSX IP allocation turned off gives you full control.
  5. Give the lab its own DNS. dnsmasq with host-record is a few lines and keeps the real lab DNS clean.
  6. Read the validation, then read it again. Every error had a clear fix. The warnings are fine in a lab.
  7. Patience. A full VCF 9.1.1 bring-up with VSP and all management services takes hours on nested hardware.

What’s next

Right now, all of this is a pile of tested manifests and a few API calls. In part 3 it becomes what the series promised from the start: a tile in the VCF Automation self-service catalog that deploys the whole lab with a handful of inputs.

If you are running nested VCF 9.1 on VM Service as well, let me know in the comments how long your bring-up took. I would really like to know if nine hours is normal. 🙂

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *