To run the VMware Cloud Provider Lifecycle Manager docker image, you must first configure the host environment.

You must create repository directories for storing the log files, certificates, and the product OVA files, and the product update files.

After creating the repository directories, you configure the permissions for every directory. As a result, the files within the directory inherit the permissions you configure on the directory level.

If you add at a later stage a new file to an existing directory, the new file does not inherit the permissions from the directory and you must configure the 777 permissions on a directory level again.

Procedure

  1. Log in to the Photon OS virtual machine as root.
  2. Start the Docker service.
    systemctl start docker
  3. To allow incoming and outgoing TCP connection on the Photon OS virtual machine, configure the Photon OS firewall iptables.
    iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 9443 -j ACCEPT
    iptables -A OUTPUT -p tcp -m state --state NEW -m tcp --dport 9443 -j ACCEPT
  4. Create a log directory on the Photon OS virtual machine.
    mkdir -p /opt/vmware/cplcm/log
  5. Configure the permissions for the log directory.
    chmod -R 777 /opt/vmware/cplcm/log
  6. Create a new product repository directory.
    Note: Verify that the product versions you want to deploy are supported by VMware Cloud Provider Lifecycle Manager. For information about the interoperability between VMware Cloud Provider Lifecycle Manager 1.1 and other VMware products, see the VMware Product Interoperability Matrix.

    VMware Cloud Provider Lifecycle Manager 1.1 supports RabbitMQ 3.8.14.

    1. Create product repository directories.
      mkdir -p /cplcmrepo/rmq/<rmq-version-number>/ova
      mkdir -p /cplcmrepo/usage/<um-version-number>/ova
      mkdir -p /cplcmrepo/vcd/<vcd-version-number>/ova
      mkdir -p /cplcmrepo/vropsta/<vrops-version-number>/ova
    2. Copy the product OVA files to the corresponding repository directory on the VMware Cloud Provider Lifecycle Manager Photon OS virtual machine.
      You can use a SCP software like WinSCP on Windows.
      cp ova-name.ova /cplcmrepo/product/version-number/ova/
    3. Configure the permissions for the cplcmrepo directory.
      chmod -R 777 /cplcmrepo
  7. (Optional) You can mount to the VMware Cloud Provider Lifecycle Manager Photon OS virtual machine an existing pre-configured repository directory.
    1. Create a cplcmrepo directory to which you can mount the existing product repository directories.
      mkdir -p /cplcmrepo
    2. Configure the automatic mounting of the NFS share with VMware Cloud Provider Lifecycle Manager.
       echo "nfs-server:nfs_dir_path/cplcmrepo nfs defaults 0 0" >> /etc/fstab
    3. Mount the NFS share to VMware Cloud Provider Lifecycle Manager.
    mount /cplcmrepo
  8. Create a repository directory for storing the product update files.
    1. Create the repository directory for the product update files.
      mkdir -p /cplcmrepo/rmq/<rmq-version-number>/update
      mkdir -p /cplcmrepo/usage/<um-version-number>/update
      mkdir -p /cplcmrepo/vcd/<vcd-version-number>/update
      mkdir -p /cplcmrepo/vropsta/<vrops-version-number>/update
    2. Copy the product update files to the corresponding repository directory on the VMware Cloud Provider Lifecycle Manager Photon OS virtual machine.
      You can use a SCP software like WinSCP on Windows.
      cp ova-name.ova /cplcmrepo/product/version-number/update/
    3. Configure the permissions for the cplcmrepo directory.
      chmod -R 777 /cplcmrepo
  9. Create a certificate directory on the Photon OS virtual machine.
    mkdir -p /opt/vmware/cplcm/security/certs
  10. Configure the permissions for the certs directory.
    chmod -R 777 /opt/vmware/cplcm/security/certs