js
2007-Feb-25 01:27 UTC
[Xen-users] pcmcia modem on ttyS1 can''t be initiated in a Xen environment
Hi list, I have a Vodafone Option globetrotter GSM card which works in my laptop, but not in a XEN dom0. I''m trying to get this card to work in a xen dom0 MY LAPTOP: [I--] [ ] sys-kernel/gentoo-sources-2.6.19-r5 (2.6.19-r5) [I--] [ ] sys-fs/udev-087-r1 (0) [I--] [ ] sys-apps/pcmciautils-014-r1 (0) [I--] [ ] virtual/pcmcia-2.6.13 (0) When I plugin this card into my laptop (not running xen) I get following output: dmesg: pccard: PCMCIA card inserted into slot 0 cs: memory probe 0x40000000-0x42ffffff: excluding 0x40000000-0x42ffffff cs: memory probe 0xfc000000-0xfdffffff: excluding 0xfc000000-0xfd1fffff 0xfde00000-0xfdffffff pcmcia: registering new device pcmcia0.0 udevmonitor: UEVENT[1172283848.964931] add@/devices/pci0000:00/0000:00:1e.0/0000:03:03.0/0.0 UDEV [1172283848.977588] add@/devices/pci0000:00/0000:00:1e.0/0000:03:03.0/0.0 UEVENT[1172283849.064000] remove@/class/tty/ttyS1 UEVENT[1172283849.064029] add@/class/tty/ttyS1 UDEV [1172283849.076213] remove@/class/tty/ttyS1 UDEV [1172283849.089423] add@/class/tty/ttyS1 /var/log/messages: Feb 25 01:02:08 gemini pccard: PCMCIA card inserted into slot 0 Feb 25 01:02:08 gemini pcmcia: registering new device pcmcia0.0 Feb 25 01:02:08 gemini pcmcia: request for exclusive IRQ could not be fulfilled. Feb 25 01:02:08 gemini pcmcia: the driver needs updating to supported shared IRQ lines. Feb 25 01:02:08 gemini 0.0: ttyS1 at I/O 0x2f8 (irq = 10) is a 16550A #pccardctl ident Socket 0: product info: "Vodafone", "GPRS Card", "001", "A" manfid: 0x0013, 0x0000 function: 2 (serial) #pccardctl status Socket 0: 3.3V 16-bit PC Card Subdevice 0 (function 0) bound to driver "serial_cs" #setserial /dev/ttyS1 /dev/ttyS1, UART: 16550A, Port: 0x03f8, IRQ: 4 When I use minicom to connect to ttyS1 I get my AT command set. Conclusion: the pcmcia card works on my laptop. MY XENserver: I have Gentoo installed on a Dell Poweredge 750 with A6 bios (latest). And software installed: [I--] [ ~] app-emulation/xen-3.0.2 (0) [I--] [ ~] app-emulation/xen-tools-3.0.2-r4 (0) [I--] [ ~] sys-kernel/xen-sources-2.6.16.28-r2 (2.6.16.28-r2) [I--] [ ] sys-fs/udev-087-r1 [I--] [ ] sys-apps/pcmciautils-014-r1 (0) [I--] [ ] virtual/pcmcia-2.6.13 (0) When I plugin this card into my laptop (not running xen) I get following output: dmesg: pccard: PCMCIA card inserted into slot 0 pcmcia: registering new device pcmcia0.0 udevmonitor: UEVENT[1172369105.418614] add@/devices/pci0000:00/0000:00:1e.0/0000:03:03.0/0.0 UDEV [1172369105.431167] add@/devices/pci0000:00/0000:00:1e.0/0000:03:03.0/0.0 UEVENT[1172369105.486635] remove@/class/tty/ttyS1 UEVENT[1172369105.486657] add@/class/tty/ttyS1 UDEV [1172369105.499509] remove@/class/tty/ttyS1 UDEV [1172369105.512187] add@/class/tty/ttyS1 /var/log/messages: Feb 25 03:05:05 titan pccard: PCMCIA card inserted into slot 0 Feb 25 03:05:05 titan pcmcia: registering new device pcmcia0.0 #pccardctl ident Socket 0: product info: "Vodafone", "GPRS Card", "001", "A" manfid: 0x0013, 0x0000 function: 2 (serial) #pccardctl status Socket 0: 3.3V 16-bit PC Card Subdevice 0 (function 0) bound to driver "serial_cs" #setserial /dev/ttyS1 /dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 16 my xen boot options are very basic: title GNU/Linux Xen root (hd0,1) kernel /xen.gz dom0_mem=256M module /vmlinuz0 root=/dev/sda5 xencons=tty I tried changing xencons to none, tty, .... I also tried to omit the xencons parameter, ... How come that I can''t seem to be able to connect to my ttyS1 port? Why isn''t the driver initiated like on my laptop although pccardctl status says the device is bound to serial_cs? Thanks in advance all, Js _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi all. I''ve finally installed Xen 3.0.4 on Debian. Now I''ve a problem: limit bandwidth for each domU. E.g.: domU1 1Mbit/s, domU2 10Mbit/s, etc. I''ve found, in Debian, wondershaper: very easy shaper and it work fine. But... From logs, I''ve seen that it drop many packets (not requeued). Have you got alternatives? Thanks! Carlo _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Solved: many times I read source code to fast... I''ve commented a portion of a line that drop to fast packets... :-) Carlo -----Messaggio originale----- Da: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] Per conto di Carlo Granisso Inviato: domenica 25 febbraio 2007 11.34 A: xen-users@lists.xensource.com Oggetto: [Xen-users] BANDWIDTH LIMITER Hi all. I''ve finally installed Xen 3.0.4 on Debian. Now I''ve a problem: limit bandwidth for each domU. E.g.: domU1 1Mbit/s, domU2 10Mbit/s, etc. I''ve found, in Debian, wondershaper: very easy shaper and it work fine. But... From logs, I''ve seen that it drop many packets (not requeued). Have you got alternatives? Thanks! Carlo _______________________________________________ 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
On Sun, 2007-02-25 at 13:36 +0100, Carlo Granisso wrote:> Solved: many times I read source code to fast... > I''ve commented a portion of a line that drop to fast packets... > > :-) > > > Carlo >Was just curious and poked around the script a bit. Looks handy if a little more sanity checking was going on :) May want to add a bit, it would be nice to know if something didn''t go right when using it in conjunction with xendomains so you can trigger flushing of rules if an ooops happens. It looks like this thing will almost always exit 0 , even if its obvious something bad happened. I don''t think in posix sh invoked bash (or dash, or whatever /bin/sh is leading to) that the default behavior of exit changes from 0 to $?, but I could be mistaken. I''m also not sure its the same on all bourne like shells. Even if it did, its only returning the exit value of the last tc fork. Which means the 3 above it could have ''gone south'' but the script would still exit 0. It would need a bit of work before it can be trusted fully, but I doubt you would experience many situations where this would be annoying unless you stop/start guests often. Best, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Would you mind sharing how you got wondershaper working for your domU''s ? On 2/25/07, Carlo Granisso <carlo@granisso.it> wrote:> > > Solved: many times I read source code to fast... > I''ve commented a portion of a line that drop to fast packets... > > :-) > > > Carlo > > -----Messaggio originale----- > Da: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] Per conto di Carlo Granisso > Inviato: domenica 25 febbraio 2007 11.34 > A: xen-users@lists.xensource.com > Oggetto: [Xen-users] BANDWIDTH LIMITER > > Hi all. > I''ve finally installed Xen 3.0.4 on Debian. > Now I''ve a problem: limit bandwidth for each domU. > E.g.: domU1 1Mbit/s, domU2 10Mbit/s, etc. > > I''ve found, in Debian, wondershaper: very easy shaper and it work fine. > But... From logs, I''ve seen that it drop many packets (not requeued). > > Have you got alternatives? > > > Thanks! > > > Carlo > > > _______________________________________________ > 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 >-- regards, Anand Gupta _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Well to set wondershaper you must simply type: "wondershaper VIFNAME UP DOWN" Where UP and DOWN are in Kbit/s. Only this. Cordialmente, Carlo Granisso Resp. HOSTING - Feniva S.r.L. Mail: domini@feniva.it Messenger: domini@feniva.it Help Desk 24h/24: 199-240049 Skype: feniva_hosting HOSTING Linux professionale Da: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] Per conto di Anand Gupta Inviato: domenica 25 febbraio 2007 19.28 A: Carlo Granisso Cc: xen-users@lists.xensource.com Oggetto: Re: R: [Xen-users] BANDWIDTH LIMITER Would you mind sharing how you got wondershaper working for your domU''s ? On 2/25/07, Carlo Granisso <carlo@granisso.it <mailto:carlo@granisso.it> > wrote: Solved: many times I read source code to fast... I''ve commented a portion of a line that drop to fast packets... :-) Carlo -----Messaggio originale----- Da: xen-users-bounces@lists.xensource.com [mailto: <mailto:xen-users-bounces@lists.xensource.com> xen-users-bounces@lists.xensource.com] Per conto di Carlo Granisso Inviato: domenica 25 febbraio 2007 11.34 A: xen-users@lists.xensource.com Oggetto: [Xen-users] BANDWIDTH LIMITER Hi all. I''ve finally installed Xen 3.0.4 on Debian. Now I''ve a problem: limit bandwidth for each domU. E.g.: domU1 1Mbit/s, domU2 10Mbit/s, etc. I''ve found, in Debian, wondershaper: very easy shaper and it work fine. But... From logs, I''ve seen that it drop many packets (not requeued). Have you got alternatives? Thanks! Carlo _______________________________________________ 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 -- regards, Anand Gupta _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users