Files
Reims-Go/plugins/usb-redir/README.md
T

1.8 KiB

USB 直通(原生)

在 Windows x64 的 Reims-Go 中导入本插件 ZIP,再启用「USB 直通(原生)」。在插件面板设置预览包目录或其中的 Windows-USB 目录。使用可信来源的助手包,核对其校验和再启用。

  1. 启动使用支持 QEMU usb-redir 的运行时的 Reims 虚拟机。已经启用其他 USB 直通方案时,先正常释放它的会话。
  2. 在面板选择正在运行的虚拟机,刷新 USB 设备,勾选可用设备。如果 Windows 询问管理员权限,确认后按界面提示拔出设备并插回原端口。
  3. 取消勾选发起释放。若面板提示拔出设备,保持断开,等 Windows 驱动恢复完成后再插入。遇到恢复错误时遵循助手包内的恢复说明。

Windows-USB 包需要包含 scripts/attach.py 和 scripts/qmp-relay.exe,以及 deps/python、deps/powershell 和 deps/libusb-win32。助手在 Windows 中管理签名过滤驱动、设备能力和 QEMU 会话。每台宿主机同时只能进行一个驱动会话。

Build / 构建

On Windows, use Go and a compatible Reims-Go executable from this repo:

pwsh -File plugins/usb-redir/build.ps1 -ReimsGoExe C:\Tools\reims-go.exe -OutputPath D:\Preview\reimscommunity.usb-redir-0.1.0-alpha.1.zip

The build validates the ZIP with plugin doctor --json. The ZIP contains the sidecar and panel; the Windows-USB helper, signed drivers, QEMU runtime, and Python dependencies are distributed with the separate preview kit.

The sidecar handshake, plugin data layout, panel bridge and packaging pattern adapt the Apache-2.0 community mango6i/reims-go-usb-passthrough v0.1.0-beta.6 source. Pinned community source