Install Yeastar P-Series Software Edition on Hyper-V

Hyper-V allows you to run multiple operating systems as virtual machines on Windows. This topic describes how to create a virtual machine on Hyper-V and install Yeastar P-Series Software Edition on the created virtual machine.

Prerequisites

  • Check if the version of Hyper-V is 10.0.17134.1 or later.
  • Download an image file of Yeastar P-Series Software Edition.
    Note: Yeastar P-Series Software Edition is supported on Ubuntu System and Debian System.

    For Automatic Installation, you can install Yeastar PBX on Ubuntu System only; For Manual Installation, you can install Yeastar PBX on either Ubuntu System or Debian System.

    Table 1.
    Item Automatic Installation Manual Installation
    Image File Name and Format Yeastar-P_SOFTWARE-auto-{version}-ubuntu.iso

    Example: Yeastar-P_SOFTWARE-auto-83.15.0.22-ubuntu.iso

    Hard Disk Size Minimum 40 GB Minimum 40 GB
    Partition Method Automatic Manual
    Partition Rule

    The system automatically partitions a hard disk as follows:

    • /: 10 GB
    • /swap: 10 GB
    • /home: Remaining Free Space after space for / partition and /swap partition is excluded from the total size.
    You need to manually create the following required partitions, and then you can create others according to your needs.
    • /
    • /swap
    • /home

Procedure

Video Tutorial

Step 1. Enable Hyper-V on your PC

  1. On the desktop, right click and click Apps and Features.
  2. On the right of Settings page, click Programs and Features.

  3. On the left navigation bar, click Turn Windows Features on or off.
  4. In the pop-up window, select Hyper-V and click OK.

  5. Restart your computer after the installation is completed.

Step 2. Create a virtual switch

Create an external switch to share your computer's network with the virtual machine running on it. Based on your computer's network environment, you need to create one or two virtual switches.
Create a virtual switch on a computer with single NIC
  1. On your desktop, go to > Windows Administrative Tools > Hyper-V Manager.
  2. On Hyper-V Manager, click Action > Virtual Switch Manager to create a virtual switch.
  3. Create a virtual switch.

    1. Click New virtual network switch.
    2. In the What type of virtual switch do you want to create? section, select External.
    3. Click Create Virtual Switch.
  4. Set up the virtual switch.

    1. In the Name field, enter a name to help you identify the virtual switch.
    2. In the Connection type section, select External network, and select the physical network card to be paired with the virtual switch.
      Note: The network card must be the one that is physically connected to the network.
    3. Click Apply and Yes to create the virtual switch.
    4. Click OK to close the Virtual Switch Manager window.
Create two virtual switches on a computer with dual NIC
  1. On your desktop, go to > Windows Administrative Tools > Hyper-V Manager.
  2. On Hyper-V Manager, click Action > Virtual Switch Manager to create a virtual switch.
  3. Create a virtual switch.

    1. Click New virtual network switch.
    2. In the What type of virtual switch do you want to create? section, select External.
    3. Click Create Virtual Switch.
  4. Set up the virtual switch.

    1. In the Name field, enter a name to help you identify the virtual switch.
    2. In the Connection type section, select External network, and select the physical network card to be paired with the virtual switch.
      Note: The network card must be the one that is physically connected to the network.
    3. Click Apply and Yes to create the virtual switch.
  5. Repeat Step 3 to Step 4 to create another virtual switch, and select the other physical network card.

Step 3. Create a virtual machine

  1. On Hyper-V Manager, go to Action > New > Virtual Machine.
  2. Review the Before You Begin content and click Next.
  3. Specify a name to help you identify the virtual machine, choose a location to store configuration files of the virtual machine, and click Next.

  4. Select a generation for the machine and click Next.

  5. Set the Startup Memory, select the checkbox of Use Dynamic Memory for this virtual machine, and click Next.

  6. In the drop-down list of Connection, select the virtual switch created for the virtual machine, and click Next.
    Note: If you computer has dual NIC, you just select either one of the virtual switches that you have created, as you will need to add another network adapter for the other virtual switch later.

  7. Specify a name for the virtual hard disk, select a location, specify a size, and click Next.

  8. Select Install an operating system from a bootable CD/DVD-ROM, select an .iso file, and then click Finish.

    The virtual machine is created and displayed on the virtual machine list.

  9. Right click the virtual machine, then click Settings to check and ensure that there is only one hard disk on the virtual machine, or an installation error may occur.

  10. If your computer has dual NIC, you need to add another network adapter for the other virtual switch.
    1. Click Add Hardware, select Network Adapter, then click Add.

      The network adapter is added successfully.

    2. In the Virtual switch drop-down list, select the other virtual switch, then click Apply and OK.

Step 4. Install Yeastar P-Series Software Edition on the virtual machine

Follow the instructions below based on different installation methods to install P-Series Software Edition.

Automatically install Yeastar P-Series Software Edition on the virtual machine
  1. Right click the virtual machine, click Start to start the virtual machine.

  2. Right click the virtual machine, click Connect to connect to the virtual machine.

  3. Wait till the installation process is not running, then press Enter.

    If IPPBX login is displayed and no errors like wait for basicsrv run ok occur, it indicates that P-Series Software Edition is installed.

Manually install Yeastar P-Series Software Edition on the machine
  1. Right click the virtual machine, click Start to start the virtual machine.

  2. Right click the virtual machine, click Connect to connect to the virtual machine.

  3. Select Continue without updating or wait for seconds to check if there is a new version of installer.

  4. Select Custom storage layout and select Done.

  5. In the AVAILABLE DEVICES section, create the required partitions and custom partitions according to your needs.
    Note: The following partitions are required.
    Partition Name Description Format Recommended Partition Space
    /swap This is where you extend the system memory by dedicating part of the hard drive to it. swap Minimum 10 GB
    / The slash / alone stands for the root of the file system tree. ex4 Minimum 10 GB
    /home This holds all the home directories for the users. ex4 Remaining Free Space after other partitions created or second drive.
    1. Select the local disk, then select Add GPT Partition to add a /swap partition.

    2. Select the local disk, then select Add GPT Partition to add a / partition.

    3. Select the local disk, then select Add GPT Partition to add a /home partition.

    Partitions are created successfully and displayed on the FILE SYSTEM SUMMARY list, as shown below.

  6. Select Done.
  7. In the pop-up dialog box, select Continue to start installing P-Series Software Edition.

  8. Wait till the installation process is not running, then press Enter.

    If a IPPBX login prompt is displayed and no errors like wait for basicsrv run ok occur, it indicates that P-Series Software Edition is installed.

(Optional) Step 5. Change the default IP address of Yeastar P-Series Software Edition

Now Yeastar P-Series Software Edition is installed with default IP address 192.168.5.150. If you prefer another IP address or your PC is on a different network segment such as 192.168.28.X, you can change the PBX's default IP address.
Important: PBX's IP address MUST be on the same network segment as your PC, or you can NOT access the PBX from your PC.

We assume that your PC is on the network segment 192.168.28.X and your desired PBX IP address is 192.168.28.45. Refer to the following instructions to change the PBX's IP address.

  1. Access the PBX via SSH.
    1. At the IPPBX login prompt, type support and press Enter.

    2. At the Password prompt, type QhcyaxsGcywymg2022 and press Enter.

      Note: Generally, you will NOT get any visual feedback from the screen when you type the password.

      You are presented with a prompt, displaying the Ubuntu information and system information. In the meanwhile, you are given the option to ping an IP address, view or update current network configuration, and log out the support account. You can type a specific number to run the command of the corresponding number.

  2. Type 1 and press Enter to update the network configuration.

  3. Change the IP address of Yeastar P-Series Software Edition as follows.

    1. At the Please enter IP address prompt, type the desired IP address and press Enter.

      In this example, type 192.168.28.45.

    2. At the Please enter netmask prompt, type the subnet mask and press Enter.

      In this example, type 255.255.255.0.

    3. At the Please enter gateway prompt, type the gateway address and press Enter.

      In this example, type 192.168.28.1.

      It takes about two minutes to change the PBX's IP address from 192.168.5.150 to your desired IP address.

Result

Yeastar P-Series Software Edition is installed successfully.

Open a web browser, enter the PBX's IP address in the address bar, and press Enter.

What to do next

Yeastar P-Series Software Edition is inactivated and not ready for use. To activate the PBX, see Activate and Initially Set up Yeastar P-Series Software Edition.
Important: With P-Series Software Edition activated, next time you want to access the PBX via SSH, you should use the username support and the console password configured on PBX web portal (Security > Security Settings > Console/SSH Access > Console > Console Password).