Hosting 3CX PBX in Google Cloud

Introduction

Easily host and manage 3CX in your own Google Cloud account and manage all your servers from one place.  You will need to have a Google Cloud account before you start 3CX deployment. You can get one here Google Cloud page , click on “Get started for free”.

Step 1 - Enable the Compute Engine API

  1. Log in to your Google/Gmail account and go to Google’s Console.
  2. Click on the top left icon to bring out the Navigation Menu and select the Compute Engine service.
  3. In Compute Engine & API click on Enable API” to allow 3CX to create a 3CX VM instance on your behalf.
  4. You can create a project - or use Google’s default called “My First Project”.

Step 2 - Deploy 3CX

  1. Create a 3CX customer account here
  2. Select Self Hosted (Private Cloud) and click Next
  3. Choose your 3CX FQDN and click “Next”
  4. Set your extension digit length and click Next
  5. Set your System Preferences and click Next
  6. From the drop-down list, choose Google and then click on Authenticate
  7. Allow the 3CX Deployment Wizard to manage your Google account to set up the machine
  8. Give your Google Cloud machine a name and select the previously created Google Cloud project from the drop down list.
  9. Choose your region, network and machine type. Then click “Next”
  10. 3CX will now be deployed.

Step 3 - Configure SSH Access

  1. Login to your Google Console.
  2. Go to the Navigation Menu on the left and select VPC Network> Firewall.
  3. Select CREATE FIREWALL RULE. Give the same name to the rule and to the target tag, ie “ssh”.
  4. Add the source IP address you want to connect from and add TCP port 22 and click on Create.
  5. Now go to Compute Engine > VM Instances find and edit your Instance.
  6. Go to Network tags and type ssh (the target tag created above).
  7. To add your SSH key to the machine you can go to “VM Instances”, edit the instance and then add the public key under “SSH Keys”.

Re-deploying your 3CX?

  1. Login to the customer portal 
  2. Go to My Systems find the subscription you want to have hosted and select "Install"
  3. Select Self Hosted (Private Cloud)” and click Next
  4. Select your extension digit length and on the next screen set your System Preferences then click on “Next”.  These settings will be overridden if you restore a backup.
  5. Select Google from the drop-down list and click on Authenticate to authenticate with your Google account.
  6. Click Yes to upload your existing 3CX configuration backup and click Next
  7. Give your Google machine a name and use the drop-down list to select your project, region, network and machine type. Click Next

See Also

Last Updated

This document was last updated on 17 July 2024

https://www.3cx.com/docs/hosted-pbx-google-cloud/