To run VMware Cloud Provider Lifecycle Manager, after uploading the VMware Cloud Provider Lifecycle Manager docker image to the Photon OS virtual machine, you must start the docker container.

To run VMware Cloud Provider Lifecycle Manager, you must accept the EULA by configuring the EULA parameter.

Procedure

  1. Locally on your machine, download the tar.gz file containing the VMware Cloud Provider Lifecycle Manager docker image. For information, see http://my.vmware.com/.
  2. Upload the VMware Cloud Provider Lifecycle Manager docker image to the VMware Cloud Provider Lifecycle Manager host.
    1. Navigate to the tmp directory.
      cd /tmp
    2. Copy the tar.gz to the he VMware Cloud Provider Lifecycle Manager host.
      You can use a SCP software like WinSCP on Windows.
      cp tar-file-location /vcplcm.version-number.tar.gz root@vcplcm-host:/tmp/
    3. Load the VMware Cloud Provider Lifecycle Manager docker image into the local image cash.
      docker load --input /tmp/vcplcm.version-number.tar.gz
  3. Start the docker container, accept the EULA, and define the user credentials for the local VMware Cloud Provider Lifecycle Manager user.
    docker run --net=host --name vcplcm -e EULA-ACCEPT=true -e RESTAPI_USERNAME=vcplcm-local-user-name -e RESTAPI_PASSWORD=vcplcm-local-user-password -v /cplcmrepo:/cplcmrepo -v /opt/vmware/cplcm/log:/opt/vmware/cplcm/log -v /opt/vmware/cplcm/security/certs:/opt/vmware/cplcm/security/certs -d --restart=always vcplcm:version-number

    The default network port number is 9443. To change the default port, see step 3.

  4. (Optional) To change the default port, configure the host machine to allow access to the required port.
    1. Add iptables rules for thew new port.
      iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport new-port-number -j ACCEPT
      iptables -A OUTPUT -p tcp -m state --state NEW -m tcp --dport new-port-number -j ACCEPT
    2. Add the updated port to the docker start command as an environment variable CPLCM_PORT and expose it to the Internet.
      docker run --net=host --name vcplcm -e EULA-ACCEPT=true -e RESTAPI_USERNAME=vcplcm-local-user-name -e RESTAPI_PASSWORD=vcplcm-local-user-password -e CPLCM_PORT=port-number -v /cplcmrepo:/cplcmrepo -v /opt/vmware/cplcm/log:/opt/vmware/cplcm/log -v /opt/vmware/cplcm/security/certs:/opt/vmware/cplcm/security/certs -d --restart=always --expose port-number vcplcm:version-number
    The docker container runs VMware Cloud Provider Lifecycle Manager automatically.