# 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="/files/Qml40cSDNMSdHz2Gby3z" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/VJ3wu18UVkR4AWqxHXOU" alt=""><figcaption></figcaption></figure>

6. Click the **DONE** button

<figure><img src="/files/InNvC6ZZ4bI331u59hzQ" 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="/files/jZvNB5q0Hc8hDiPV0URb" 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="/files/I8Nb8QJ2qzqR5Dt7OKO4" 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="/files/ssgpUiCt33XPZkFpKe5l" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/t3YDkKgEsuXLrp0UVcD2" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/5fSIc7zzwod2AAQcFBTp" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/YV90rm1b01f0NsAjBTKk" 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="/files/l4XnXjAalVbiQ6fk9b0d" 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="/files/2jLmuonML1dW3vnrf5U7" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mikopbx.com/mikopbx/english/setup/cloud/google-cloud/google-cloud-marketplace.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
