Blog · AskoziaPBX in Microsoft’s Hyper-V environment

AskoziaPBX in Microsoft’s Hyper-V environment

Detailed tutorial provided by Gentek Labs

This tutorial is provided by Jeff from Gentek Labs. Gentek Labs is specialized in providing virtualized server environments for businesses. They’ve been installing AskoziaPBX in Hyper-V environments for some time and were so nice to create this tutorial for us. Thanks again for all the hard work you’ve put into this! Enjoy.

Introduction

Hyper-V is a Server virtualization environment created by Microsoft with the intent of running Multiple Virtual Servers on a single server platform, reducing overhead costs of IT resources, while allowing businesses to achieve their goal. Hyper-V is an Enterprise Virtual Environment, allowing for optimized performance, including the capability to run a PBX in a virtual environment, pending proper hardware is used. There are only a few known PBX’s that run in virtual environments, and Askozia after 8 solid months has proven to work reliably in the right virtual environment.

Requirements

AskoziaPBX Requirements:

  • Firmware Version 2.2 and up
  • Server Requirements:

  • Operating System: Windows Server 2008 R2 (Standard, Enterprise, or Datacenter), Windows Server 2012 (Standard or Datacenter). Server 2008 R2 and 2012 are only available in 64-bit versions (Server 2008 R1 is not recommended, as latency was known to be an issue in this version. Windows 8 Pro may be an alternative, as it is the first client OS to come with Hyper-V, but note that it is not designed to be a server, and may not handle other processes simultaneously. For Optimal performance, server hardware is recommended. In this scenario, we are using Server 2008 R2 Standard
  • Hardware: Server grade motherboard (Dell, HP, IBM, Cisco). Desktop motherboards are intended for single terminal communication, and may not provide the stability needed to run Askozia in a virtual environment. A Dell Poweredge server was used in this testing for an 8 month period with no complications. If using Desktop Hardware it is recommended that you stick with Intel systems. Dell Optiplex’s would be a great alternative. In addition, if the computer\Server is a Custom build, it is recommended to stick with Intel and Asus Brand Motherboards for best performance.
  • CPU: Intel Xeon Processor with 64-Bit Architecture (Other Intel CPU’s may work, but Virtual Askozia has only been tested with an Intel Xeon CPU. AMD CPU’s are not recommended, as they tend to have a timing lag, which can affect call quality and possibly PBX stability.) If a Xeon processor is not available, the Intel i5 and i7 will work as an alternative. Intel i3 are not designed for optimal virtualization performance. Make sure that Virtualization is turned on in the Server BIOS.
  • Memory: 256mb of RAM available outside of typical server use.
  • Network Adapter: Intel or Broadcom GB Server Grade Network Adaptor. Single Port minimal. As an alternative, any Intel or Broadcom Network Cards should be fine. Realtek Network Cards are not recommended, as they are typically emulated processes and in result cause latency issues which could affect the quality and stability of the PBX.
  • Hard Drives: In a server environment, it is recommended that your Server OS and Data store be located on different drives or arrays. Your virtual machines should run off of the Data drive\Array for optimal performance. Below is the recommended drive configurations:Dedicated Hard Drive or Array(RAID 1) for Host Operating System, Secondary Drive or Array(RAID 1,5,10) for Guest Operating Systems or in this case AskoziaPBX.
  • The environment used to test Askozia for an 8-month period is the following:

  • Dell Poweredge T-310 (Intel Motherboard)
  • Windows Server 2008 R2
  • Intel Xeon 2.9ghz Quad Core CPU
  • 2 Raid 1 Arrays (1 Array for Host OS, Second Array for Data for storage of the Guest OS)
  • 16GB DDR3 Server Grade Hardware
  • Dual Port Gigabit Broadcom NIC
  • Order of Steps to setup and deploy Virtual PBX:

  • Step 1: Prepping VM Storage Location: Prepping Create Folder on Secondary Data Drive for Qty. 2 16gb Virtual Hard Disk. Drives will be created in further step. Virtual Disk 1: Askozia Guest OS (16GB), Virtual Disk 2: Askozia Media Drive (16GB)
  • Step 2: Launch Hyper-V Manager: Open up Hyper-V Manager.
  • Step 3: Create Virtual Network
  • Step 4: Create Virtual Machine
  • Step 5 Startup and Configure Askozia: Startup Virtual Machine, and configure IP Address for Askozia PBX.
  • Step 1: Prepping VM Storage Location

    In virtual environments, it is good practice to run your virtual machine and other shared network resources from a Drive or an Array separate from that which your operating system runs on. This allows for better performance, but also reduces the possibility of the Local OS processes from effecting the quality and performance of your virtual machines. In this step, we will create a folder on the Data drive, where we will store the virtual machines. In this folder will create a folder where we will save the virtual machine files for the Askozia PBX. If you are already using Hyper-V and know where you store your Virtual Machines, you can skip this step

    1. Open Windows Explorer by clicking “Start,” and selecting “Computer.”
    2. Identify the Data Drive, and open it. In this exercise, the Data drive is Drive F.
    3. In the F Drive “Data Drive”, if you don’t already have a place to store Virtual Machine files, create a new folder in the root directory and name it. In this exercise the folder we create will be named “Virtual Machines.”
    4. Open up the new folder you created.
    5. Now you will create a new folder that the Askozia PBX virtual machine files will be saved in. Give the Folder a name that corresponds with what the virtual machine will be. In this exercise, the folder will be named Askozia.

    Step 2: Launch Hyper-V Manager

    Next you will open the Hyper-V Manager. Hyper-V can be located in the “control panel”, under “Administrative Tools.” (Control Panel\Administrative Tools\Hyper-V Manager)
    Note: If you can’t find the Hyper-V Manager in Administrative tools, than you will need to install the Hyper-V Role. To install the Hyper-V Role, you will need to open the “server manager” located in “Administrative Tools” in the “Control Panel.” In the server Manager, Right-Click “Roles”, and select “Add Roles.” The Add Roles Wizard will open. Select “Next” to go to the next screen. You will now see a list of Roles to install. Place a check in the box next to “Hyper-V”, and select “Next” to continue. Continue to click “Next” on all the menus until you are prompted to “Install”. Click “Install”, which will begin installing the “Hyper-V” Role. Once Installed, you will need to reboot.

    Step 3: Create Virtual Network

    In the Hyper-V Manager, you will first create a virtual network to interface with your physical network.

    1. In the Actions pain, Select “Virtual Network Manager”

    create virtual environment

    2. In the Virtual Network Manager, Select “External” for the type of Virtual Network to create, and then Click “Add”

    create virtual environment

    3. In the New Virtual Network Wizard you will do the following:

  • Name the virtual network. In this exercise, we will name it “Virtual Network”
  • Select the Network Card you want this Virtual Network to connect to. Be shure to check the box “Allow management Operating System to share this network adapter”
  • Select “Apply” to save your settings.
  • create virtual environment

    Now your Virtual Network will be completed.

    Step 4: Create Virtual Machine

    Now you will create the Virtual Machine which will host the PBX. It is important to follow each step for optimal productivity.

    1. In The Hyper-V Manager, under “Actions,” click “New,” and select “Virtual Machine.”

    create virtual machine in hyper v

    2. The “New Virtual Machine Wizard” will open. Select “Next” to continue.

    create virtual machine in hyper v

    3. In the “Specify Name and Location” section of the wizard you will name the Virtual machine and choose the location to save the virtual machine. Start by naming the Virtual Machine. In this exercise, the Virtual Machine will be named Askozia. Next, check the box “Store the Virtual Machine in a different Location.” Now the location field will be available. Click “Browse,” and select the location to save the Virtual Machine to. Once done with the name and location, select “Next,” to continue.

    create virtual machine in hyper v

    4. Next in the “Assign Memory” section of the wizard, you will set the amount of memory from the physical memory of your server to be dedicated to your Virtual Machine. In this exercise we will set the memory to 256MB, and then select “Next” to continue.

    create virtual machine in hyper v

    5. In the “Configure Networking” section of the wizard, leave the connection as “Not Connected” and select “Next” to continue.

    create virtual machine in hyper v

    6. In the “Connect Virtual Hard Disk” section of the wizard you will create the first Virtual Hard Drive, which will be intended for the Askozia PBX software. In a later step, you will create a second Virtual Hard Drive intended for the Media (Voicemail, Fax, Hold Music). First you will select the radial button “Create a Virtual Hard Disk.” The name and location should reflect the name of the Virtual Machine chosen earlier as well as the location of the Virtual Machine which too was chosen earlier. Behind the name of the Virtual Hard Disk, add an identifier to let you know that this will be used for the Askozia PBX software. In this exercise we will name the Virtual Machine “AskoziaOS.vhd.” Next, under the field “Size,” you will set the Virtual Hard Drive size. In this exercise we will set the Virtual Hard Drive size to 16GB. Once the options are setup, select “Next” to continue.

    create virtual machine in hyper v

    7. In the “Installations Options” you will select the media which you will install Askozia PBX from. In this Exercise we use the ISO image included with the PBX software. Select the radial button for “Install an operating system from boot CD/DVD-ROM.” Next slect the radial button for “Image File (.iso).” Click browse, and then locate the location of the saved ISO. Please note that you can use physical media in addition to an ISO image. Once you have selected your installation media, select “Next” to continue.

    create virtual machine in hyper v

    8. Now in the “Completing the New Virtual Machine Wizard,” you will see a review of the options you chose for the Virtual Machine. If everything looks good, select “Finish.” If you need to make any changes, you can select “Previous” to go back.

    create virtual machine in hyper v

    9. There is still more options to configure for the Virtual Machine, which you will do in the “settings” for the Virtual Machine you created. In the Hyper-V Manager console, click on the Virtual Machine you created, and then on the right in the Actions pain, select “Settings.”

    create virtual machine in hyper v

    10. First you will create the Second Virtual Hard Drive intended for the Media (Voicemail, Fax, Hold Music). Select “IDE Controller 0” in the Hardware pain on the left. Next in the right column, select “Hard Drive,” and then click “Add.”

    create virtual machine in hyper v

    11. Now in the “Hard Drive” pain on the right, select “New” to create a new Virtual Hard Drive.

    create virtual machine in hyper v

    12. The “New Virtual Hard Disk Wizard” will open. Select “Next” to continue.

    create virtual machine in hyper v

    13. In the “Choose Disk Type” section of the wizard, keep the default setting “Fixed Size,” and select “Next” to continue.

    create virtual machine in hyper v

    14. In the “Specify Name and Location” section of the wizard, name the Virtual Hard Drive with a name which will identify its intent. In this exercise the Virtual Hard Drive will be named “AskoziaMedia.vhd.” Next select “Browse” and specify the location to save the new Virtual Hard Drive. Select “Next” to continue.

    create virtual machine in hyper v

    15. In the “Configure Disk” section of the wizard, you will set the size of the new Virtual Hard Drive. In this exercise we will set the size to 16GB. Once you set the size, select “Next” to continue.

    create virtual machine in hyper v

    16. Review the settings you chose for the New Virtual Hard Drive. If everything looks good, select “Finish.”

    create virtual machine in hyper v

    17. The Virtual Network Adapter that is included with the Virtual Machine is intended for Microsoft Windows Virtual Machines. In the next few steps, you will delete the default Network Adapter intended for Windows, and Add a Legacy Adapter that is intended for Linux Operating systems which is needed for the Askozia PBX to run in a Hyper-V environment. Back in the “Settings” menu for the New Virtual Machine, select “Network Adapter” in the Hardware pain on the left. In the Network Adapter pain on the right, select “Remove.”

    create virtual machine in hyper v

    18. Now you will add the Legacy Network Adapter. In the “Settings” menu for the New Virtual Machine, select “Add Hardware” in the Hardware pain on the left. In the “Add Hardware” pain on the right, select “Legacy Network Adapter,” and select “Add.”

    create virtual machine in hyper v

    19. In the “Settings” menu for the New Virtual Machine, select “Legacy Network Adapter” in the Hardware pain on the left. In the “Legacy Network Adapter” pain on the right, click on the drop down menu under “Network,” and select the Virtual Network you created earlier.

    create virtual machine in hyper v

    20. You are now done configuring the New Virtual Machine. Select “OK” to complete your setting.

    Step 5: Startup and Configure AskoziaPBX:

    1. Now you will start up the New Virtual Machine, and begin setting up the Askozia PBX. In the Hyper-V Manager Console, select the Virtual Machine, and select “Start” and then “Connect” in the Actions pain on the right.

    startup and configure askozia pbx phone system

    2. The Virtual Machine will now start up, and load the install media as it typically would. Select “8” to install on Hard Drive followed by pressing “Enter” on your keyboard.

    startup and configure askozia pbx phone system

    3. You will now chose which Virtual Hard Drive to install Askozia PBX on. You will use the first drive in the series, which is intended for the OS. Type “had” followed by pressing “Enter” on your keyboard.

    startup and configure askozia pbx phone system

    4. You will be prompted with a warning explaining the actions that will take place, as well as the option to reboot after installation. Enter “Y” and then press “Enter” on your keyboard to continue and reboot. Askoza PBX will now install on the OS Virtual Hard Drive and Reboot.

    startup and configure askozia pbx phone system

    5. Now you need to remove the install media, which in the case of this exercise was an ISO, so that your PBX can boot from the OS Hard Drive. Select “Media” from the menu, and then under “DVD Drive” select “Eject.” Now enter “5” in the PBX Console, and press “Enter” to reboot and boot from the Virtual Hard Drive.

    startup and configure askozia pbx phone system

    Now Askozia PBX is installed in Hyper-V, with the best optimal configuration. From this point the rest of the install will be the same as if you were installing on a physical PC. You will be able to set the IP Address of the PBX, and access the Web GUI as you would from any other install.