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

  1. Prepare a JSON template for the installation.
    1. 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 Server system.

    2. 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.

  2. 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.

  3. 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.

What to do next