Use the command-line installer to script or automate your VMware Cloud Gateway installation.
Use the command vcgw-deploy to install VMware Cloud Gateway from the command line. In addition to installing VMware Cloud Gateway, you can use vcgw-deploy to validate your installation templates and run pre-checks on your installation. For a full list of vcgw-deploy options, run vcgw-deploy install --help.
Procedure
- Log in to the VMware Cloud Gateway Download page and download the ISO image for VMware Cloud Gateway.
- Prepare a JSON template for the installation.
- In the installer ISO image, browse to the cli-installer/templates directory.
This directory contains sample JSON templates for installing VMware Cloud Gateway either directly on an ESXi host or through a vCenter system.
- Copy a template to a working directory and edit it to include the necessary parameters.
For more information about available template parameters, invoke the installer with the option --template-help. For example, on Windows, enter vcgw-deploy.exe install --template-help.
- From the command line, change directory to the cli-installer directory and run the installation prechecks.
For Windows OS, enter vcgw-deploy.exe install path-to-template --precheck-only.
For Linux OS, enter vcgw-deploy install path-to-template --precheck-only.
For Mac OS, enter vcgw-deploy install path-to-template --precheck-only.
The prechecks identify problems with the template and parameters provided, so that you can fix any errors before launching the installation.
- Launch the installer.
For Windows OS, enter vcgw-deploy.exe install path-to-template --accept-eula.
For Linux OS, enter vcgw-deploy install path-to-template --accept-eula.
For Mac OS, enter vcgw-deploy install path-to-template --accept-eula.