TrueNAS 篇七:TrueNAS Scale 22.12.1 惊喜新特性 |
您所在的位置:网站首页 › esxi67支持usb网卡吗 › TrueNAS 篇七:TrueNAS Scale 22.12.1 惊喜新特性 |
TrueNAS 篇七:TrueNAS Scale 22.12.1 惊喜新特性——usb设备直通(我用绿联usb网卡来简单示例一下)
2023-03-07 00:22:58
35点赞
30收藏
12评论
上次写文关于TrueNAS更新至22.12.1的一些特性,漏掉了!最近使用才发现另一个很不错的新特性 ——— usb passthrough ,简单说就是usb设备透传。 说到这里,( pve 笑而不语,unraid 悄掩红唇)。其它nas系统这个特性早早就开放了,毕竟基于kvm的虚拟化技术,usb直通已经很成熟了。TrueNAS Scale 好多特性还在墨迹,比如 IOMMU,SR-IOV,不知道什么时候上线。
我们常说的usb设备直通,其实准确的来说,不应该说是直通,usb设备要想真正的直通,最简单的办法是把相关的usb控制器——它是一个pci设备,通过直通这个pci设备,才能做到真正的usb设备直通。不过这样做不是很方便,大部分的主板都只有一到两个usb控制器。为什么要在这里说不是直通呢 ,这个透传的原理是模拟一个usb控制器,所以多少都会影响性能,如果通过直通usb控制器的办法,性能损失更小,如何选择? 根据使用场景在性能和方便这两个方案中自行抉择。 下面用我的一个usb网卡来示例如何做到usb设备的透传。此次主角 绿联 usb 千兆网卡网卡 第二步 打开虚拟化相关页面
XHCI controller support----------------------- QEMU has XHCI host adapter support. The XHCI hardware design is muchmore virtualization-friendly when compared to EHCI and UHCI, thus XHCIemulation uses less resources (especially cpu). So if your guestsupports XHCI (which should be the case for any operating systemreleased around 2010 or later) we recommend using it: XHCI supports USB 1.1, USB 2.0 and USB 3.0 devices, so this is theonly controller you need. With only a single USB controller (andtherefore only a single USB bus) present in the system there is noneed to use the bus= parameter when adding USB devices. EHCI controller support ----------------------- The QEMU EHCI Adapter supports USB 2.0 devices. It can be used eitherstandalone or with companion controllers (UHCI, OHCI) for USB 1.1devices. The companion controller setup is more convenient to usebecause it provides a single USB bus supporting both USB 2.0 and USB1.1 devices. See next section for details. 建议在支持的操作系统上都选择 qemu-xhci控制器 ,性能更好,也更加友好。 基本上2010年以后的操作系统都是支持这种控制器的。 4.3 这里用windows 10 再示例一次 进入Linux虚拟机 lsusb
欢迎打赏、拍砖 出镜产品百科![]() ![]() ![]() |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |