Setting up the AppViewX Cloud Connector using a Virtual Image on GCP

  1. Log in to the GCP console and start a Cloud Shell instance.
  2. From the command line terminal, create a bucket with the default settings.
    gsutil mb gs://my-virtual-appliances-bucket
  3. Download the GCP OVA from the AppViewX release portal.
    Alternatively, you can Download the release package in the OVA format, from the respective AppViewX's product line landing page, under GET STARTED menu > Connectivity section, click .
  4. Upload it to the Cloud Shell. To upload/copy the OVA to the GCP bucket, execute the following command:
    gsutil cp ~/path-to-file/local
        gs://my-virtual-appliances-bucket/my-va-file.ova
  5. Create a virtual instance from the OVA.
    gcloud compute instances import <my-instance> \
       --source-uri=gs://my-virtual-appliances-bucket/my-va-file.ova \
       --zone southamerica-east1-a \
       --os=ubuntu-1804
    
  6. Login to the GCP node using AppViewX credentials.
    ssh appviewx@<node IP>
  7. Enter the password when prompted.
    The following prompt is displayed: Would you like to opt for automated installation of the cloud connector? (y/n):
  8. Enter n.
    This question is asked here by default. However, since the nameserver has not been configured yet, it is not recommended to proceed with the installation because the connection with the cloud connector and mothership will not be established.
  9. To switch to the root user, execute the following command: sudo -i.
    The following prompt is displayed: Would you like to opt for automated installation of the cloud connector? (y/n):
  10. Enter n.
    This question is asked here by default. However, since the nameserver has not been configured yet, it is not recommended to proceed with the installation because the connection with the cloud connector and mothership will not be established.
  11. To add an entry for the nameserver in the resolv.conf file, execute the following command: echo "nameserver <IP of nameserver>" > /etc/resolv.conf
  12. Update the /etc/hosts file for the IP and the hostname of the VM created, using the following commands:
    vi /etc/hosts
     
    hostnamectl set-hostname “hostname-of-the-vm”
    
  13. To validate the update to the /etc/hosts file, execute the following commands:
    hostname -i
    hostname -f 
    hostname
    
  14. To switch to the appviewx user, execute the following command: sudo su – appviewx
    On login, if the cloud connector does not exist on this host machine, the following prompt is displayed: Would you like to opt for automated installation of the cloud connector? (y/n):
  15. To install the AppViewX cloud connector at this point, enter y.
  16. When prompted Please enter your AppViewX Cloud tenant name or ID, enter the required details.
    Internet connectivity on the host machine is validated. The installation proceeds only if the host machine has internet access.
    Note: If internet access is unavailable, you will be prompted to proceed with installation using a proxy. Enter y and for instructions on proceeding with the installation with a proxy, click here.
  17. When prompted to Please provide the master key, enter the required details.
    To retrieve the master key:
    1. Go to (Menu) > Platform > Connectivity > Cloud Connector.
      The Settings :: Cloud Connector inventory page is displayed.
    2. From the cloud connector details banner, under Automate Cloud Connector Setup, click Steps to Automate Setup.
    3. From the Automated Cloud Connector Setup window, under Step 2, copy the Master Key.
    4. Paste the master key in the terminal window and press Enter.
    The cloud connector installation script will check for the prerequisites and trigger the cloud connector installation.

    When the cloud connector instance is successfully installed, a corresponding entry will be listed in the cloud connector inventory.

  18. When prompted, Please enter Datacenter, enter the name of the data center on which this cloud connector will be deployed.
  19. Note: Enabling auto-enrollment protocols is recommended only if the cloud connector is being installed in a demilitarized zone (DMZ) or devices in a restricted environment (that disables them from connecting to the <tenant>-aep directly.
    When prompted to enable auto-enrollment protocols, enter y and enter the protocol name(s) you want to enable. For instructions on enabling auto-enrollment protocols, click here.
    Note: By default, only the AppViewX certificate is enabled for auto-enrollment. To enable custom certificate for auto-enrollment:
    1. Execute the command ./avxctl upgrade gateway-cert.
    2. When prompted, enter the location of the custom certificate.
    On successful completion of the setup, a corresponding instance of this cloud connector is displayed in the inventory.
    Note: The cloud connector installation on a OVA-based host machine will not prompt you to select if you want to manage F5 Big-IP devices. However, after the cloud connector has been installed you can copy the iControl jar in the deps/external_libs folder (click here for instructions) and restart the starter and platform pods (click here for instructions), to enable this feature.
    Note: Optional, required only for password authentication) In order to successfully execute the installation, AppViewX needs to run a script for which authentication via the .pem file needs to be bypassed. To do this, execute the following commands:
    sudo sed -i 's/.*PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
    sudo systemctl restart sshd
  20. To approve the cloud connector installation:
    1. Go to (Menu) > Platform > Connectivity > Cloud Connector.
      The Settings :: Cloud Connector inventory page is displayed.
    2. For the cloud connector instance installed, from the Actions column, click Approve.
    Troubleshooting: If the AppViewX Cloud Connector instance has been approved but is not moved to the Running state, you can check the pod status and/or restart the pod(s), as required.