cedivad
2012-Aug-11 17:57 UTC
HVM and network interfaces passthrought (without hardware pci passthrought)
I would like to know if there is a way to "passthrought" the network interfaces that are phisically connected to dom0, eg, an additional pci card connected to the mb. I only understand a little about bridging, routing etc. Thank you a lot. -- View this message in context: http://xen.1045712.n5.nabble.com/HVM-and-network-interfaces-passthrought-without-hardware-pci-passthrought-tp5710637.html Sent from the Xen - User mailing list archive at Nabble.com.
Lukas Laukamp
2012-Aug-11 18:27 UTC
Re: HVM and network interfaces passthrought (without hardware pci passthrought)
Am 11.08.2012 19:57, schrieb cedivad:> I would like to know if there is a way to "passthrought" the network > interfaces that are phisically connected to dom0, eg, an additional pci card > connected to the mb. > > I only understand a little about bridging, routing etc. > > Thank you a lot. > > > > -- > View this message in context: http://xen.1045712.n5.nabble.com/HVM-and-network-interfaces-passthrought-without-hardware-pci-passthrought-tp5710637.html > Sent from the Xen - User mailing list archive at Nabble.com. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-usersHello, so you can not Passtrough PCI Devices to a HVM guest without an IOMMU because Direct Memory Access (DMA) is managed with physical addresses. What you could do is passtrough a USB device with a few contraints. For this look on this page: http://wiki.xen.org/xenwiki/XenUSBPassthrough When you don''t have an IOMMU you only can passtrough PCI devices to a PV DomU so a Linux, BSD or Solaris. For giving an answer if it also would be possible to solve your problem with other methods it would be helpful to know, which specific problem you have. Best Regards
Casey DeLorme
2012-Aug-12 17:45 UTC
Re: HVM and network interfaces passthrought (without hardware pci passthrought)
Passing through the device without IOMMU may be impossible, but you can pass just the network from Dom0 and have Dom0 ignore that interface afterwards. This is easily done using bridge-utils. In Dom0, identify the network name (such as eth0, eth1, wlan0, etc) and open up the /etc/network/interfaces in a text editor or vi, then add a record like this: auto xenbr1 iface eth1 inet manual iface xenbr1 inet manual bridge_ports eth1 auto xenbr1 creates our bridge, setting the inet to manual tells Dom0 not to do anything but what we configure (in this case, nothing but bridge) with that interface. You would then connect your HVM configuration to the "xenbr1" bridge you created. I can''t speak to the security of this method, but it works. On Sat, Aug 11, 2012 at 2:27 PM, Lukas Laukamp <lukas@laukamp.me> wrote:> Am 11.08.2012 19:57, schrieb cedivad: > > I would like to know if there is a way to "passthrought" the network >> interfaces that are phisically connected to dom0, eg, an additional pci >> card >> connected to the mb. >> >> I only understand a little about bridging, routing etc. >> >> Thank you a lot. >> >> >> >> -- >> View this message in context: http://xen.1045712.n5.nabble.** >> com/HVM-and-network-**interfaces-passthrought-**without-hardware-pci-** >> passthrought-tp5710637.html<http://xen.1045712.n5.nabble.com/HVM-and-network-interfaces-passthrought-without-hardware-pci-passthrought-tp5710637.html> >> Sent from the Xen - User mailing list archive at Nabble.com. >> >> ______________________________**_________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >> > > Hello, > > so you can not Passtrough PCI Devices to a HVM guest without an IOMMU > because Direct Memory Access (DMA) is managed with physical addresses. What > you could do is passtrough a USB device with a few contraints. For this > look on this page: http://wiki.xen.org/xenwiki/**XenUSBPassthrough<http://wiki.xen.org/xenwiki/XenUSBPassthrough> > > When you don''t have an IOMMU you only can passtrough PCI devices to a PV > DomU so a Linux, BSD or Solaris. > > For giving an answer if it also would be possible to solve your problem > with other methods it would be helpful to know, which specific problem you > have. > > Best Regards > > > ______________________________**_________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users