Downloading specific VCF bundles via CLI

I wanted to reuse my VCF downloaded bundles on another SDDC Manager system so that i wont have to download it from internet again. I found an easy guide here in the VMware documentation. My goal was to download the specific bundle once and upload it on other SDDC Managers.

The first command from SDDC manager was to list the bundles. The lcm bundle transfer utility can be found in /opt/vmware/vcf/lcm/lcm-tools/bin

./lcm-bundle-transfer-util -du ${depotUser} -l -p ${product_version}

I replaced the ${depotUser} with my vmware email address and ${product_version} with the version of the VCF product i wanted to install in my case 5.2.0.0. I was greeted with a list of bundle IDs and the specific component that it was for:

Enter Myvmware user password:
Validating the depot user credentials...

Bundle        Version Size       Component                         Type
bundle-124939 5.2.0.0 605.6 MB   ESX_HOST-8.0.3-24022510           PATCH
bundle-124940 5.2.0.0 8759.2 MB  NSX_T_MANAGER-4.2.0.0.0-24105817  PATCH
bundle-124938 5.2.0.0. 0.0 MB    SDDC_MANAGER_VCF-5.2.0.0-24108943 (Drift)
bundle-124937 5.2.0.0 2367.8 MB  SDDC_MANAGER_VCF-5.2.0.0-24108943 PATCH
bundle-124942 5.2.0.0 18032.7 MB VCENTER-8.0.3.00100-24091160      PATCH
bundle-125047 5.2.0.0 4168.8 MB  NSX_ALB-22.1.6-23390967           INSTALL
bundle-124941 5.2.0.0 11445.2 MB NSX_T_MANAGER-4.2.0.0.0-24105817  INSTALL
bundle-124943 5.2.0.0 11075.7 MB VCENTER-8.0.3.00100-24091160      INSTALL
bundle-120815 5.2.0.0 1841.6 MB  VRSLCM-8.18.0-24029603            INSTALL

In my case i need the installer. To download a specific bundle we run

./lcm-bundle-transfer-util --download --outputDirectory ${absolute-path-output-dir} --depotUser ${depotUser} -b ${bundle_name}

in my case it was:

./lcm-bundle-transfer-util --download --outputDirectory /some/temporary/location --depotUser [email protected] -b bundle-80029

This allowed me to grab the download from /some/temporary/path and save it/upload it on my other SDDC Managers that were missing it.

Finally before the patch can be used in SDDC Manager we need to upload it to the repo. Please note that once we issue the upload command the download gets deleted, so make sure you save the download ahead of time

./lcm-bundle-transfer-util --upload --bundleDirectory /some/temporary/path -b bundle-80029

or via API

curl -k http://127.0.0.1/lcm/bundle/upload -X POST -d ‘{“bundle”:”/some/temporary/path/bundle-80029.tar”,”manifest”:”/some/temporary/path/bundle-80029.manifest”, “signature”:”/some/temporary/path/bundle-80029.manifest.sig”}’ -H ‘Content-Type:application/json’

Once the upload was complete i was able to see it in SDDC Manager as a package that i can apply.

A list of older bundles can be found here

Leave a Reply

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

Proudly powered by Cos
RSS