Fygo

Help Center

  • Getting Started
  • How to Install and Initialize FygoOS?
  • How to Install the App and Connect to Fygo NAS?
  • How to Install FygoOS on a Virtual Machine?
  • Troubleshooting System Installation Issues
  • Storage
  • How to Create a Volume?
  • Do Hard Drives Hibernate Automatically?
  • How to Use SSD Cache Acceleration?
  • Fygo TV
  • How to install Fygo TV and create a library?
  • How to create Fygo TV accounts for family and friends?
  • Cannot select a folder when creating a library?
  • Photos
  • How to Back Up Phone Photos?
  • How to Share Photos with Others?
  • AI Photos Feature Guide
  • How to Import Google Photos into Fygo?
  • Video Plays with Black Screen but Has Sound in Web Photos?
  • Remote Access
  • How to Remotely Access Your Fygo NAS?
  • System Settings
  • How to create a new user?
  • How to Use a Wireless Network Adapter?
  • How to Change FygoOS Ports?
  • How to Use the System Configuration Backup and Restore Feature?
  • Frequent Network Errors in System Settings?
  • How to Enable Two-Factor Authentication (2FA)
  • Unable to Complete Two-Factor Authentication (2FA)?
  • How to Enable Email Notification Service
  • Files
  • How to share My Files with other users?
  • How to create a share link for files?
  • How to share a Team Folder?
  • File Services
  • Notes on Mounting Fygo NAS via WebDAV on Windows
  • Notes on Mounting Fygo NAS via NFS on Windows
  • SMB 3 Multichannel Requirements
  • Media File Formats Supported by DLNA
  • Virtual Machine
  • How to Install and Use Virtual Machine?
  • How to Use Virtual Machine Hardware Passthrough?
  • Fygo Sync
  • Fygo Sync Feature Guide
  • How to Use On-Demand Sync
  • Frequently Asked Questions
  • Backup
  • Encrypted Backup Overview
  • iSCSI
  • iSCSI Glossary
  • iSCSI Basic Features
  • User Group Configuration
  • CHAP Configuration
  • Frequently Asked Questions
  • License
  • Fygo License overview and activation guide
  • Fygo License FAQ
  • More
  • Contact Us
  • What is the difference between a local account and a Fygo Account?
  • What is the difference between administrator and standard user permissions?
  • Fygo Beta Disclaimer
  • Rockchip Series eMMC USB Flashing Tutorial
  • Rockchip Series TF Card Flashing Tutorial
  • How to Use Virtual Machine Hardware Passthrough?

    Hardware passthrough is a virtualization technology that allows a virtual machine to directly access physical hardware devices on the host, rather than through an emulated virtualization layer. This enables the virtual machine to directly control the hardware for higher performance and lower latency. Common use cases include but are not limited to:

    1. GPU Passthrough: Supports physical display output and improves graphics processing performance.
    2. Sound Card Passthrough: Enables high-quality audio output through speakers or headphones.
    3. USB Device Passthrough: Facilitates reading USB storage devices or connecting other USB devices.
    4. Network Card Passthrough: Meets network acceleration and complex home networking needs.

    [Risks and Limitations of Hardware Passthrough]

    Hardware passthrough may introduce certain risks and limitations. Incorrect configuration may cause device conflicts or system crashes. Before proceeding, please fully understand the following risks, including but not limited to:

    1. Storage Passthrough Risk: Incorrectly passing through SATA, NVMe, or USB storage devices may damage data on the host, and this is irreversible. Please back up your data beforehand.
    2. Network Card Passthrough Risk: Ensure the host retains an available network card; otherwise, the host may lose network connectivity and become inaccessible.
    3. GPU Passthrough Risk: GPU passthrough has a relatively low success rate and may cause the host to crash. Proceed with caution.

    Hardware passthrough is not recommended for non-professional users. If you proceed, please take precautions including but not limited to: backing up important data in advance, stopping services that depend on the corresponding hardware, and avoiding enabling auto-start for the virtual machine until stability is confirmed.

    [Complexity and Success Rate of Hardware Passthrough]

    Passing through PCI devices requires certain prerequisites. Users need to perform the following configuration steps, including but not limited to:

    1. Enable VT-x (Intel) / AMD-V (AMD) and IOMMU (Intel VT-d / AMD-Vi) hardware virtualization support in the host's BIOS settings.
    2. Declare IOMMU enabled in the host's GRUB configuration, update the GRUB configuration, restart, and verify.
    3. Configure the host to prevent driver loading for the passthrough devices to avoid resource competition, including but not limited to vfio, blacklist, and other modules.
    4. Assign appropriate IOMMU groups for devices on the host to ensure resource isolation.

    Whether passthrough succeeds depends on multiple factors. Common reasons for failure include but are not limited to:

    1. Hardware compatibility: Some older or incompatible devices may not support passthrough.
    2. System compatibility: The operating system or version running in the virtual machine may not fully support hardware passthrough.
    3. Resource competition: Resource competition between the host and virtual machine for the device may cause the host or virtual machine to crash.
    4. Driver compatibility: The hardware device driver may not work correctly in the virtual machine, resulting in successful passthrough but inability to use the device.

    In comparison, USB device passthrough does not require prerequisites, but caution is still needed to avoid damaging data on USB storage devices.

    1. Enable Hardware Passthrough

    Open the Virtual Machine app, click Hardware in the sidebar, find the Hardware Passthrough option, and click the Enable button. After carefully reading the Hardware Passthrough Technology Disclaimer, click Confirm Enable.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Enable Hardware Passthrough screenshot

    2. Configure Hardware Passthrough for Virtual Machine

    In the create or edit virtual machine interface, the Add Device button becomes active after the Hardware Passthrough option is enabled.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Configure Hardware Passthrough for Virtual Machine screenshot

    2.1 Add USB Device

    Click the Add Hardware button, then click Add USB Device.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Add USB Device screenshot

    You will see all USB devices on the current host. Select the USB device you want to pass through to the virtual machine and click the Add button.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Add USB Device screenshot 2

    Finally, click the Confirm button to save, then you can start the virtual machine to verify the passthrough.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Add USB Device screenshot 3

    2.2 Add PCI Device

    Click the Add Hardware button, then click Add PCI Device.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Add PCI Device screenshot

    You will see all PCI devices on the current host. Select the PCI device you want to pass through to the virtual machine from the list, then click the Select button in the lower right corner.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Add PCI Device screenshot 2

    Since PCI devices are memory-isolated by IOMMU groups, all PCI devices in the same IOMMU group must be passed through together. After confirming, click the Add button.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Add PCI Device screenshot 3

    Finally, click the OK button to save, then you can start the virtual machine to verify the passthrough.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Add PCI Device screenshot 4

    3. Virtual Machine Detailed Log Guide

    Due to various factors, the virtual machine may fail to start. You can check the detailed reason in the logs.

    Log path: /var/apps/trim.vm/var/log/error.log

    You can also copy the System Diagnosis Log to Files.

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Virtual Machine Detailed Log Guide screenshot

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Virtual Machine Detailed Log Guide screenshot 2

    virtual machine - How to Use Virtual Machine Hardware Passthrough? - Virtual Machine Detailed Log Guide screenshot 3

    Was this article helpful?