Part#1: Deploying an Offline Depot for VMware Cloud Foundation 9 for Lab
Deploying an Offline Depot for VMware Cloud Foundation 9 for Lab
Air‑gapped and bandwidth‑constrained environments need a local source of VCF binaries and metadata. In VCF 9, the Offline Depot lets you host (install + upgrade) required binaries for the VCF Installer (bootstrap) and for post‑deployment SDDC Manager/VCF Operations—using a simple HTTP/HTTPS server and a defined directory structure.
Deployment methods in VCF9
VMware Cloud Foundation deployments rely on two methods to transfer binaries in the VCF installer one is online depot and other is offline depot.
Online depot:
It is one of the simplest methods where you configure online deport using Broadcom download token, Installer fetches VCF binaries, metadata and compatibility catalogs directly from portal which requires continuous internet access.
Offline Depot:
1. Download ova files from Broadcom portal.
2. A Web server is required
3. Directory structure in which files are placed to fetch the binaries by SDDC Manager.
To begin building the offline depot, start by downloading the Photon OS OVA from the official VMware repository at GitHub.
Photon OS download link can be found below:
https://packages.vmware.com/photon/5.0/GA/ova/photon-hw15-5.0-dde71ec57.x86_64.ova
Deploy the photon OS OVA into vCenter and add a secondary virtual disk of at least 500 GB which is required for all VCF binaries and metadata. Next, obtain the latest VMware Cloud Foundation Download Tool from the Broadcom Support Portal. Once downloaded, upload it to the Photon OS server you just deployed.
Offline Depot Hierarchy
When using VMware Cloud Foundation (VCF) in a fully offline or air-gapped environment, one of the most important components is the offline product depot hierarchy. This structure mirrors VMware’s online depot, but it resides entirely inside your internal network — typically on an HTTP or NFS server.
Download offline metadata from broadcom portal, it will create the initial hierarchy
Below is the directory layout captured from the offline depot server, showing the top-level product folders under /var/www/html/PROD/COMP/. When LCM queries the offline depot, it looks for
Bundle files (ZIP/TAR/GZ)
Manifests that describe bundle content
CompatibilityData.json files
Version catalogs
Metadata directories
/var/www/html/PROD/COMP/:
NSX_T_MANAGER
SDDC_MANAGER_VCF
VCENTER
VCF_OPS_CLOUD_PROXY
VRA
VROPS
VRSLCM
Configure an HTTP web server:
To create a web server on the deployed photon OS.
1. I created a file in the root folder so that web server can be run using the python script put the name of file as script.py where the script will be pasted.
2. Then changed the file attributes to execute the script using the command
chmod +x script.py
3. The script was
taken from William Lam’s blog, so special thanks to him.
4. After copying the script to script.py file, i saved the file and then ran the script using the command below.
python script.py --bind 192.168.1.99 --user vcf --password VMware123! --port 8090 --directory /var/www/html/
After performing the above mentioned steps, receive the error below.
1. Go to lcm.depot.adapter.host and set your hostname to 192.168.1.99.
2. Go to lcm.depot.adapter.enableBundleSignatureValidation and change from TRUE to FALSE
3. Go to lcm.depot.adapter.certificateCheckEnable and change from TRUE to FALSE
4. Go to lcm.depot.bundleElementpatchfile.checksumValidation and change from TRUE to FALSE
service restart lcm
After changing these setting i tried to connect again and it got successful.
Comments
Post a Comment