Google Cloud deployment guide
Authorize on the platform https://console.cloud.google.com/
Let's start configuring
For quick and convenient navigation on the Google Cloud platform, use the search pane
Creating storage
Open Navigation menu / Products & solutions / Storage / Cloud Storage
On the Cloud Storage tab select Create
Enter the storage name, for example miko-images
Use default values for other fields
After entering the values, click the Create button
Open the created miko-images storage
On the opened tab select UPLOAD FILES
Upload the file from the MikoPBX distribution with the .vhd extension
Wait for the file upload to complete
Connecting Cloud Build API
Open Navigation menu / APIs & Services / Library / Google Enterprise API / Cloud Build API
On the opened tab select ENABLE
Check the roles for the Cloud Build service account:
Open the IAM page https://console.cloud.google.com/projectselector2/iam-admin/iam.
Select your Google Cloud project
Check the Include Google-provided role grants checkbox
In the table, find the row with the email address ending with @cloudbuild.gserviceaccount.com
Select Edit principal
The roles to be granted to the Cloud Build service account are Compute Admin and Service Account User
If the required roles are not present, add them and click SAVE
Connecting Compute Engine API
Open Navigation menu / APIs & Services / Library / Google Enterprise API / Compute Engine API
On the opened tab select ENABLE
Creating an image
Open Navigation menu / Products & solutions / Compute / Compute Engine
Go to the Storage / Images section
Select CREATE IMAGE to create a new image
Enter the image name, for example mikopbx-new-image
Specify the source type - Virtual disk (VMDK, VHD)
Select Virtual disk file under the BROWSE link, Browse / miko-images / .vhd
Uncheck the Install guest packages checkbox
In the Operating system on virtual disk field specify - No operating system. Data only.
Use default values for other fields
After entering the values, click the Create button and wait for the image creation to complete
Creating a virtual machine
In the Compute Engine tab go to the Virtual machines / VM Instance section
Select CREATE INSTANCE
Enter the virtual machine name, for example mikopbx-vm
In the Machine configuration / General purpose table select Series - N1
In the Machine type section choose Shared-core / f1-micro from the dropdown menu
To deploy the PBX use two disks:
A 1 Gb disk for the main system
A 50+ Gb disk for storing call recordings
In the Boot disk section select CHANGE
On the opened tab go to CUSTOM IMAGES
In the Image field select the previously created mikopbx-new-image
Use default values for other fields on the tab
Click the SELECT button
In the Advanced options / Disks section select ADD NEW DISK
On the opened tab enter the disk name for data storage, for example disk-storage-mikopbx
Specify the disk size of at least 50GB
Use default values for other fields on the tab
Click the SAVE button
If you have an SSH key, proceed as follows:
In the Advanced options / Security / MANAGE ACCESS section, select ADD ITEM
Specify it in the SSH key field
If you don't have an SSH key, proceed directly to step 18
Use default values for other fields
After entering the values, click the CREATE button
Configuring ports for incoming connections
Open Navigation menu / VPC network / Firewall
Select CREATE FIREWALL RULE to create a new rule for incoming connections
Enter the name of the new rule, for example internal-allow
Specify Direction of traffic - Ingress
Specify Targets
From the Source filter dropdown menu select IPV4 ranges and in the Source IPv4 ranges field enter 0.0.0.0/0
In the Protocols and ports section check the TCP (Ports - 0-65535) and UDP (Ports - 0-65535) checkboxes
Use default values for other fields
After entering the values, click the CREATE button
Make sure to configure the Firewall on the MikoPBX
Starting MikoPBX
Open the Compute Engine tab and go to the Virtual machines / VM Instance section
Go to the created virtual machine mikopbx-vm
On the opened tab navigate to Logs / Serial port 1 (console)
Copy the external address of the created virtual machine and enter it in the browser's address bar
For login use the login and password provided in Serial port 1 (console)
Last updated