, ,

How to Set Up an Offline Depot for VCF 9.1 (VCF 9.1 Day-2 Operations Step by Step Guide, Part 4)

A step by step guide to building a VCF 9.1 offline depot, downloading binaries with the VCF Download Tool, and connecting the software depot in offline mode.

VCF 9.1 Day-2 Operations · Part 4 of 20
Task type: OPTIONAL. Run this only when your VCF 9.1 fleet cannot reach the Broadcom depot over the internet. An offline depot gives lifecycle operations a local source for install, upgrade, patch and ESX binaries. Depends on a healthy fleet, a reachable internal web server, and a separate machine with internet access to run the VCF Download Tool.
Before you begin. Confirm the fleet is healthy and backed up before you change any depot setting. Work through the VCF 9.x pre-installation checklist and verify recent backups of VCF Operations and SDDC Manager first.
TL;DR
  • Prerequisites: a Linux or Windows web server, a dedicated disk of 1 TB or more, a static IP, and a machine with internet access for the VCF Download Tool.
  • Offline depot is one of three software depot modes in VCF 9.1: Connected, Offline Depot, and Disconnected.
  • Build the web server with a document root such as /var/www/html and serve it over HTTP, or HTTPS with TLS 1.2 and TLS 1.3.
  • Install the VCF Download Tool, generate a software depot ID, and register it in the VCF Business Services console for an activation code.
  • Download install, upgrade, patch and ESX binaries with the tool, then copy them into the web server document root.
  • In VCF Operations, open Build then Software Depot, select Offline Depot, enter the URL, and finish.

An offline depot lets a VCF 9.1 fleet run lifecycle operations without direct internet access. You host the binaries on an internal web server, point the software depot at that server, and VCF Operations proxies binary requests to it. This part builds that web server, downloads binaries with the VCF Download Tool, and connects the software depot in offline mode. Applying those binaries during an upgrade is owned by Part 2, and patching is owned by Part 3, so this part stops once the depot is connected and binaries are visible.

Plan for two machines. One is the internal web server that the fleet reaches, and the second is a machine with internet access that runs the VCF Download Tool. Both roles can live on one host when that host has internet access and is reachable from the fleet, but most sites keep them apart. For the operating model behind this series, start with Part 1.

BroadcomdepotVCF DownloadTool machineOffline depotweb serverSoftwaredepotVCF fleetHow binaries reach an offline fleet
The tool pulls binaries from Broadcom to the web server, and the software depot proxies them to the fleet.

Prerequisites

ComponentRequirement
Web server OSLinux or Windows VM. Photon OS 5 works well for a small footprint.
StorageA dedicated disk, 1 TB or more, mounted at the document root.
Web serverApache HTTP Server or NGINX. HTTPS needs TLS 1.2 and TLS 1.3 support.
NetworkStatic IP on the web server. DNS records are recommended.
Download machineA separate machine with internet access to run the VCF Download Tool.
EntitlementA VCF Business Services console account able to register a software depot.
Fleet accessA VCF Operations user assigned the Administrator role.

Size the depot disk for growth. A full VCF 9.1 install and upgrade set with ESX images can consume several hundred gigabytes, and each new patch release adds more, so a 1 TB disk gives room for a few releases before you prune. Keep the depot on its own disk so a fill event does not stall the operating system. Plan the network so the fleet reaches the web server on the serving port and the download machine reaches Broadcom, since those two paths are separate and rarely overlap.

Decide early whether to serve HTTP or HTTPS. Plain HTTP with no authentication is valid in VCF 9.1 and removes the certificate work in Step 6, which many internal networks accept because the depot holds signed vendor binaries rather than secrets. HTTPS suits sites with a policy that forbids clear traffic, and it adds a one time certificate import into SDDC Manager. Either choice leads to the same VCF Operations configuration in Step 7.

Step 1, Review the software depot modes and confirm what to build

A software depot instance runs in one of three modes. Confirm the current mode in VCF Operations, then decide whether Offline Depot fits your network.
  1. Log in to VCF Operations at your VCF Operations FQDN with a user assigned the Administrator role.
  2. Select Build, then select Software Depot.
  3. Read the current connection mode shown on the Software Depot page.
  4. Compare the modes below and confirm Offline Depot for a fleet that reaches an internal web server but not the internet.
ModeWhen to use
ConnectedFleet reaches Broadcom directly or through a proxy and downloads binaries itself.
Offline DepotFleet has no internet, but a local web server holds the binaries and the depot proxies requests to it.
DisconnectedNo depot server exists, so you upload binaries into the software depot by hand.
Software depot connection modesConnectedFleet reaches Broadcom directly or through a proxyOffline DepotFleet uses a local web server you fill with the VCF Download ToolDisconnectedNo depot server, so you upload binaries into the software depot
This part builds the middle path, the Offline Depot mode.

Step 2, Build the offline depot web server

Stand up an internal web server with a dedicated disk. Steps below use a Photon OS 5 VM with Apache HTTP Server and the document root /var/www/html.
  1. Deploy the Photon OS 5 OVA on a VM and do not power it on yet.
  2. Add a hard drive of 1 TB or more for depot content.
  3. Power on, then set a static IP in a file under /etc/systemd/network/ and restart the network service.
  4. Set the hostname with hostnamectl to your depot FQDN, for example depot.rainpole.io.
  5. Install the web server and utilities, then reboot.
tdnf install httpd tar jq --assumeyes
tdnf update --assumeyes
reboot
  1. Format the added disk and mount it at /var/www/html, then add it to /etc/fstab.
  2. For HTTPS, create a private key and a CSR with Subject Alternative Names for the depot FQDN and IP, then sign it with your certificate authority or VMCA.
  3. Move the signed key and certificate into /etc/httpd/conf/ and reference them in httpd-ssl.conf.
  4. Open the serving port in the firewall, port 443 for HTTPS or port 80 for HTTP, then restart iptables.
  5. Enable and start the server with systemctl, then verify from a browser at your depot URL.
httpd -t
systemctl enable httpd
systemctl start httpd
VCF 9.1 supports HTTP without authentication, HTTPS without authentication, and HTTPS with basic authentication. Plain HTTP removes the certificate trust step later, which suits many internal networks. If you choose basic authentication, create a password file with htpasswd and note the user name and password, because you enter the same pair in VCF Operations during Step 7. Test the server from a browser before you load any binaries, so a networking or firewall fault surfaces while the tree is still empty and easy to reason about.

Step 3, Install the VCF Download Tool

Download the tool on your internet connected machine. It ships as a tar archive that contains both the VCF Download Tool and the bundle transfer utility. The same offline depot can also feed the VCF Installer during a build, covered in the installer appliance deployment part.
  1. Log in to the Broadcom Support Portal and browse to My Downloads, then VMware Cloud Foundation.
  2. Click the 9.1 version to which you are moving.
  3. Click Drivers & Tools.
  4. Click the download icon for the VCF Download Tool.
  5. Copy the archive to the download machine and extract it.
tar -xzf vcf-download-tool-9.1.0.0.<build>.tar.gz
  1. Change to vcf-download-tool-<version.build>/bin/ and confirm you have execute permission on the folders.
Inside the bin folder you find lcm-bundle-transfer-util and vcf-download-tool.

Step 4, Register the depot and get an activation code

VCF 9.1 uses an activation code to authorize downloads. Generate a software depot ID with the tool, then register it in the VCF Business Services console. A download token still works for install and upgrade binaries, but ESX downloads require an activation code.
  1. Generate a software depot ID on the download machine.
vcf-download-tool configuration generate --software-depot-id
  1. Log in to the VCF Business Services console at vcf.broadcom.com.
  2. Next to the tenant name, click the arrow to expand the section.
  3. Select the tenant name and site ID that map to your VCF or vSphere Foundation entitlement.
  4. Navigate to Software Depot Registrations, then click New Registration.
  5. Enter the software depot ID to obtain an activation code, then save it to a file such as /path/to/activation-code.txt.

Step 5, Download binaries and ESX data

List the binaries first, then download install, upgrade and ESX content into a single depot store folder. Use –sku VCF for Cloud Foundation, or replace it with –sku VVF for vSphere Foundation.
  1. List the install binaries for your version.
./vcf-download-tool binaries list --sku VCF --vcf-version 9.1.0 --depot-download-activation-code-file /path/to/activation-code.txt --type INSTALL --automated-install
  1. Download the install binaries into your depot store.
./vcf-download-tool binaries download --sku VCF --vcf-version 9.1.0 --depot-download-activation-code-file /path/to/activation-code.txt --type INSTALL --automated-install --depot-store /var/www/html
  1. Download the upgrade binaries into the same folder.
./vcf-download-tool binaries download --sku VCF --vcf-version 9.1.0 --depot-download-activation-code-file /path/to/activation-code.txt --type UPGRADE --depot-store /var/www/html
  1. Download the ESX binaries and metadata, then watch progress in ./logs/esximage.log.
./vcf-download-tool esx download --depot-download-activation-code-file /path/to/activation-code.txt --depot-store /var/www/html
  1. Reduce ESX size by disabling versions you do not need with esx configuration.
./vcf-download-tool esx configuration -D embeddedEsx-6.7-INTL
When the download machine reaches the internet through a proxy, add –proxy-server with an FQDN and port, for example –proxy-server proxy.example.com:3128. VCF does not support proxies that use Kerberos or NTLMv2 authentication.

Step 6, Move binaries and trust the certificate

If the tool ran on a separate machine, copy the depot store to the web server document root. For an HTTPS depot, import the web server certificate into the SDDC Manager trust store so the depot connection validates.
  1. Copy the depot store content into the web server document root, then set ownership and read permission for the web server user.
  2. SSH to SDDC Manager and log in as the vcf user, then change to root with su.
  3. Download the depot certificate to a file.
openssl s_client -connect depot.rainpole.io:443 < /dev/null | sed -ne '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > /tmp/server.crt
  1. Import the certificate into the cacerts store with keytool.
keytool -import -trustcacerts -file /tmp/server.crt -keystore /etc/alternatives/jre/lib/security/cacerts -alias offline_depot_server -storepass changeit -noprompt
  1. Restart the lifecycle manager service so the new trust takes effect.
systemctl restart lcm
Skip this whole step when the web server serves plain HTTP, since there is no certificate to trust.

Step 7, Connect the software depot in offline mode

Point the software depot at your web server from the VCF Operations UI. After a fleet upgrade from 9.0.x, this configuration also transfers automatically from the VCF Installer, so a fresh setup is only needed on older fleets or a rebuild.
  1. Log in to VCF Operations with a user assigned the Administrator role.
  2. Select Build, then select Software Depot.
  3. Click Edit.
  4. Select Offline Depot, then click Next.
  5. Enter the URL for the offline depot web server.
  6. If the depot needs credentials, toggle Authenticate on and enter the user name and password.
  7. Click Finish.
  8. To confirm content, select Build, then Lifecycle, select a VCF Instance, then open Binary Management and Upgrade Binaries.
Once the depot connects, the fleet reads binaries from your web server for every lifecycle action, and no component reaches the internet. VCF Operations owns this depot at the fleet level, while SDDC Manager continues to run domain operations such as adding hosts and clusters. If you plan an immediate upgrade, move on to Part 2 next, which consumes the binaries you just staged.

Verification

Confirm the depot is connected and the binaries are visible before you hand the fleet to an upgrade or patch run.
  1. On the Software Depot page, the mode reads Offline Depot and the connection status shows success.
  2. Under Binary Management and Upgrade Binaries, the versions you downloaded appear for the selected VCF Instance.
  3. From a browser, your depot URL lists a PROD folder tree with COMP and metadata content.
  4. On the download machine, esximage.log records finished ESX downloads with no errors.
Treat the depot as an asset you refresh over time, not a one time task. When a new express patch or async patch ships, rerun the VCF Download Tool against the same depot store to pull the added binaries, then let the software depot pick them up. Applying those patches to the fleet stays with Part 3, so this part ends once new content is visible under Binary Management. Keep an eye on free space on the depot disk and remove versions you no longer run from the web server tree when a release ages out.

Common errors and fixes

SymptomCauseFix
Invalid credentials when saving depot settingsWeb server certificate not trusted by SDDC ManagerImport the certificate into the cacerts store and restart lcm, as in Step 6.
Activation code rejectedWrong tenant or site ID chosen in the Business Services consoleRegenerate the software depot ID and register under the correct tenant and site ID.
Binaries not listed after connectingFiles outside the document root or wrong permissionsCopy binaries into the document root and grant read access to the web server user.
ESX download very large or slowAll ESX platforms enabledDisable unused platforms with esx configuration -D or edit esxUserConfig.json.
Proxy authentication failsProxy uses Kerberos or NTLMv2Use a proxy without Kerberos or NTLMv2, which VCF does not support.

Common questions

Support for plain HTTP. VCF 9.1 accepts an HTTP offline depot with no authentication, which removes the certificate trust step. Many internal networks use this to keep setup simple.

One depot for several versions. Point the tool at the same depot store folder for each version, and it keeps them together under one tree. A single web server can serve 9.1 alongside earlier releases.

Difference from disconnected mode. Offline Depot proxies requests to your web server and never stores binaries locally, while Disconnected mode has you upload binaries into the software depot itself.

Reducing ESX download size. List the ESX platforms with esx configuration and disable the ones you do not run, or set disabledPlatforms in esxUserConfig.json before you download.

References

VCF 9.1 Day-2 Operations · Part 4 of 20
« Previous: Part 3  |  Complete Guide  |  Next: Part 5 »

About The Author


Discover more from Journal of Intelligent Infrastructure

Subscribe to get the latest posts sent to your email.

Leave a Reply

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

Architect’s Toolkit

About the Author

Dr. Pranay Jha is a Cloud and AI Consultant with 18+ years of experience in hybrid cloud, virtualization, and enterprise infrastructure transformation. He specializes in VMware technologies, multi-cloud strategy, and Generative AI solutions. He holds a PhD in Computer Applications with research focused on Cloud and AI, has published multiple research papers, and has been a VMware vExpert since 2016 and a VMUG Community Leader.

Discover more from Journal of Intelligent Infrastructure

Subscribe now to keep reading and get access to the full archive.

Continue reading