Deployment to Microsoft Hyper-V
To deploy the Phonexia Speech Platform 4 Virtual Appliance, you need these two
ZIP files, downloaded from Phonexia:
– Virtual Appliance ZIP file
– Licensed models ZIP file
Preparation: Operating system, networking, disks
Operating system
Hyper-V is available on Windows Desktop and Windows Server. However, only Windows Server supports GPU passthrough, via advanced virtualization features such as Discrete Device Assignment (DDA).
If a GPU compute acceleration inside the virtual appliance is required - like in the case of Enhanced Speech To Text Based on Whisper - a server version of Hyper-V must be used, with a properly configured DDA.
If a GPU capabilities inside the virtual appliance is not required, either Windows Desktop or Windows Server can be used, depending on your environment and licensing.
| GPU Passthrough capable | |
|---|---|
| Hyper-V on Windows Server 2019, 2022, 2025 | ✅ |
| Hyper-V Server 2019 | ✅ |
| Hyper-V on Windows 10, 11 | ❌ |
Networking
Hyper-V implements the concept of software Virtual Switches, which work just
like physical switches.
There are three main types of Virtual Switches: private, internal and external.
Additionally, there is a Default Switch, which is a special kind of internal
switch with additional basic NAT-based internet connectivity to virtual machines
without requiring manual configuration.
For Speech Platform Virtual Appliance, we recommend creating External
switch. This should save you from a hassle with additional port forwarding
rules configuration for accessing the virtual appliance from your internal
network.
Virtual switch can be created in the Virtual Switch Manager, accessible in
the Hyper-V Manager from your server context menu or from the Actions
pane.
The following table shows an overview of switch types and the type of networking provided by each switch type.
| Switch type | VM to Host | VM to VM | VM to Internet | LAN Access |
|---|---|---|---|---|
| Private | ❌ | ✅ | ❌ | ❌ |
| Internal | ✅ | ✅ | ❌ | ❌ |
| External | ✅ | ✅ | ✅ | ✅ |
| Default | ✅ | ✅ | ✅ via NAT | ❌ |
Step 1: Create Virtual Appliance
- Make sure to have the virtual switch created (see above).
- Start creating a new virtual machine. This opens the New Virtual Machine Wizard.
- In the Specify Name and Location section, enter the name of the virtual machine and optionally select specific location for storing the virtual machine files.
- In the Specify Generation section, set Generation 2.
- In the Assign Memory section, assign at least 32768 MB and make sure that the Use Dynamic Memory for this virtual machine check box is cleared (this is required specifically for GPU passthrough).
- In the Configure Networking section, select the virtual switch you have prepared previously.
- In the Connect Virtual Hard Disk section, select the Use an existing
virtual hard disk option and select the first converted VHDX file
speech-platform-<version>-disk001.vhdx.
The second disk needs to be connected after creating the virtual machine. - Proceed to the Summary section, verify the configuration and finish creating the virtual machine.
After importing the virtual machine to Hyper-V, it's necessary to further change some of its parameters.
Right-click on the machine in the list and select Settings... to open the setting dialog.
- In the Security section, clear the Enable secure boot check box.
- In the Processor section, make sure that Number of virtual processors is at least 4.
- In the SCSI Controller section (where the first connected disk is
already listed), select "Hard Drive" from the list and click on Add
button. Then select the newly added "Hard Drive" item, select the Virtual
hard disk option and then select the second converted VHDX disk
speech-platform-<version>-disk002.vhdx.
Additional changes are required for GPU Passthrough:
- In the Checkpoints section, clear the Enable checkpoints check box.
- In the Automatic Stop Action, select the Turn off the virtual machine option.
Click OK to save the settings.
If GPU Passthrough is required, continue with the following section. Otherwise,
the virtual machine is ready to run!
GPU passthrough configuration
For the Virtual Appliance to use your machine's GPU, a Windows Server feature called Discreet Device Assignment (DDA) needs to be enabled.
Prepare virtual machine
Before setting up the GPU passthrough itself, make sure that the corresponding virtual machine settings are properly set according to the instructions above:
- the Dynamic Memory must be disabled
- the Checkpoints must be disabled
- the Automatic Stop action must be set to Turn off the virtual machine
Configure Discrete Device Assignment
To configure Discrete Device Assignment (DDA), open a PowerShell session with administrator privileges.
- Set cache limits for Memory Mapped IO space, which is required for the
CPU to communicate with the device.
TheHighMemoryMappedIoSpacevalue should be the "total GB of framebuffer memory on all GPUs attached to the VM, rounded to the power of 2, and then doubled", e.g.
for 1 GPU with 12 GB, set (1 × 12 ≈ 16) × 2 =32Gb
for 1 GPU with 16 GB, set (1 × 16) × 2 =32Gb
for 1 GPU with 24 GB, set (1 × 24 ≈ 32) × 2 =64Gb
for 3 GPU with 8 GB each, set (3 × 8 ≈ 32) × 2 =64GbSet-VM -Name VMName -GuestControlledCacheTypes $True -LowMemoryMappedIoSpace 3Gb -HighMemoryMappedIoSpace <value> - Identify the device ID and location of your GPU. You will need these in
the following steps.
Use these commands and identify the target GPU in the outputs.Get-PnpDevice | Where-Object {$_.Present -eq $true} | Where-Object {$_.Class -eq "Display"}|select Name,InstanceIdOnce you see the output of these commands, indentify the target GPU.Get-PnpDevice -Class Display | Where-Object {$_.Present -eq $true} | ForEach-Object { Write-Output "$($_.FriendlyName) has a device id of $($_.DeviceId) and is located at $($_ | Get-PnpDeviceProperty DEVPKEY_Device_LocationPaths | Select-Object -ExpandProperty Data | Where-Object { $_ -like "PCIROOT*" })"; } - The device must be disabled in the host system using the following
command:
(The Instance-ID was returned by the first command from the previous step.)Disable-PnpDevice -InstanceId "<Instance-ID>" -Confirm:$false - Now it's time to detach the device from the host system.
(The Device-Location was returned by the second command from step 2.)Dismount-VmHostAssignableDevice -LocationPath "<Device-Location>" -Force - Last step is to attach the dismounted device to your VM using the
following command:
Add-VMAssignableDevice -VMName <VM-Name> -LocationPath "<Device-Location>"
Now power on the VM and after boot is finished, log in. To verify the GPU is
functional, enter the command nvidia-smi. If you see your GPU in the output,
the passthrough was successful.
Step 2: Run Virtual Appliance
After you have imported and configured the setting of the virtual appliance, you can finally start it.
The console displays the boot log with various messages as startup tasks are
completed.
This typically takes several minutes.
When the system is fully up and running, the console shows a welcome screen similar to this:
Rocky Linux 10.1 (Red Quartz)
Kernel 6.12.0-124.56.1.el10_1.x86_64 on an x86_64
____ _ _ ___ _ _ _______ _____ _
| _ \| | | |/ _ \| \ | | ____\ \/ /_ _| / \
| |_) | |_| | | | | \| | _| \ / | | / _ \
| __/| _ | |_| | |\ | |___ / \ | | / ___ \
|_| |_| |_|\___/|_| \_|_____/_/\_\___/_/ \_\
____ _ ____ _ _ __
/ ___| _ __ ___ ___ ___| |__ | _ \| | __ _| |_ / _| ___ _ __ _ __ ___
\___ \| '_ \ / _ \/ _ \/ __| '_ \ | |_) | |/ _` | __| |_ / _ \| '__| '_ ` _ \
___) | |_) | __/ __/ (__| | | | | __/| | (_| | |_| _| (_) | | | | | | | |
|____/| .__/ \___|\___|\___|_| |_| |_| |_|\__,_|\__|_| \___/|_| |_| |_| |_|
|_|
.
.
.
speech-platform login:
Step 3: Upload licensed models and configure the platform
The virtual appliance distribution contains only the bare Speech Platform system. To actually breathe life into the system it's necessary to upload the licensed models to the appliance and configure the technologies.
These steps can be done either semi-automatically via the platform GUI, or manually via SSH access to the platform console.
- GUI (Settings)
- GUI (File Browser)
- Console
- Open Settings and then go to Licenses section. If the system asks for a password, enter the password and click on Show licenses button.
- Click on Add new license button and follow the instructions in the opened dialog to upload the ZIP file with licensed models (if you already have models present in the Speech Platform, you can upload only license YAML file).
A percentage indicator shows the upload progress. After finishing the upload,
the system starts extracting the uploaded ZIP file and then runs an automatic
configuration.
Depending on the provided technologies and models it may take up to several
minutes to fully load the new configuration.
The Virtual Appliance contains a Filebrowser tool, which simplifies some
management tasks like uploading the models and accessing and editing the
appliance configuration files.
The Filebrowser is accessible at http://<virtual-appliance-ip>/filebrowser.
- Open the Filebrowser
- Click on the upload icon in the top right corner
- Click on the File option and browse for the licensed models ZIP file
(
licensed-models.zip).
A small pop-up window in the bottom right corner will show the upload progress. You can also click on the up arrow to show the graphical progress bar.
When the upload is finished (progress is at 100 %), Filebrowser automatically starts extracting the uploaded ZIP file and then runs an automatic configuration. While these processes are executed, the upload progress pop-up stays shown with the progress stuck at 100 %, seemingly doing nothing - this is a sign of the background tasks still being in progress.
When the progress pop-up disappears, it means that the extraction and
configuration is finished.
Depending on the provided technologies and models it may take up to several
minutes to fully load the new configuration.
Upload the licensed models to the appliance and configure the technologies from
the command line terminal using the following steps.
Use the default password InVoiceWeTrust when asked.
- Upload the licensed models ZIP file from your host/client computer to the
virtual appliance via scp
(default SSH port is22when using bridged networking, or usually2222when using NAT):scp -P <virtual-appliance-port> licensed-models.zip phonexia@<virtual-appliance-ip>:/data/ - Connect to the virtual appliance via SSH and change directory to
/data:ssh phonexia@<virtual-appliance-ip> -p <virtual-appliance-port>cd /data - Extract the licensed models ZIP file. The included directory structure
ensures that all files are extracted to their proper locations.
unzip licensed-models.zip
- Finally, run the automatic configuration script:
/home/phonexia/scripts/configure-speech-platform.sh --auto-configure
After the configuration script finishes, depending on the provided technologies and models it may take up to several minutes to fully load the new configuration.
The automatic configuration
- detects which models and licenses were extracted from the ZIP file and automatically turns on the corresponding technologies and configures them to use the provided models
- detects the available hardware and if a GPU is present, it enables GPU processing for technologies which require GPU for reasonable processing speed