Greetings, Using Xen 3.1 and Fedora 7, is it possible to export the serial interface such that I can access external devices on COM1 or COM2? I am uncertain if PCI pass-thru is needed or if there''s nothing to configure for this to work in a fully virtualized Linux guest. Any help would be greatly appreciated. Regards, Tony Johnson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jefferson E. Noxon
2008-May-15 18:59 UTC
Re: [Xen-users] How to Export COM port to guest domain
I''ve run into the same problem, except that I need to provide serial ports to a fully virtualized Windows guest. This is my understanding: You need Xen 3.2+, VT-d capable hardware, and PCI passthrough, and probably a PCI-e serial adapter or a PCI-e USB adapter with a USB to Serial dongle. VT-d won''t let you pass through a legacy (non-Express) PCI device without passing all of your other legacy PCI devices behind the same bridge. It''s a shame that it isn''t possible to pass USB or Serial devices without VT-d. I plan to get a PCI-e USB controller and a VT-d capable motherboard soon. I hope someone proves me wrong! Johnson, Tony M wrote:> Greetings, > > Using Xen 3.1 and Fedora 7, is it possible to export the serial > interface such that I can access > external devices on COM1 or COM2? > > I am uncertain if PCI pass-thru is needed or if there''s nothing to > configure for this to work in > a fully virtualized Linux guest. > > Any help would be greatly appreciated. > > Regards, > Tony Johnson > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christopher Isip
2008-May-15 20:47 UTC
Re: [Xen-users] How to Export COM port to guest domain
On Thu, May 15, 2008 at 2:59 PM, Jefferson E. Noxon <jeff@planetfall.com> wrote:> I''ve run into the same problem, except that I need to provide serial ports > to a fully virtualized Windows guest. > > This is my understanding: > > You need Xen 3.2+, VT-d capable hardware, and PCI passthrough, and probably > a PCI-e serial adapter or a PCI-e USB adapter with a USB to Serial dongle. > VT-d won''t let you pass through a legacy (non-Express) PCI device without > passing all of your other legacy PCI devices behind the same bridge. > > It''s a shame that it isn''t possible to pass USB or Serial devices without > VT-d. > > I plan to get a PCI-e USB controller and a VT-d capable motherboard soon. > > I hope someone proves me wrong! > > Johnson, Tony M wrote: > >> Greetings, >> >> Using Xen 3.1 and Fedora 7, is it possible to export the serial interface >> such that I can access >> external devices on COM1 or COM2? >> >> I am uncertain if PCI pass-thru is needed or if there''s nothing to >> configure for this to work in >> a fully virtualized Linux guest. >> >> Any help would be greatly appreciated. >> >> Regards, >> Tony Johnson >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersI installed mythtv but needed a way to control the motorola dvr via serial cable (usb to serial). The way I managed to get this to work is to use ssh remote command execution. Basically, the domU executes a script that runs in the dom0 to change channels. I dont know if something similar would apply to your case. Chris _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nick Couchman
2008-May-15 20:53 UTC
Re: [Xen-users] How to Export COM port to guest domain
I don''t think it''s quite this hard. For a Linux domU, here are the lines I add to export the com port to my domU: irq=[ 4 ] ioports=[ "3f8-3ff" ] For the Windows HVM domU end of things, it''s been a while since I did it, but I''m pretty sure just adding the following got me the necessary access to the com port: serial="/dev/ttyS0" My servers don''t support VT-d and I''m not running Xen 3.2. As far as USB devices go, I''m not sure, but my example domU files have things like "usbdevice=''xxx''" - I''m not sure what types of USB devices you can push through, maybe just the default mouse and tablet support. -Nick>>> On Thu, May 15, 2008 at 12:59 PM, "Jefferson E. Noxon" <jeff@planetfall.com> wrote:I''ve run into the same problem, except that I need to provide serial ports to a fully virtualized Windows guest. This is my understanding: You need Xen 3.2+, VT-d capable hardware, and PCI passthrough, and probably a PCI-e serial adapter or a PCI-e USB adapter with a USB to Serial dongle. VT-d won''t let you pass through a legacy (non-Express) PCI device without passing all of your other legacy PCI devices behind the same bridge. It''s a shame that it isn''t possible to pass USB or Serial devices without VT-d. I plan to get a PCI-e USB controller and a VT-d capable motherboard soon. I hope someone proves me wrong! Johnson, Tony M wrote:> Greetings, > > Using Xen 3.1 and Fedora 7, is it possible to export the serial > interface such that I can access > external devices on COM1 or COM2? > > I am uncertain if PCI pass-thru is needed or if there''s nothing to > configure for this to work in > a fully virtualized Linux guest. > > Any help would be greatly appreciated. > > Regards, > Tony Johnson > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersThis e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jefferson E. Noxon
2008-May-15 21:14 UTC
Re: [Xen-users] How to Export COM port to guest domain
Nick Couchman wrote:> I don''t think it''s quite this hard. For a Linux domU, here are the > lines I add to export the com port to my domU: > > irq=[ 4 ] > > ioports=[ "3f8-3ff" ]The original post was asking about fully virtualized guests. I believe this suggestion only works for PV guests.> For the Windows HVM domU end of things, it''s been a while since I did > it, but I''m pretty sure just adding the following got me the necessary > access to the com port: > > serial="/dev/ttyS0"I think that may actually work. I remember having a conversation with someone else about this now. My device manager does indeed show COM1, which according to QEMU is redirected to /dev/ttyS0. Now I just need several more COM ports, and I''m in business.> My servers don''t support VT-d and I''m not running Xen 3.2. As far as > USB devices go, I''m not sure, but my example domU files have things like > "usbdevice=''xxx''" - I''m not sure what types of USB devices you can push > through, maybe just the default mouse and tablet support.There is currently no support in Xen for passing USB devices to fully-virtualized guests. With VT-d you can pass an entire controller. And of course, even without VT-d you can pass a USB controller to a PV guest. Regards, Jeff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users