# Google Cloud Marketplace

Log in to the platform at <https://console.cloud.google.com/>

MikoPBX on Google Cloud Marketplace: <https://console.cloud.google.com/marketplace/product/mikopbx-public/mikopbx>

{% embed url="<https://youtu.be/9wy-Pq7_71o>" %}

Let's start with the setup

{% hint style="info" %}
For quick and easy search on the Google Cloud platform, use the search bar
{% endhint %}

### Adding roles to a Service account

If you have a service account, check if it has the necessary roles, and add them if needed

If you do not have a service account, create one and add the necessary roles

1. Open the Navigation menu / Products & solutions / Management / **IAM & Admin**
2. Go to the Service accounts tab and click on **CREATE SERVICE ACCOUNT**
3. Enter a name for the service account, for example *mikopbx-service-account*
4. Click the **CREATE AND CONTINUE** button

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F5LBoPJQNfAmPUXJWt6fk%2FMikoPBXGoogleCloudInstallation_1.png?alt=media&#x26;token=d6da464b-422f-400b-be89-6930f3ca8f06" alt=""><figcaption></figcaption></figure>

5. Add the roles **Cloud Infrastructure Manager Agent, Compute Admin, Compute Network Admin, Service Account User**

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FSGDLtnSbTmTSVAAfRYxU%2FMikoPBXGoogleCloudInstallation_2.png?alt=media&#x26;token=2cd601fc-1219-4d22-8ed8-7b1ac45e8706" alt=""><figcaption></figcaption></figure>

6. Click the **DONE** button

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F77Ax5pfiWQ7oXmj6sNLS%2FMikoPBXGoogleCloudInstallation_4.png?alt=media&#x26;token=097b1d30-63b0-4bbc-b996-9a6fd70a99ab" alt=""><figcaption></figcaption></figure>

### Creating a virtual machine

1. Open the Marketplace and enter **MikoPBX** in the search bar
2. Select the [MikoPBX](https://console.cloud.google.com/marketplace/product/mikopbx-public/mikopbx) image
3. On the opened tab select **LAUNCH**

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FccxKomUc5vcdxhWysWGI%2FMikoPBXGoogleCloudInstallation_5.png?alt=media&#x26;token=bd39034b-20a4-4ae6-88dd-f9c588d2592b" alt=""><figcaption></figcaption></figure>

4. In the Deployment name field, enter a name, for example *mikopbx-vm*
5. In the Deployment Service Account section, check the Existing account option and select the previously created service account

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FqnORBWQnhmCuB1FD0gXh%2FMikoPBXGoogleCloudInstallation_7.png?alt=media&#x26;token=843d5d06-5410-48a5-aaef-42394f55111e" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
To deploy the PBX, use **two** disks:

* A **1 GB** disk for the main system
* A **50+ GB** disk for storing call recordings
  {% endhint %}

6. If necessary, change the size of the data storage disk in the Data Storage section. By default, its size is 50 GB

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F3tuIae01FbJqImKMJM1E%2FMikoPBXGoogleCloudInstallation_8.png?alt=media&#x26;token=cabe5e89-6ae4-4d1c-9d1a-81c95e6d8d94" alt=""><figcaption></figcaption></figure>

7. Under Networking, all required Firewall rules are configured automatically

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FKPjBUpkJ8nKtIUUoDtca%2FMikoPBXGoogleCloudInstallation_15.png?alt=media&#x26;token=9b5c4181-d5d5-4cfd-9a72-7b255fd9a458" alt=""><figcaption></figcaption></figure>

8. For other fields, use the default values
9. After entering the values, click the **DEPLOY** button

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F8Z0bwNtDUolxtSIndWpk%2FMikoPBXGoogleCloudInstallation_9.png?alt=media&#x26;token=f6f86815-b6ae-4938-b2c8-a52f19aa4a8b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F6ixwFZyr422fRiybWx8o%2FMikoPBXGoogleCloudInstallation_10.png?alt=media&#x26;token=893e7d82-e2b9-4d72-93d8-ed087181c9ec" alt=""><figcaption></figcaption></figure>

### Starting MikoPBX

1. Open the Compute Engine tab and go to the Virtual machines / VM Instance section
2. Go to the created virtual machine *mikopbx-vm-mikopbx-vm*
3. On the opened tab, go to Logs / Serial port 1 (console)

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F0Fgdz4OBPVz7W2TjYikr%2FMikoPBXGoogleCloudInstallation_12.png?alt=media&#x26;token=6b1d9c04-9ed7-41b3-8e6b-56145c4c0adb" alt=""><figcaption></figcaption></figure>

4. Copy the external address of the created virtual machine and enter it in the browser address bar
5. Use the login and password provided in Serial port 1 (console) to log in

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FvGirprwqdowlJRttKp1l%2FMikoPBXGoogleCloudInstallation_14.png?alt=media&#x26;token=4650fe22-c2bb-49b3-a178-46df32c71ced" alt=""><figcaption></figcaption></figure>
