# Hyper-V

{% embed url="<https://youtu.be/1RBIuhBu_go>" %}

### **Creating a virtual machine**

1. Select **Action / New / Virtual Machine**
2. On the Specify Name and Location tab, enter the name of the virtual machine, for example *mikopbx-vm*

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F6eoxxzWKS95uI7ACPhOz%2FMikoPBXHyperVInstallation_1.png?alt=media&#x26;token=e72c9211-629b-44a4-8a46-754d43a51f7d" alt=""><figcaption><p>Configuring Virtual Machine</p></figcaption></figure>

3. Proceed to the Specify Generation tab, and select **Generation 1**

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F6E9fdqBriSkJDim4pUxF%2FMikoPBXHyperVInstallation_2.png?alt=media&#x26;token=a753a33b-a26b-4c45-9332-955e283e17b7" alt=""><figcaption><p>Configuring Virtual Machine</p></figcaption></figure>

4. On the Assign Memory tab, allocate the required amount of RAM based on the expected load on the PBX. For a test machine, you can specify 2 GB

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FGlLcSgZnPphQ83rSRYa3%2FMikoPBXHyperVInstallation_3.png?alt=media&#x26;token=998f8e59-49d2-45cd-a1e9-fe7c539f2049" alt=""><figcaption><p>Configuring Virtual Machine</p></figcaption></figure>

5. Proceed to the Configure Networking tab, and select a pre-configured network connection

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FmXkW0988WL5A05xWgTx6%2FMikoPBXHyperVInstallation_4.png?alt=media&#x26;token=540741fc-e37e-4b06-b09a-513fe3d45647" alt=""><figcaption><p>Configuring Virtual Machine</p></figcaption></figure>

6. On the Connect Virtual Hard Disk tab, adjust the system disk size to **1 GB**

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FQTlSsGz4mGxTOvguJ9F3%2FMikoPBXHyperVInstallation_5.png?alt=media&#x26;token=61d2c883-cd9d-4020-91f5-fa494ca860ab" alt=""><figcaption><p>Configuring Virtual Machine</p></figcaption></figure>

7. On the Installation Options tab, check the **Install an operating system from a bootable CD/DVD-ROM** option
8. Select **Image file (.iso)** and provide the link to the MikoPBX distribution file with the **.iso** extension

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FQFLGF2xAfrsci5PqlFYv%2FMikoPBXHyperVInstallation_6.png?alt=media&#x26;token=03a8b3dd-5ccc-468e-abe4-cdc870a2efd2" alt=""><figcaption><p>Configuring Virtual Machine</p></figcaption></figure>

9. After entering all values, click the **Finish** button

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2Fsg4nU83uOGFFK5DwAxoz%2FMikoPBXHyperVInstallation_7.png?alt=media&#x26;token=767154d9-57e2-41f0-9d3e-2eb8583e1913" alt=""><figcaption><p>Configuring Virtual Machine</p></figcaption></figure>

### **Data storage disk**

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

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

1. Go to the settings of the created virtual machine
2. Select the IDE controller to which the system disk is connected
3. On the opened tab, select Hard Drive and click the **Add** button
4. Click the **New** button
5. On the Choose disk format tab, select **VHD**

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F5Ho55bn9OYHyTXOywgHY%2FMikoPBXHyperVInstallation_8.png?alt=media&#x26;token=3521545b-c26c-4f2f-9e73-ae8fb595992e" alt=""><figcaption><p>Adding second hard disk</p></figcaption></figure>

6. On the Choose disk type tab, select **Fixed size**

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FIIKzE8wKbaqnRaXgJWSz%2FMikoPBXHyperVInstallation_9.png?alt=media&#x26;token=255d755e-b404-4e33-a89a-70cce90a7ba8" alt=""><figcaption><p>Adding second hard disk</p></figcaption></figure>

7. On the Specify name and location tab, specify the name (e.g., *storage.vhd*) and the location of the disk

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2Fp3E6oAc7e9kvJuSScMRA%2FMikoPBXHyperVInstallation_10.png?alt=media&#x26;token=df87205a-eb8d-4e51-bf4c-7ac539b722c6" alt=""><figcaption><p>Adding second hard disk</p></figcaption></figure>

8. On the Configure Disk tab, set the disk size for data storage to at least 50 GB

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FZc2Ahl9ztQgyjgbSg85h%2FMikoPBXHyperVInstallation_11.png?alt=media&#x26;token=5f552188-dcc6-41ec-b696-e464ad8c8cab" alt=""><figcaption><p>Adding second hard disk</p></figcaption></figure>

9. Use the default values for other fields
10. Complete the setup by clicking the **Finish** button

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FSnX2RLezoKwK7I74fxVS%2FMikoPBXHyperVInstallation_12.png?alt=media&#x26;token=dcd826df-d375-40d0-b077-dc6dff0a37fc" alt=""><figcaption><p>Adding second hard disk</p></figcaption></figure>

### **Installing MikoPBX**

1. To start the virtual machine, click **Connect... -> Start**

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FkUwVWbrQIZvFsmtadxrW%2FMikoPBXHyperVInstallation_13.png?alt=media&#x26;token=d3131e77-be17-4b1e-840f-6b3734ce98fc" alt=""><figcaption><p>"Connect..." button</p></figcaption></figure>

2. Go to the Connect tab of the created virtual machine *mikopbx-vm*
3. If the boot is successful, a console menu will appear. Enter **8** from the keyboard to start the installation

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FVDlibb0d78b4PVPQpawg%2FMikoPBXHyperVInstallation_14.png?alt=media&#x26;token=48724977-9576-4111-b055-d2f67875a491" alt=""><figcaption><p>Installing MikoPBX</p></figcaption></figure>

4. Select the system disk and enter the disk name from the keyboard, for example ***sda***. Confirm the selection by entering ***y*** from the keyboard

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FVMidIyblNIgkDEj1Py3K%2FMikoPBXHyperVInstallation_15.png?alt=media&#x26;token=df0be1be-02b1-42a5-84ad-0b8929bc135e" alt=""><figcaption><p>Installing MikoPBX</p></figcaption></figure>

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FaYWfNDOSZKm9mHaWDvhR%2FMikoPBXHyperVInstallation_16.png?alt=media&#x26;token=4ecd4ddc-1844-4eaf-a506-4b5ff6904392" alt=""><figcaption><p>Installing MikoPBX</p></figcaption></figure>

5. Connect the disk for storing call recordings, and enter the disk name for connection from the keyboard, for example ***sdb***

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FFxLXXBdDEqUutfLZW6nz%2FMikoPBXHyperVInstallation_17.png?alt=media&#x26;token=10c850c7-a998-4deb-ba65-8db67a188b3e" alt=""><figcaption><p>Installing MikoPBX</p></figcaption></figure>

{% hint style="danger" %}
When the message "Press any key within 30 seconds to boot from LiveCD..." appears, do not press any buttons. In this case, the system will boot from the hard drive.
{% endhint %}

### **Starting MikoPBX**

1. To access the MikoPBX web interface, enter your virtual machine's IP address in your browser's address bar. You can find the IP address in the console.

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FxJnQ9cCWVx9cN3yT0X3L%2FMikoPBXHyperVInstallation_18.png?alt=media&#x26;token=f7fc4abe-cc14-4e8a-8e3b-eeac9d022867" alt=""><figcaption><p>MikoPBX IP-address</p></figcaption></figure>

2. Enter the IP address in your browser’s address bar. Log in using the default credentials.

{% hint style="success" %}
Use the following default credentials for the first login to the MikoPBX web interface:

* Username: admin
* Password: admin
  {% endhint %}

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FXmxtn0S6jcpqcG6P48aX%2FMikoPBXHyperVInstallation_20.png?alt=media&#x26;token=c3cdfcee-f122-4ab0-b71f-eff5b02fe013" alt=""><figcaption><p>MikoPBX web-interface authorization page</p></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/hypervisor/hyper-v.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.
