君相见的博客

  • 博客首页
  • 软件应用
  • 操作系统
  • 经验分享
  • 数据存储
  • 网络相关
  • 虚拟化
  • 在线视频
  • 新闻内容
  1. 首页
  2. 数据存储
  3. 正文

unraid直通USB键盘报错解决办法

2020年12月26日 4394点热度 0人点赞 1条评论

错误代码“vendor cannot be 0”

如果您有多个 USB 设备具有相同的供应商和产品,则直通不起作用,因为 UI 当前使用 USB 构建基于供应商/ 产品而不是地址总线+ 设备+ 语法的 XML 文件。由于这种情况,如果您尝试通过任何 usb 设备具有重复的供应商/产品,您将无法启动您的 VM。

 

解决方法是手动将 xml 编辑到地址语法。

 

例子:

 

总线 011 设备 003: ID 08bb:2704 德州仪器音频编解码器

总线 011 设备 002: ID 08bb:2704 德州仪器音频编解码器

 

 

当前语法:

 

<hostdev mode='subsystem' type='usb' managed='yes'>
      <source >
        <vendor id='0x08bb'/>
        <product id='0x2704'/>
      </source>
     </hostdev>

 

这将导致非启动 VM

 

 

固定语法:

 

<hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <address bus='11' device='2'/>
      </source>
    </hostdev>

 

添加的USB设备直通代码:

<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<address bus='1' device='2'/>
</source>
<alias name='hostdev0'/>
<address type='usb' bus='0' port='1'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<address bus='1' device='5'/>
</source>
<alias name='hostdev1'/>
<address type='usb' bus='0' port='2'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<address bus='1' device='7'/>
</source>
<alias name='hostdev2'/>
<address type='usb' bus='0' port='3'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<address bus='1' device='8'/>
</source>
<alias name='hostdev3'/>
<address type='usb' bus='0' port='5'/>
</hostdev>
本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可
标签: Unraid
最后更新:2020年12月26日

君相见

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • 君相见

    签到成功!签到时间:2021/1/25 下午5:02:52,每日打卡,生活更精彩哦~

    2021年1月25日
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    回复 君相见 取消回复

    COPYRIGHT © 2023 君相见的博客. ALL RIGHTS RESERVED.

    51LA

    Theme Kratos Made By Seaton Jiang

    京ICP备16003177号-5

    京公网安备11010802032358号