Hi. How I can let a domU to use the physical /dev/ttyS0 serial port of the dom0? I used the PCI redirection, but I don''t understand how to do this with the serial port. Could you help me, please? Thank you very much. Bye. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
hi, shacky schrieb:> Could you help me, please?it is easy: you can''t. The only way to do it, is to buy a extension-card with such ports, like your RS232, and make the use of PCI redirection. cu denny -- Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog: http://www.nopsis.de _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> it is easy: you can''t. The only way to do it, is to buy a extension-card > with such ports, like your RS232, and make the use of PCI redirection.And using an USB/Serial adapter? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
hi, shacky schrieb:> And using an USB/Serial adapter?the same. You can only connect to ports with an extension card to redirect the PCI device. You can try to use the onboard USB, but after that you can''t use anything from USB on Dom0 cu denny -- Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog: http://www.nopsis.de _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Aug 25, 2007 at 11:33:44AM +0200, shacky wrote:> How I can let a domU to use the physical /dev/ttyS0 serial port of the dom0? > I used the PCI redirection, but I don''t understand how to do this with > the serial port.Maybe you can set something up with socat, connecting the serial-port from dom0 and domU via network. Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On So, Aug 26, 2007 at 09:55:17 +0200, Christian Horn wrote:> On Sat, Aug 25, 2007 at 11:33:44AM +0200, shacky wrote: > > How I can let a domU to use the physical /dev/ttyS0 serial port of the dom0? > > I used the PCI redirection, but I don''t understand how to do this with > > the serial port. > > Maybe you can set something up with socat, connecting the serial-port > from dom0 and domU via network. >Yes, he can. We use socat to solve similar problem. You can find additional information on this page: http://www.dest-unreach.org/socat/doc/socat-ttyovertcp.txt> > Christian > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Aug 25, 2007 at 11:33:44AM +0200, shacky wrote:> How I can let a domU to use the physical /dev/ttyS0 serial port of the dom0? > I used the PCI redirection, but I don''t understand how to do this with > the serial port. >Hello, I use the onbord ttyS0 direct in the domU. In my domU config file I have: irq = [ 4 ] ioports = [ "3f8-3ff" ] and as boot parameter for dom0 I use: "console=tty0 xencons=tty" to prevent the dom0 to lock ttyS0 as console. -- [x] sleif _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Aug 25, 2007 at 11:33:44AM +0200, shacky wrote:> How I can let a domU to use the physical /dev/ttyS0 serial port of the dom0? > I used the PCI redirection, but I don''t understand how to do this with > the serial port. >Hello, I use the onbord ttyS0 direct in the domU. In my domU config file I have: irq = [ 4 ] ioports = [ "3f8-3ff" ] and as boot parameter for dom0 I use: "console=tty0 xencons=tty" to prevent the dom0 to lock ttyS0 as console. -- [x] Sebastian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Aug 25, 2007 at 11:33:44AM +0200, shacky wrote:> How I can let a domU to use the physical /dev/ttyS0 serial port of the dom0? > I used the PCI redirection, but I don''t understand how to do this with > the serial port. >Hello, I use the onbord ttyS0 direct in the domU. In my domU config file I have: irq = [ 4 ] ioports = [ "3f8-3ff" ] and as boot parameter for dom0 I use: "console=tty0 xencons=tty" to prevent the dom0 to lock ttyS0 as console. -- [x] Sebastian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> irq = [ 4 ] > ioports = [ "3f8-3ff" ]The "irq = [4]" configuration in my domu.cfg get me this error at the domU creation: Error: function takes exactly 3 arguments (2 given) What''s the problem? Thank you very much! Bye. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
shacky schrieb:>> irq = [ 4 ] >> ioports = [ "3f8-3ff" ] >> > > The "irq = [4]" configuration in my domu.cfg get me this error at the > domU creation: > > Error: function takes exactly 3 arguments (2 given) >Hi, I use this in my configuration - xen 3.0.3. If you use xen 3.0.4 possible you can get more info on http://lists.xensource.com/archives/html/xen-devel/2007-06/msg00969.html . Btw. you must blacklist the serial port modules in dom0 too, blacklist 8250 blacklist 8250_pnp blacklist serial_core -- mit freundlichem Gruss ICEM Technologies Sebastian Berthold Systemadministration 0511/9848-773 Geschäftsführung: John M. Allen, Sitz der Gesellschaft: Hannover, HRB 52423, Ust-ID-Nr: DE 195 395 237 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ok, now it works, but I don''t have the /dev/ttyS0 device in the domU. Is there a problem or I have to create it with MAKEDEV? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I created /dev/ttyS0 on the domU with "MAKEDEV generic", but when I try to access to the ttyS0 I get this error: minicom: cannot open /dev/ttyS0: No such device or address What''s the problem? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
shacky schrieb:> I created /dev/ttyS0 on the domU with "MAKEDEV generic", but when I > try to access to the ttyS0 I get this error: > > minicom: cannot open /dev/ttyS0: No such device or address >What''s about /dev/ttyS* in dom0? If any ttyS* exists in dom0 you cannot use it in domU. You must disable all serial port modules like "8250" or "serial_core". In domU this modules must be present. -- mit freundlichem Gruss ICEM Technologies Sebastian Berthold Systemadministration 0511/9848-773 Geschäftsführung: John M. Allen, Sitz der Gesellschaft: Hannover, HRB 52423, Ust-ID-Nr: DE 195 395 237 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> What''s about /dev/ttyS* in dom0? If any ttyS* exists in dom0 you cannot > use it in domU. You must disable all serial port modules like "8250" or > "serial_core".I disabled that modules and they are not loded. In reality they was not loaded neither before blacklisting them. I think the kernel was compiled with the serial support built in it.. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi guys, I''ve got the same problem. Following recommendations above I added serial stuff on dom0 to blacklist. In /etc/xen/vm/vm2 file I added irq and ioports section. I added 8250 and serial_core and rebuild the kernel on domU. When vm get loaded there is no word about serial in dmesg output. On the other side there are /dev/ttyS0 to ttyS7 on dom0 Have I missed something? Thanks, Artiom shacky wrote:> >> What''s about /dev/ttyS* in dom0? If any ttyS* exists in dom0 you cannot >> use it in domU. You must disable all serial port modules like "8250" or >> "serial_core". > > I disabled that modules and they are not loded. In reality they was > not loaded neither before blacklisting them. I think the kernel was > compiled with the serial support built in it.. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >-- View this message in context: http://www.nabble.com/Xen-and-serial-port-tf4327425.html#a12603816 Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users