I was able to run FreePBX distro on the Google Cloud platform. For anyone who likes to do so, see my steps.
- Download FreePBX from https://www.freepbx.org/downloads/freepbx-distro/
- Download and install VirtualBox https://www.virtualbox.org/wiki/Downloads
- Create new virtual Machine:
- Type: Linux
- Version: Other Linux (64 bit)
- Set memory
- Create virtual hard drive now
- Dynamically allocated
- Set the size (at least 20 G)
- Select the VM and click start
- Select (attach) the iso and click start
- Set the configuration, (or Enter, Enter, Enter)
- Wait for the installation to finish (also may set the root password while the installation is running)
- (I can to shut the machine again)
- While VM is selected and Powered Off go to setting > Storage and release the iso
- In Network select Enable Network Adapter > attach to Bridged Adapter, Click OK
- Start the machine (keep it running)
- Go to Google cloud platform > Compute Engine > VM instances > Click Import VM
- Click CloudEndure
- Create a new Project (follow the instruction)
- Pick a region based on your latency to GCP regions: http://www.gcping.com
- In the VM type: wget -O ./installer_linux.py https://gcp.cloudendure.com /installer_linux.py; then sudo python ./installer_linux.py -t (token)
- Keep it running until done
- In https://gcp.cloudendure.com LUNCH TARGET MACHINES > Test Mode. May take several minutes for conversion to be finished
- Give it some time you may see several VM instances run the one with “freepbx-sangoma-local” in the name. Make sure that SSH is working
Go to VPC network > Firewall rules, click Create Firewall Rule.
Give it a name e.g. sip. Under Target tags, type a tag name, e.g. sip.
Under Specified protocols and ports enter “udp:5060; udp:5160; udp:10000-20000” (without the quotes and assuming default FreePBX settings). Under Source IP ranges, enter 0.0.0.0/0 (or a restricted range if desired), then click Save.
You may want to restrict the “default-allow-http” firewall rule to your IP address as well
Go to VPC network > External IP addresses. For your instance, change the Type from Ephemeral to Static. Give it a name, e.g. mypbx. Click RESERVE.
Go back to Compute Engine > VM instances. Select your instance, click EDIT. Under Network tags add sip or whatever tag you chose above. Click Save.
- Create a snapshot