How to use Virtual Machine High Availability (VMHA) in Virtualization Station?


Last modified date: 2025-10-09

Applicable Products

  • QuTS hero h5.3.0 or later
  • Virtualization Station 4.0 Beta or later

Introduction

VM High Availability (VMHA) is a feature in Virtualization Station that enables automatic failover of virtual machines between two QNAP NAS devices. It helps ensure service continuity in case of hardware failure by minimizing downtime.

This tutorial guides you through the complete setup process, including preparing your environment, creating a VMHA device pair, creating and managing VMHA groups, configuring failover, and troubleshooting common issues.


VMHA Requirements

System Requirements

ComponentRequirement
Operating systemQuTS hero h5.3.0 or later on both NAS devices.
Note
For best compatibility, it is recommended to use NAS devices that are running the same version of QuTS hero.
ProcessorBoth NAS devices must use CPUs from the same vendor (e.g., Intel® or AMD®).
MemoryThe destination NAS must have enough memory to run the migrated virtual machines from the source NAS during failover.
StorageBoth NAS devices must have sufficient space for Virtualization Station to create a shared folder to store the VMHA disk images. Disk images must be stored on the NAS’s internal storage only, and external storage cannot be used.

Network Requirements

ComponentRequirement
Network connectionsAt least two independent network connections are required between the two NAS devices.
These must be on different subnets: one for the management link and one for the availability link (used for data synchronization).
IP addressesAll interfaces used for HA must use static IPv4 addresses. IPv6 and VLAN settings must be disabled.
Firewall portsIf a firewall is in use, ensure that TCP ports 16500-16550 are open between the two NAS devices to allow HA communication.
For a complete list of service ports used by QNAP systems, see What network ports are used by QTS, QuTS hero, and QuTScloud systems.
Availability linkA network speed of at least 2.5 Gbps is strongly recommended, as link speed directly affects VM performance. For best performance, use a direct Ethernet connection between the NAS devices, avoiding switches when possible.
SSH serviceThe SSH service must be enabled on both NAS devices. For details, see Configuring SSH connections in the QuTS hero User Guide.

Preconfiguration Requirements

  • Configure compatible virtual switches on both NAS devices using Network & Virtual Switch. While the virtual switch names do not need to match, the interface assignments and network settings must be aligned. For details, see Virtual switch configuration in the QuTS hero User Guide.
  • Ensure that both NAS devices are running the same version of QuTS hero. If the firmware versions differ, VMHA might not function as expected. To update the NAS firmware, see Firmware update in the QuTS hero User Guide.
  • Configure both NAS devices to use the same NTP server for time synchronization. For details, see Configuring time settings in the QuTS hero User Guide.
  • Ensure required ports are open or forwarded if using firewalls or NAT.
    Warning
    • VMHA cannot be enabled if either NAS is part of a Hero HA cluster. Ensure that both devices are in standalone mode by unpairing any existing Hero HA configuration before proceeding.
    • Both NAS devices must run the same version of Virtualization Station. If the versions differ, such as after a system or app update, all HA protection groups will be paused automatically until version consistency is restored.

Procedure

Setting up virtual machine high availability (VMHA) involves three main steps to ensure that your virtual machines remain operational if the source NAS becomes unavailable.

  1. Create an HA Device Pair: Connect two NAS devices to form a high availability group. This step only pairs the two NAS devices, including verifying requirements, configuring the network connection for synchronization, and binding the virtual switches used by the VM. It does not include the future HA synchronization direction for the VMs.
  2. Create an HA Availability Group: Defines which virtual machine to protect, sets up the synchronization direction, and allocates storage on both NAS devices. This group manages the backup and recovery process for the VM.
  3. Configure the Failover Policy: Specifies the conditions that will automatically trigger failover, such as hardware issues or high resource usage.

Completing these steps ensures that selected virtual machines can be automatically restarted on the destination NAS in the event of a failure, minimizing service disruption.

Create an HA Device Pair

  1. Open Virtualization on the local NAS.
  2. Go to High Availability.
  3. Click Configure Paired Devices.
    The Configure Paired Devices for VM Availability wizard opens.
  4. Click Start.
  5. Review the requirements for paired devices.
  6. Click Next.
  7. Configure the local device settings.
    Important
    If you are using a direct physical connection (such as a dedicated Ethernet cable between the two NAS devices), do not select the adapters to configure the M-link (management link). Assigning an IP address in this scenario can cause Virtualization Station to report connection errors.
    1. Specify the IP address of the local device.
    2. Specify the device port number.
    3. Optional: Select Use SSL connection.
    4. Specify the device username.
    5. Specify the device password.
  8. Click Next.
  9. Configure the remote device settings.
    1. Specify the IP address of the remote device.
    2. Specify the device port number.
    3. Optional: Select Use SSL connection.
    4. Specify the device username.
    5. Specify the device password.
    6. Optional: Click Test.
      Virtualization Station tests the local and remote device connection.
  10. Click Next.
    The Configure Paired Devices and Their Credentials window appears.
  11. Review the local and remote device settings.
  12. Click Next.
    The Configure Availability Link (A-Link) window appears.
  13. Select the A-link adapters for the local and remote device.
    Note
    Click List All to view all the adapters linked to the local or remote device.
  14. Click Test.
    Virtualization Station tests the A-link connectivity.
  15. Click Next.
    The Configure VM Network Settings window appears.
  16. Configure the VM network settings for the paired devices.
    1. Click Add.
      The Pairing VM Networks window appears.
    2. Select the virtual switches for the local and remote devices.
      Important
      • The virtual switch or switches you select in this step determine which VMs can be protected by HA. Only VMs connected to the selected virtual switches will be available for selection.
      • The wizard filters out incompatible virtual switches automatically. This includes switches that are not linked to a physical network adapter, reserved for system use (such as Docker or LXD), or configured with NAT or DHCP server functions.
        If a virtual switch is missing from the list, review its settings in Network & Virtual Switch.
    3. Click Add.
      Virtualization Station adds the virtual switches to the paired devices.
  17. Click Next.
    The Other Settings window appears.
  18. Configure the failover policy settings.
    For details, see Configuring Failover Policy Settings.
  19. Click Next.
  20. Review the settings.
  21. Click Finish.

Virtualization Station creates the HA device pair.

Tip

To manage the configured VMHA device pair, go to High Availability > Paired Devices.

  • Go to Actions > Edit Paired Devices to update the configuration.
  • Go to Actions > Unpair Paired Devices to remove the pairing.

Configure an HA Availability Group or Plan

Note
The Beta version of Virtualization Station 4.0 allows each NAS to create up to two HA availability groups, with each group limited to a single virtual machine.
  1. Log in to your local NAS.
  2. Open Virtualization Station.
  3. Next to Create Virtual Machine, click .
  4. Click Create Availability Group.
    The Availability Groups window appears.
  5. Click Start.
    The Create Availability Group window appears.
  6. Select the synchronization direction.
    Note

    The synchronization direction defines which NAS acts as the source and which NAS receives the VM data as a high-availability backup. The list of virtual machines displayed during the selection step depends on the chosen source NAS.

  7. Click Next.
  8. Configure the HA group settings.
    1. Specify an HA group name.
      Note
      A shared folder with the same name as the HA protection group is created in the selected storage pool on both the local and remote NAS devices. Ensure that the folder name is unique on each device to prevent naming conflicts.
      Warning
      Do not rename this folder for any VM that is already protected, as this may cause unexpected issues.
    2. Select the source device storage pool.
    3. Select the destination device storage pool.
    4. Specify the allocated quota for shared folder.
      Note
      Click Use Available Pool Capacity to automatically assign the smaller of the available capacities from the selected local and remote storage pools.
    5. Click Create.
      The High Availability (HA) Group Configuration window appears.
    6. Verify the configured group settings.
  9. Click Next.
    The Virtual Machines window appears.
  10. Under the source device (local or remote device), click List Available.
  11. Select one or more virtual machines to include in the VMHA deployment.
  12. Click Next.
    The Settings window opens.
  13. Optional: Select Automatically resume the plan.
    This option automatically restarts the HA plan after a reboot or interruption.
  14. Click Next.
    The Summary window opens.
  15. Review the HA group settings.
  16. Click Create.
    Virtualization Station creates the HA availability group.

Configure Failover Policy Settings

  1. Open Virtualization Station.
  2. Go to High Availability > Failover Policy.
  3. Configure the monitoring interval. This defines how frequently the system checks for failover conditions.
  4. Optional: Under Triggered Events, select the conditions that should trigger a failover. You can configure the following settings:
    • Backup power mode: Initiates failover when the device runs on an Uninterruptible Power Supply (UPS).
    • PSU redundancy loss: Initiates failover when the redundant power supply unit is disconnected or malfunctioning.
    • System fan failure: Initiates failover when a system fan is not functioning properly.
    • CPU load average exceeds threshold: Initiates failover when average CPU usage exceeds a defined percentage over a set duration.
    • Memory load average exceeds threshold: Initiates failover when average memory usage exceeds a defined percentage over a set duration.
    • Disk health error: Initiates failover when a virtual machine disk experiences a health issue or when a shared folder volume encounters an error.
    • Network virtual switch error: Initiates failover when the virtual switch encounters a network-related error.
  5. Click Apply.
    Virtualization Station saves and applies the failover policy settings to all the VMHA availability groups.

VMHA Monitoring, Troubleshooting, and Diagnostics

Monitor and Manage VMHA Groups

You can view the status of all VMHA groups, perform actions such as pause, resume, edit, or delete, and monitor synchronization progress and resource usage across both NAS devices.

Perform VMHA Actions

After an HA protection group is created, you can monitor and manage its status from the High Availability > Plans page.

  1. Open Virtualization Station.
  2. Go to High Availability > Plans.
  3. Under Action, click .
  4. Identify a VMHA group or plan.
  5. Perform any of the following VMHA plan tasks.
    TaskDescription
    SwitchoverSwitches VMs between two NAS devices while keeping them online and operational, without requiring a reboot or suspension.
    PauseTemporarily suspends VMHA synchronization and failover protection for the HA group.
    DeleteRemoves the VMHA group and disables protection for the associated VM.
    ResumeRestarts VMHA synchronization and failover monitoring for the group.
    EditOpens the VMHA group settings for configuration changes.
Note
If the Virtualization Station versions on the two NAS devices become inconsistent, a warning banner will appear on this page. All HA protection groups will be automatically paused until version consistency is restored.

Status Descriptions

StatusDescription
NormalThe VMHA group is operating normally with no issues.
SyncingInitial or scheduled synchronization is in progress between the source and destination NAS.
Pause

Synchronization is temporarily halted. The availability group is not actively syncing, but its configuration is preserved.

Note
This state can occur automatically if Virtualization Station is stopped or the NAS is shut down.
WarningVMHA protection is still active, but one or more issues may affect failover. Review and address the underlying causes promptly.
ErrorOne or more critical failures have occurred. The VMHA group is no longer functioning correctly and requires immediate attention.

Diagnose and Troubleshoot Common VMHA Conditions

To ensure stable and reliable HA operation, monitor system conditions and avoid configuration changes that may affect failover readiness.

Common Warning Conditions

WarningDescriptionImpact
Insufficient memory on the destination NASThe available memory on the destination NAS is not enough to start the protected VM during a failover.Failover will fail unless memory resources are increased or freed.
Degraded availability linkThe availability link throughput has dropped below 50 Mbps or latency has exceeded 1 millisecond.Reduced sync performance and increased recovery point objective (RPO).
Device pair configuration issuesMisconfigurations such as unstable management links or subnet mismatches between paired Virtual Switches.Failover reliability may be compromised if not corrected.
Warning
Do not modify or delete any virtual switch that is part of a VMHA pair. Changing or removing a paired virtual switch will result in a loss of network connectivity for the protected VM after failover and may cause the HA group to enter an error state.

Troubleshoot VMHA Group Issues

IssueRecommendation
Virtualization Station version mismatchEnsure both NAS devices are running the same version of Virtualization Station. Check App Center for updates. Restart the app if needed.
Insufficient CPU or memory on source or destination NASCheck system resource usage on both the source and destination NAS. Failover may fail if either system lacks sufficient CPU or memory to complete the process. Shut down unused VMs or services to free up resources. If necessary, consider upgrading the system memory.
Slow synchronization speeds or high latencyUse a direct network cable between NAS devices, or assign the availability link to a dedicated, high-speed subnet.
Virtual switch pairing errorsOpen Network & Virtual Switch and confirm both switches are on the same subnet and have no conflicting settings (e.g., NAT or DHCP).
Cluster fails to create or joinEnsure both NAS devices are not already members of another Hero HA or VMHA cluster. Unpair any existing clusters before proceeding.

Manage VMHA Logs

You can view and download VMHA-related logs to assist with troubleshooting, auditing, or verifying the system’s failover behavior. These logs provide detailed records of synchronization events, status changes, and system alerts, helping administrators diagnose issues and maintain operational visibility.

  1. Open Virtualization Station.
  2. Go to High Availability > Logs.
  3. Perform any of the following tasks.
    • Search logs: Enter keywords in the search bar to filter log entries by event type, VM name, or timestamp.
    • Download logs: Click Save under Actions to export the current VMHA log data as a CSV file for offline analysis or support.

Further Reading

Was this article helpful?

Thank you for your feedback.

Please tell us how this article can be improved:

If you want to provide additional feedback, please include it below.

Choose specification

      Show more Less

      Choose Your Country or Region

      open menu
      back to top