VMware Cloud Foundation 環境中,軟體包倉庫的來源支援兩種方式,分別是 Online Depot 和 Offline Depot。第一種方式,是在 VCF 環境能夠連線網際網路的情況下,僅需要配置賬號密碼後,就可以直接從 VMware 官方線上儲存庫獲取軟體包;第二種方式,是在 VCF 環境不能連線網際網路的情況下,透過在本地搭建一個 Web 伺服器並搭配 Offline Bundle Transfer Utility(OBTU)工具來作為 VCF 環境的離線/離線儲存庫。
線上倉庫的方式固然非常方便,但是,往往很多環境因為各種原因無法連線網際網路,這時候就只能使用離線倉庫了。VMware 針對 VCF 環境推出了一種配置離線倉庫的方式,這在很大程度上能為客戶提供便利性,特別是環境中具有多個 VCF 例項的場景。你只需在本地找一臺能夠連線網際網路的 Linux 伺服器並配置為 Web 伺服器,然後使用 Offline Bundle Transfer Utility(OBTU)工具將 VCF 相關軟體包下載到這個伺服器內,最後再到 SDDC Manager 中配置離線庫後,就能實現與線上倉庫一樣的效果。說到這裡,你是不是會發現這跟 vSphere 環境中 Update Manager Download Service(UMDS) 的使用方式非常相似?!
當然,上面這種 OBTU + Web 伺服器來作為 VCF 的離線庫只是一種使用方式,你依然可以透過以下方式去手動下載離線軟體包,然後再手動上傳至 SDDC Manager,來完成元件的生命週期管理。不過這還是比較麻煩,所以,下面我將演示如何去準備一個 OBTU 伺服器來配置作為 VCF 環境的離線庫。
- Offline Download of VMware Cloud Foundation 5.2.x Upgrade Bundles
- Offline Download of Async Patch Bundles
- Offline Download of Flexible BOM Upgrade Bundles
- Offline Download of Independent SDDC Manager Bundles
本文以下內容參考 VMware 官方產品文件《VMware Cloud Foundation Lifecycle Management》、知識庫文章(KB 312168)以及相關部落格文章(VMware Cloud Foundation Offline Depot Introduction)。
一、準備 OBTU 伺服器
此次環境準備了一臺基於 CentOS 發行版的 OBTU 伺服器用於作為 VCF 環境的離線儲存庫。
[root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@localhost ~]#
[root@localhost ~]# uname -a
Linux localhost 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#
配置主機名、Hosts 檔案,將 Selinux 和 Firewalld 防火牆關閉。
[root@localhost ~]# hostnamectl set-hostname vcf-obtu
[root@localhost ~]#
[root@localhost ~]# bash
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.32.56 vcf-obtu.mulab.local
[root@vcf-obtu ~]# vim /etc/selinux/config
[root@vcf-obtu ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@vcf-obtu ~]# systemctl stop firewalld
[root@vcf-obtu ~]# systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@vcf-obtu ~]# systemctl disable firewalld
請確保準備足夠的空間(/obtu)用於存放 VCF 軟體包,本次環境中新增加了一塊硬碟。
[root@vcf-obtu ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs tmpfs 3.9G 8.9M 3.9G 1% /run
tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/centos-root xfs 14G 2.6G 11G 20% /
/dev/sdb1 ext4 493G 73M 467G 1% /obtu
/dev/sda1 xfs 1014M 150M 865M 15% /boot
tmpfs tmpfs 783M 0 783M 0% /run/user/0
[root@vcf-obtu ~]#
二、安裝 Apache 伺服器
使用 YUM 安裝 Apache 伺服器,注意需要同時安裝 mod_ssl
模組。
[root@vcf-obtu ~]# yum install -y httpd mod_ssl jq
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-99.el7.centos.1 will be installed
---> Package jq.x86_64 0:1.6-2.el7 will be installed
---> Package mod_ssl.x86_64 1:2.4.6-99.el7.centos.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================
Package Arch Version Repository Size
============================================================================================================================
Installing:
httpd x86_64 2.4.6-99.el7.centos.1 updates 2.7 M
jq x86_64 1.6-2.el7 epel 167 k
mod_ssl x86_64 1:2.4.6-99.el7.centos.1 updates 116 k
Transaction Summary
============================================================================================================================
Install 3 Packages
Total download size: 3.0 M
Installed size: 10 M
Downloading packages:
(1/3): httpd-2.4.6-99.el7.centos.1.x86_64.rpm | 2.7 MB 00:00:00
(2/3): jq-1.6-2.el7.x86_64.rpm | 167 kB 00:00:00
(3/3): mod_ssl-2.4.6-99.el7.centos.1.x86_64.rpm | 116 kB 00:00:00
----------------------------------------------------------------------------------------------------------------------------
Total 6.1 MB/s | 3.0 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : httpd-2.4.6-99.el7.centos.1.x86_64 1/3
Installing : 1:mod_ssl-2.4.6-99.el7.centos.1.x86_64 2/3
Installing : jq-1.6-2.el7.x86_64 3/3
Verifying : httpd-2.4.6-99.el7.centos.1.x86_64 1/3
Verifying : jq-1.6-2.el7.x86_64 2/3
Verifying : 1:mod_ssl-2.4.6-99.el7.centos.1.x86_64 3/3
Installed:
httpd.x86_64 0:2.4.6-99.el7.centos.1 jq.x86_64 0:1.6-2.el7 mod_ssl.x86_64 1:2.4.6-99.el7.centos.1
Complete!
[root@vcf-obtu ~]#
啟動 Apache 服務並加入開機自啟動。
[root@vcf-obtu ~]# systemctl start httpd
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2024-10-24 18:36:01 CST; 10s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 1903 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─1903 /usr/sbin/httpd -DFOREGROUND
├─1904 /usr/sbin/httpd -DFOREGROUND
├─1905 /usr/sbin/httpd -DFOREGROUND
├─1906 /usr/sbin/httpd -DFOREGROUND
├─1907 /usr/sbin/httpd -DFOREGROUND
└─1908 /usr/sbin/httpd -DFOREGROUND
Oct 24 18:36:01 vcf-obtu.mulab.local systemd[1]: Starting The Apache HTTP Server...
Oct 24 18:36:01 vcf-obtu.mulab.local systemd[1]: Started The Apache HTTP Server.
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@vcf-obtu ~]#
三、配置 Apache 伺服器
建立用於向 Web 伺服器進行身份驗證的使用者,使用者名稱是depot
,密碼是vmware
。生成 OBTU 伺服器的 SSL 自簽名證書。
[root@vcf-obtu ~]# htpasswd -b -c /etc/httpd/.htpasswd depot vmware
Adding password for user depot
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
> -subj "/CN=vcf-obtu.mulab.local" \
> -keyout /etc/pki/tls/private/offline_depot.key \
> -out /etc/pki/tls/certs/offline_depot.crt
Generating a 2048 bit RSA private key
......+++
.............+++
writing new private key to '/etc/pki/tls/private/offline_depot.key'
-----
[root@vcf-obtu ~]#
建立自定義網站目錄,新建一個 Web 配置檔案,內容如下所示。然後,測試 Apache 配置檔案的正確性並重新啟動 Apache 服務。
[root@vcf-obtu ~]# mkdir -p /obtu/www/offline_depot
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# chown $USER:$USER /obtu/www/offline_depot
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# vim /etc/httpd/conf.d/offline_depot_httpd.conf
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# cat /etc/httpd/conf.d/offline_depot_httpd.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName vcf-obtu.mulab.local
DocumentRoot /obtu/www/offline_depot
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/offline_depot.crt
SSLCertificateKeyFile /etc/pki/tls/private/offline_depot.key
<Directory /obtu/www/offline_depot/>
AuthType Basic
AuthName “depot”
AuthUserFile /etc/httpd/.htpasswd
Require valid-user
</Directory>
Alias /products/v1/bundles/lastupdatedtime /obtu/www/offline_depot/PROD2/vsan/hcl/lastupdatedtime.json
Alias /products/v1/bundles/all /obtu/www/offline_depot/PROD2/vsan/hcl/all.json
Alias /Compatibility/VxrailCompatibilityData.json /obtu/www/offline_depot/PROD2/evo/vmw/Compatibility/VxrailCompatibilityData.json
</VirtualHost>
</IfModule>
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# apachectl configtest
Syntax OK
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# systemctl reload httpd
[root@vcf-obtu ~]#
現在,在網站目錄中建立一個 html 測試網頁,使用 curl 命令並配合使用者名稱和密碼認證來測試 OBTU 伺服器的連線狀態是否正常。你也可以直接透過瀏覽器訪問,然後輸入使用者名稱和密碼來測試看是否正常。
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# echo "Offline Depot OK" > /obtu/www/offline_depot/index.html
[root@vcf-obtu ~]#
[root@vcf-obtu ~]# curl https://vcf-obtu.mulab.local -k --silent -u depot:vmware
Offline Depot OK
[root@vcf-obtu ~]#
由於 OBTU 伺服器使用了自簽名 SSL 證書,所以需要將其新增到 SDDC Manager 的受信任證書。使用以下命令獲取 OBTU 伺服器的證書。
[root@vcf-obtu ~]# echo '{ "certificate" : '$(jq -sR . /etc/pki/tls/certs/offline_depot.crt)',
"certificateUsageType" : "TRUSTED_FOR_OUTBOUND" }'
{ "certificate" : "-----BEGIN CERTIFICATE-----\nMIIDETCCAfmgAwIBAgIJAJOqS5hXP2lbMA0GCSqGSIb3DQEBCwUAMB8xHTAbBgNV\nBAMMFHZjZi1vYnR1Lm11bGFiLmxvY2FsMB4XDTI0MTAyNDEwNTUzMFoXDTI1MTAy\nNDEwNTUzMFowHzEdMBsGA1UEAwwUdmNmLW9idHUubXVsYWIubG9jYWwwggEiMA0G\nCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVDi8aICqq//qp0mBgX3bW7K6v3xnL\n2ZZBkhLOyuiYjK3b18mFPQj7T9G0whygz0WUKg1TPUkykhJ1OfRcEjFZkLP+LkLj\n0Z1in6xby2DQiJ5LlTTFhQIRv1w8++E4syR40+lszglWBVe54EtCBSUmZhc4LyZy\nEHt040S5+pPIl/QqaERHN44Kw7/bWr/iC2bAp/Oszhpv3kcTx2/qmnAEoTaZNqP0\n24/xV3f4d1xmRe8pHR1UCLybj0xKVzEALMAp/6FXaFHas71eB2gYyQFiQ0FTaJl6\nG7XpUmHdnfEFRKHdGqoXKraB7aRDKh3RcpKJk/fs4ZKpeHeBvZ85xa3XAgMBAAGj\nUDBOMB0GA1UdDgQWBBSgS5Pvan0sHT9qB7MIzXhPZA5FgjAfBgNVHSMEGDAWgBSg\nS5Pvan0sHT9qB7MIzXhPZA5FgjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUA\nA4IBAQAls3oBsAqKDB/bo54d9u7GWT97UNeN7Rbt0LvxFPQXM0qMfCVuTjEscPXF\nwPup6XKUXEvjmRyPlU2oJAMs4muoYWPuzHsGP3KAyi8ndUR4EyyQL7o/QxrpLqzG\nP8hnoHsiPxbZ7bnY1BQMs7nBAM230LrkjnNP84Hu183qauNIL31nWm3pPrJLERC5\npCP22azuTIgkeQvdmd59Aa/vHWaKVoUuSZrDxr/7Hj+z4J7FtZfqMS3vA9YV1A8M\njjYDIAQZyhqO9aM5Vw2aZHD3eihgw2zdHiW5ySWsNuYuPHtFraVQ3+xlk90afc2E\n0DavEodrcgZDBLUgnR3cU7BjJv1E\n-----END CERTIFICATE-----\n",
"certificateUsageType" : "TRUSTED_FOR_OUTBOUND"
}
[root@vcf-obtu ~]#
登陸 SDDC Manager UI,導航到開發人員中心,然後使用 v1/sddc-manager/trusted-certifcates
上傳生成的受信任證書。
四、下載 VCF 軟體包
完成 Web 伺服器的相關配置後,現在需要下載 VCF 環境所使用的軟體包。透過 Broadcom 支援門戶下載最新的 OBTU 工具包(lcm-tools-prod.tar.gz),然後上傳到 OBTU 伺服器並解壓,可以透過 --help
選項檢視 OBTU 工具的使用幫助。
[root@vcf-obtu ~]# mkdir -p /opt/obtu
[root@vcf-obtu ~]# chmod 755 /opt/obtu/
[root@vcf-obtu ~]# chown $USER:$USER /opt/obtu/
[root@vcf-obtu ~]# ls lcm*
lcm-tools-prod.tar.gz
[root@vcf-obtu ~]# tar -xf lcm-tools-prod.tar.gz --directory=/opt/obtu/
[root@vcf-obtu ~]# chmod +x /opt/obtu/bin/lcm-bundle-transfer-util
[root@vcf-obtu ~]# cd /opt/obtu/bin/
[root@vcf-obtu bin]# ls -l
total 36
-rwxr-x--x 1 201 201 8761 Jan 1 2000 lcm-bundle-transfer-util
-rw-r----- 1 201 201 7422 Jan 1 2000 lcm-bundle-transfer-util.bat
-rw-r----- 1 201 201 5853 Jan 1 2000 vcf-async-patch-tool
-rw-r----- 1 201 201 4381 Jan 1 2000 vcf-async-patch-tool.bat
[root@vcf-obtu bin]# ./lcm-bundle-transfer-util --help
將 Broadcom 支援門戶的密碼(BSP-PASSWORD)輸入到一個文字檔案內,然後使用以下命令執行 VCF 軟體包的下載過程。注,BSP-USER
是 Broadcom 支援門戶的賬號,--sourceVersion
是當前 VCF 環境的版本,OBTU 會根據當前版本自動去檢測可用的更新版本(比如 5.2.1.0)並執行下載。訪問 KB 96099 瞭解 VCF 軟體包的更多資訊。
[root@vcf-obtu bin]# echo "BSP-PASSWORD" > ~/BSP-PASSWORD.txt
[root@vcf-obtu bin]#
[root@vcf-obtu bin]# ./lcm-bundle-transfer-util --setUpOfflineDepot \
> --offlineDepotRootDir /obtu/www/offline_depot \
> --offlineDepotUrl https://vcf-obtu.mulab.local \
> --depotUser BSP-USER \
> --depotUserPasswordFile ~/BSP-PASSWORD.txt \
> --sourceVersion 5.2.0.0
*********Welcome to OBTU tool***********
Make sure to download the most recent metadata files and upload them to the SDDC Manager appliance before
downloading bundles. If you do not have the most recent metadata files, the metadata for most recent upgrades will be
missing and will impact the upgrades. The following metadata files are required: LCM manifest and VMware compatibility
data (For 5.0 or upgrade to 5.0), vSAN HCL data (For 5.1 or upgrade to 5.1). VxRail requires these additional metadata files:
VxRail compatibility data (For 5.0 or upgrade to 5.0) and partner bundle manifest (PBM).
https://docs.vmware.com/en/VMware-Cloud-Foundation/5.0/context?id=vcf_451\n
OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=warn; support was removed in 17.0
Setting up the offline depot
Print warnings
----------------------------------------------------------------------------------------------------
WARNING
* Have you configured TCP keepalive in your SSH client to prevent socket connection timeouts when
using the Bundle Transfer Tool for long-running operations?
----------------------------------------------------------------------------------------------------
Validate passwords
Validate the password for VMware depot
Validating the depot user credentials...
Download HCL file
Downloading vSAN HCL attributes to path: /obtu/www/offline_depot/PROD2/vsan/hcl/lastupdatedtime.json
Downloading the vSAN HCL file to path: /obtu/www/offline_depot/PROD2/vsan/hcl/all.json
Successfully completed downloading vSAN HCL file
Download VVS data
User has not set the path using the default path
Directory to download data is existing or created at path /obtu/www/offline_depot/PROD2/evo/vmw/
Download VMware compatibility matrix to directory /obtu/www/offline_depot/PROD2/evo/vmw/Compatibility/VmwareCompatibilityData.json
2024-10-29T13:47:59.122+08:00 INFO --- [ main] c.v.v.c.c.i.v.rest.client.VvsApiClient : vvs uri with query params: https://vvs.esp.vmware.com/v1/products/bundles/type/vcf-lcm-v2-bundle?format=json
vvs uri with query params: https://vvs.esp.vmware.com/v1/products/bundles/type/vcf-lcm-v2-bundle?format=json
Successfully downloaded VMWARE_COMPAT compatibility data to file /obtu/www/offline_depot/PROD2/evo/vmw/Compatibility/VmwareCompatibilityData.json
Compatibility metadata has been downloaded, to upload to SDDC Manager use this path as input: /obtu/www/offline_depot/PROD2/evo/vmw/
Modified file permissions to 777 on the file: /obtu/www/offline_depot/PROD2/evo/vmw
Creating delta file
Downloading LCM Manifest to: /obtu/www/offline_depot/PROD2/evo/vmw
Successfully completed downloading file
Default manifest file found, attempting to read into manifest object.
Copping /obtu/www/offline_depot/PROD2/evo/vmw/tmp/index.v3 to /obtu/www/offline_depot/PROD2/evo/vmw/index.v3
List of applicable bundles:
-------------------------------------------------------------------------------------------------------------------------------------------------
Bundle | Product Version | Bundle Size | Bundle Component | Bundle Type
-------------------------------------------------------------------------------------------------------------------------------------------------
bundle-133762 | 5.2.1.0 | 606.4 MB | ESX_HOST-8.0.3-24280767 | PATCH
bundle-133763 | 5.2.1.0 | 8895.2 MB | NSX_T_MANAGER-4.2.1.0.0-24304122 | PATCH
bundle-133760 | 5.2.1.0 | 2364.8 MB | SDDC_MANAGER_VCF-5.2.1.0-24307856 | PATCH
bundle-133761 | 5.2.1.0 | 0.0 MB | SDDC_MANAGER_VCF-5.2.1.0-24307856 | PATCH (Drift)
bundle-133765 | 5.2.1.0 | 18817.0 MB | VCENTER-8.0.3.00300-24305161 | PATCH
bundle-130870 | 5.2.1.0 | 4238.5 MB | NSX_ALB-22.1.7-24190832 | INSTALL
bundle-133764 | 5.2.1.0 | 11636.7 MB | NSX_T_MANAGER-4.2.1.0.0-24304122 | INSTALL
bundle-133766 | 5.2.1.0 | 11832.3 MB | VCENTER-8.0.3.00300-24305161 | INSTALL
-------------------------------------------------------------------------------------------------------------------------------------------------
Created delta file
Total applicable bundles: 8
Starting downloading bundles...
Checking for sufficient disk space before downloading bundles
Available disk space on download directory: /obtu/www/offline_depot/PROD2/evo/vmw is 503734.8 MB
Required disk space to download the bundles is 78231.9 MB
Downloading bundle: bundle-133762.
Downloading bundle: bundle-130870.
Downloading bundle: bundle-133763.
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-130870.manifest
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133762.manifest
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133763.manifest
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-130870.manifest.sig
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133762.manifest.sig
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133763.manifest.sig
Download Progress of bundle tar : bundle-133762.tar : 0.1 MB, Average Speed: 1.01 Mbps, Total Size: : 606.4 MB
Download Progress of bundle tar : bundle-130870.tar : 0.2 MB, Average Speed: 0.63 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-133763.tar : 0.0 MB, Average Speed: 0.30 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133762.tar : 28.0 MB, Average Speed: 13.03 Mbps, Total Size: : 606.4 MB
Download Progress of bundle tar : bundle-130870.tar : 31.3 MB, Average Speed: 13.88 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-133763.tar : 25.3 MB, Average Speed: 11.91 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-130870.tar : 96.0 MB, Average Speed: 15.17 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-133762.tar : 92.3 MB, Average Speed: 14.74 Mbps, Total Size: : 606.4 MB
Download Progress of bundle tar : bundle-133763.tar : 75.4 MB, Average Speed: 12.29 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133762.tar : 185.3 MB, Average Speed: 12.97 Mbps, Total Size: : 606.4 MB
Download Progress of bundle tar : bundle-133763.tar : 147.9 MB, Average Speed: 10.46 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-130870.tar : 200.0 MB, Average Speed: 13.88 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-130870.tar : 352.9 MB, Average Speed: 11.59 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-133762.tar : 271.9 MB, Average Speed: 8.92 Mbps, Total Size: : 606.4 MB
Download Progress of bundle tar : bundle-133763.tar : 246.8 MB, Average Speed: 8.11 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-130870.tar : 789.4 MB, Average Speed: 12.64 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-133762.tar : 539.2 MB, Average Speed: 8.61 Mbps, Total Size: : 606.4 MB
Download Progress of bundle tar : bundle-133763.tar : 542.7 MB, Average Speed: 8.68 Mbps, Total Size: : 8895.2 MB
Bundle bundle-133762. checksum validation successful
Successfully downloaded bundle: bundle-133762.
Completed downloading:1 of total:8
Downloading bundle: bundle-133764.
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133764.manifest
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133764.manifest.sig
Download Progress of bundle tar : bundle-133764.tar : 0.0 MB, Average Speed: 0.30 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133764.tar : 24.1 MB, Average Speed: 10.54 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133764.tar : 78.7 MB, Average Speed: 12.52 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133764.tar : 202.3 MB, Average Speed: 14.12 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133764.tar : 440.4 MB, Average Speed: 14.49 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-130870.tar : 1804.4 MB, Average Speed: 14.73 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-133763.tar : 1413.1 MB, Average Speed: 11.53 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133764.tar : 860.0 MB, Average Speed: 13.78 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-130870.tar : 2708.9 MB, Average Speed: 14.85 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-133763.tar : 2370.4 MB, Average Speed: 12.98 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133764.tar : 1687.3 MB, Average Speed: 13.78 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-130870.tar : 3587.8 MB, Average Speed: 14.80 Mbps, Total Size: : 4238.5 MB
Download Progress of bundle tar : bundle-133763.tar : 3268.9 MB, Average Speed: 13.47 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133764.tar : 2558.2 MB, Average Speed: 14.02 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133763.tar : 4242.8 MB, Average Speed: 14.01 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133764.tar : 3454.6 MB, Average Speed: 14.25 Mbps, Total Size: : 11636.7 MB
Bundle bundle-130870. checksum validation successful
Successfully downloaded bundle: bundle-130870.
Completed downloading:2 of total:8
Downloading bundle: bundle-133760.
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133760.manifest
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133760.manifest.sig
Download Progress of bundle tar : bundle-133760.tar : 0.0 MB, Average Speed: 0.00 Mbps, Total Size: : 2364.8 MB
Download Progress of bundle tar : bundle-133760.tar : 15.9 MB, Average Speed: 7.66 Mbps, Total Size: : 2364.8 MB
Download Progress of bundle tar : bundle-133760.tar : 76.1 MB, Average Speed: 12.22 Mbps, Total Size: : 2364.8 MB
Download Progress of bundle tar : bundle-133760.tar : 173.6 MB, Average Speed: 12.20 Mbps, Total Size: : 2364.8 MB
Download Progress of bundle tar : bundle-133760.tar : 404.7 MB, Average Speed: 13.36 Mbps, Total Size: : 2364.8 MB
Download Progress of bundle tar : bundle-133763.tar : 5058.0 MB, Average Speed: 13.94 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133764.tar : 4270.7 MB, Average Speed: 14.12 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133760.tar : 875.0 MB, Average Speed: 14.04 Mbps, Total Size: : 2364.8 MB
Download Progress of bundle tar : bundle-133763.tar : 5990.9 MB, Average Speed: 14.16 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133764.tar : 5109.3 MB, Average Speed: 14.09 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133760.tar : 1754.4 MB, Average Speed: 14.34 Mbps, Total Size: : 2364.8 MB
Download Progress of bundle tar : bundle-133763.tar : 6931.3 MB, Average Speed: 14.35 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133764.tar : 5963.6 MB, Average Speed: 14.11 Mbps, Total Size: : 11636.7 MB
Bundle bundle-133760. checksum validation successful
Successfully downloaded bundle: bundle-133760.
Completed downloading:3 of total:8
Downloading bundle: bundle-133761.
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133761.manifest
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133761.manifest.sig
Download Progress of bundle tar : bundle-133761.tar : 0.0 MB, Average Speed: 0.73 Mbps, Total Size: : 0.0 MB
Bundle bundle-133761. checksum validation successful
Successfully downloaded bundle: bundle-133761.
Completed downloading:4 of total:8
Downloading bundle: bundle-133765.
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133765.manifest
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133765.manifest.sig
Download Progress of bundle tar : bundle-133765.tar : 0.0 MB, Average Speed: 0.00 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 1.2 MB, Average Speed: 0.61 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 21.3 MB, Average Speed: 3.41 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133763.tar : 7993.1 MB, Average Speed: 14.71 Mbps, Total Size: : 8895.2 MB
Download Progress of bundle tar : bundle-133765.tar : 61.2 MB, Average Speed: 4.29 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133764.tar : 6899.8 MB, Average Speed: 14.30 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133765.tar : 163.7 MB, Average Speed: 5.41 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 405.1 MB, Average Speed: 6.50 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133764.tar : 8036.1 MB, Average Speed: 14.80 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133765.tar : 1105.1 MB, Average Speed: 9.03 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133764.tar : 9371.9 MB, Average Speed: 15.55 Mbps, Total Size: : 11636.7 MB
Bundle bundle-133763. checksum validation successful
Successfully downloaded bundle: bundle-133763.
Completed downloading:5 of total:8
Downloading bundle: bundle-133766.
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133766.manifest
Deleted the temp dir Manifest File /obtu/www/offline_depot/PROD2/evo/vmw/tmp/manifests/bundle-133766.manifest.sig
Download Progress of bundle tar : bundle-133766.tar : 0.0 MB, Average Speed: 0.00 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133766.tar : 1.1 MB, Average Speed: 0.52 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133766.tar : 13.8 MB, Average Speed: 2.26 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133766.tar : 42.7 MB, Average Speed: 2.97 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 1593.1 MB, Average Speed: 8.73 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 117.2 MB, Average Speed: 3.84 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133764.tar : 10309.0 MB, Average Speed: 15.55 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133766.tar : 372.5 MB, Average Speed: 5.96 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 2166.9 MB, Average Speed: 8.94 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133764.tar : 11591.9 MB, Average Speed: 16.03 Mbps, Total Size: : 11636.7 MB
Download Progress of bundle tar : bundle-133766.tar : 1031.6 MB, Average Speed: 8.42 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 2858.3 MB, Average Speed: 9.45 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 1724.6 MB, Average Speed: 9.45 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 3561.3 MB, Average Speed: 9.83 Mbps, Total Size: : 18817.0 MB
Bundle bundle-133764. checksum validation successful
Successfully downloaded bundle: bundle-133764.
Completed downloading:6 of total:8
Download Progress of bundle tar : bundle-133766.tar : 2419.9 MB, Average Speed: 9.98 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 4269.3 MB, Average Speed: 10.11 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 3106.3 MB, Average Speed: 10.27 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 4887.9 MB, Average Speed: 10.13 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 3768.0 MB, Average Speed: 10.39 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 5576.8 MB, Average Speed: 10.28 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 4469.1 MB, Average Speed: 10.58 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 6270.1 MB, Average Speed: 10.41 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 5162.3 MB, Average Speed: 10.70 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 6985.8 MB, Average Speed: 10.55 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 5856.8 MB, Average Speed: 10.79 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 7682.6 MB, Average Speed: 10.63 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 6552.3 MB, Average Speed: 10.87 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 8381.2 MB, Average Speed: 10.71 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 7242.4 MB, Average Speed: 10.93 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 9086.1 MB, Average Speed: 10.79 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 7932.4 MB, Average Speed: 10.98 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 9790.5 MB, Average Speed: 10.85 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 8623.1 MB, Average Speed: 11.02 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 10501.3 MB, Average Speed: 10.91 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 9308.9 MB, Average Speed: 11.05 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 11092.7 MB, Average Speed: 10.85 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 9989.4 MB, Average Speed: 11.07 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 11792.1 MB, Average Speed: 10.89 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 10685.3 MB, Average Speed: 11.10 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 12490.6 MB, Average Speed: 10.93 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133766.tar : 11374.2 MB, Average Speed: 11.12 Mbps, Total Size: : 11832.3 MB
Download Progress of bundle tar : bundle-133765.tar : 13189.7 MB, Average Speed: 10.97 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 13890.8 MB, Average Speed: 11.00 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 14599.4 MB, Average Speed: 11.04 Mbps, Total Size: : 18817.0 MB
Bundle bundle-133766. checksum validation successful
Successfully downloaded bundle: bundle-133766.
Completed downloading:7 of total:8
Download Progress of bundle tar : bundle-133765.tar : 15298.6 MB, Average Speed: 11.06 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 16003.4 MB, Average Speed: 11.09 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 16709.6 MB, Average Speed: 11.12 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 17418.8 MB, Average Speed: 11.15 Mbps, Total Size: : 18817.0 MB
Download Progress of bundle tar : bundle-133765.tar : 18121.5 MB, Average Speed: 11.17 Mbps, Total Size: : 18817.0 MB
Bundle bundle-133765. checksum validation successful
Successfully downloaded bundle: bundle-133765.
Completed downloading:8 of total:8
Successfully completed downloading all VSRN bundles to directory path: /obtu/www/offline_depot/PROD2/evo/vmw
Log file: /var/log/vmware/vcf/lcm/tools/debugtool/tmp/debuglog/lcmdebug.log
[root@vcf-obtu bin]#
最終,你將得到如下所示的目錄結構。
[root@vcf-obtu ~]# tree /obtu/www/offline_depot/
/obtu/www/offline_depot/
└── PROD2
├── evo
│ └── vmw
│ ├── bundles
│ │ ├── bundle-130870.tar
│ │ ├── bundle-133760.tar
│ │ ├── bundle-133761.tar
│ │ ├── bundle-133762.tar
│ │ ├── bundle-133763.tar
│ │ ├── bundle-133764.tar
│ │ ├── bundle-133765.tar
│ │ └── bundle-133766.tar
│ ├── Compatibility
│ │ └── VmwareCompatibilityData.json
│ ├── deltaFileDownloaded
│ ├── deltaFileDownloaded.md5
│ ├── index.v3
│ ├── lcm
│ │ └── manifest
│ │ └── v1
│ │ └── lcmManifest.json
│ ├── manifests
│ │ ├── bundle-130870.manifest
│ │ ├── bundle-130870.manifest.sig
│ │ ├── bundle-133760.manifest
│ │ ├── bundle-133760.manifest.sig
│ │ ├── bundle-133761.manifest
│ │ ├── bundle-133761.manifest.sig
│ │ ├── bundle-133762.manifest
│ │ ├── bundle-133762.manifest.sig
│ │ ├── bundle-133763.manifest
│ │ ├── bundle-133763.manifest.sig
│ │ ├── bundle-133764.manifest
│ │ ├── bundle-133764.manifest.sig
│ │ ├── bundle-133765.manifest
│ │ ├── bundle-133765.manifest.sig
│ │ ├── bundle-133766.manifest
│ │ └── bundle-133766.manifest.sig
│ └── tmp
│ ├── index.v3
│ └── lcmManifest.json
└── vsan
└── hcl
├── all.json
└── lastupdatedtime.json
12 directories, 33 files
[root@vcf-obtu ~]#
五、配置 VCF 離線庫
登陸 SDDC Manager UI,導航到管理->庫設定,VMware Cloud Foundation 5.2 及之後的版本可以在這裡進行離線庫設定。如果是 VMware Cloud Foundation 5.1 及之前的版本,請參考文章開頭提到的知識庫和部落格文章,瞭解具體操作步驟。
點選“離線庫”中的設定,填入 OBTU 伺服器的地址等資訊,然後完成設定。
離線庫設定成功。
稍等片刻後,導航到生命週期管理->包管理,你應該能看到離線庫中所有可用的軟體包。參考文章“更新 VCF 5.1 至 VCF 5.2 版本。”或“獨立更新 SDDC Manager 元件的版本。”執行後續操作。