哪些虚拟机管理程序允许原始 PCI 访问?
我试图找出哪个虚拟机管理程序允许我向虚拟机授予对专用 PCI 卡(例如电话卡)的访问权限。 到目前为止,我已经尝试过 VMWare ESXi 服务器,但它似乎不允许我这样做。 我听说 Microsoft Virtual Server 确实允许这样做,但我还没有找到任何支持文档。
I am trying to find out which Hypervisor will allow me to grant access to specialized PCI cards (such as a telephony card) to a virtual machine. So far I have tried out VMWare ESXi server and it doesn't seem to allow me to do this. I have heard that Microsoft Virtual Server does allow this, but I haven't been able to find any supporting documentation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,Xen 可以成功地做到这一点。 它称为 PCI 直通: http://wiki.xen.org/wiki/Xen_PCI_Passthrough
我'我已经使用我系统的 IOMMU 成功地为 Windows 和 Linux 来宾以及 Xen 4.x 完成了此操作。 根据特定系统中的 PCI 层次结构,可以将哪些设备分配给哪些来宾有一些限制。 您可以在 Linux 中使用“lspci -t”(“树”)查看您的文件。
IOMMU 位于树中相当高的位置,因此在类似笔记本电脑的系统上,可能没有太多可用的分区。 不过,几乎总是可以分配附加 PCIe 卡。
Yes, Xen can do this successfully. It is called PCI Passthrough: http://wiki.xen.org/wiki/Xen_PCI_Passthrough
I've done this successfully for both Windows and Linux guests with Xen 4.x, using my system's IOMMU. There are some restrictions on which devices can be assigned to which guests based on the PCI hierarchy in your particular system. You can view yours in Linux using 'lspci -t' (for "tree").
The IOMMU is located fairly high up in the tree, so on laptop-like systems, there may not be much partitioning available. Add-in PCIe cards can almost always be assigned, though.
我会研究 Xen,看来您可以在主机操作系统上加载后端 xen 驱动程序,然后该驱动程序将允许您直接与访客的硬件进行通信。
有关详细信息,请参阅此链接。 我不是 Xen 用户,但根据我的虚拟化经验,我猜测 Xen 主机/猜测的半虚拟化方面将是原始设备访问的最佳选择。
I'd look into Xen, it appears that you can load a backend xen driver on the host OS which will then allow you to communicate directly with the hardware from the guest.
See this link for more information. I'm not a Xen user, but from my virtualization experience I would guess that the paravirtualization aspects of a Xen host/guess is going to be your best bet for raw device access.