Hi all! Is it possible to use a usb printer from a DomU? I don''t get to see any device using both lscpi and lsusb. I''m using Xen 3.0.2-2. Thanks in advance. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 12/11/06, Daniel Bareiro <daniel-listas@gmx.net> wrote:> Hi all! > > Is it possible to use a usb printer from a DomU? I don''t get to see any > device using both lscpi and lsusb. I''m using Xen 3.0.2-2.I am not sure about the state of using usb in domUs, but it has been dealt with on this list before. (you have to search yourself :) ) I think it''s a good idea to try this with the newest Xen versions, because in some areas there are quite new developments in the usb support side, as far as I remember. Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I use USB printer in domU. You just need to hide PCI device of USB controller from dom0 and make it visible to domU -- see user guide. Alex On 12/11/06, Daniel Bareiro <daniel-listas@gmx.net> wrote:> Hi all! > > Is it possible to use a usb printer from a DomU? I don''t get to see any > device using both lscpi and lsusb. I''m using Xen 3.0.2-2. > > Thanks in advance. > > Regards, > Daniel > -- > Daniel Bareiro - System Administrator > Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 > Powered by Debian GNU/Linux Etch - Linux user #188.598 > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (GNU/Linux) > > iD8DBQFFfWCgZpa/GxTmHTcRAkOhAJwLzWwWuYx/T2Q1zPQ9YMI/RUAQPACfehYd > NeNuk5d1mmySHT3NJ9CQ0uo> =1030 > -----END PGP SIGNATURE----- > > > _______________________________________________ > 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 Tuesday, 12 December 2006 13:29:58 -0500, Alexey Koptsevich wrote:> I use USB printer in domU. You just need to hide PCI device > of USB controller from dom0 and make it visible to domU -- > see user guide.Thanks to both for answer, and thank you for your recommendation of to read the section 5.3.1 of the fine manual :-) I''ve got to progress in the configuration: sirius:~# lspci|grep USB 0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 90) 0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 90) 0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 90) 0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 90) 0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 90) sirius:~# cat /etc/xen/printserver [...] pci=[''00,10,0''] [...] sirius:~# tail -n 5 /boot/grub/menu.lst [...] module /vmlinuz-2.6.16-xen root=/dev/hda3 acpi=noirq pciback.hide=(0000:00:10.0) [...] sirius:~# xm console 8 Debian GNU/Linux 3.1 printserver tty1 printserver login: root Password: [...] printserver:~# lspci 0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 90) printserver:~# lsmod Module Size Used by parport_pc 33476 0 lp 10340 0 parport 37128 2 parport_pc,lp ipv6 254368 10 usblp 12000 0 reiserfs 234992 1 dm_mirror 21616 0 dm_snapshot 17344 0 dm_mod 53880 2 dm_mirror,dm_snapshot uhci_hcd 31600 0 processor 18836 0 But I think what I missed something, because I don''t see /dev/usb/lp0 (It''d be the name of device, I think). Should I install other(s) module(s) or to hide another device from dom0? I''m using Debian GNU/Linux Sarge in both dom0 and domU''s. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, 2006-12-13 at 08:04 -0300, Daniel Bareiro wrote:> > But I think what I missed something, because I don''t see /dev/usb/lp0 > (It''d be the name of device, I think). Should I install other(s) > module(s) or to hide another device from dom0? I''m using Debian > GNU/Linux Sarge in both dom0 and domU''s. >Most likely you''re just missing the device and a simple mknod would correct this. I don''t know the major / minor to pass to mknod for that particular device off the top of my head. Best, -Tim> Regards, > Daniel > _______________________________________________ > 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
> But I think what I missed something, because I don''t see /dev/usb/lp0 > (It''d be the name of device, I think). Should I install other(s)I have /dev/usblp0. Maybe you picked wrong USB controller? Alex _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thursday, 14 December 2006 02:14:31 +0800, Tim Post wrote:> > But I think what I missed something, because I don''t see /dev/usb/lp0 > > (It''d be the name of device, I think). Should I install other(s) > > module(s) or to hide another device from dom0? I''m using Debian > > GNU/Linux Sarge in both dom0 and domU''s.> Most likely you''re just missing the device and a simple mknod would > correct this. I don''t know the major / minor to pass to mknod for that > particular device off the top of my head.The printer, as it seems, is recognized: printserver:~# lsusb Bus 001 Device 002: ID 04b8:0005 Seiko Epson Corp. Stylus Printer Bus 001 Device 001: ID 0000:0000 I was searching [1] in Internet and I''ve followed these steps: printserver:~# mkdir /dev/usb printserver:~# mknod /dev/usb/lp0 c 180 0 printserver:~# ls /dev/usb -l total 0 crw-r--r-- 1 root root 180, 0 Dec 14 09:48 lp0 but the device can''t be open: printserver:~# escputil -u -i -r /dev/usb/lp0 Escputil version 4.2.7, Copyright (C) 2000-2001 Robert Krawitz Escputil comes with ABSOLUTELY NO WARRANTY; for details type ''escputil -l'' This is free software, and you are welcome to redistribute it under certain conditions; type ''escputil -l'' for details. Cannot open /dev/usb/lp0 read/write: No such device CUPS reports the same problem: StC65 EPSON Stylus C64 - CUPS+Gimp-Print v4.2.7 Description: Epson Stylus C65 Location: Printer State: processing, accepting jobs. "Unable to open USB device "usb:/dev/usb/lp0": No such device" Device URI: usb:/dev/usb/lp0 I''ve notice the device /dev/usb/lp0 is gone after the boot :-S printserver:/dev# ls /dev/usb -l ls: /dev/usb: No such file or directory and I get this message from lp: lp: driver loaded but no devices found Thanks to both for your answers. Regards, Daniel [1] http://www.ioelive.com/drupal/?q=node/27 -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> The printer, as it seems, is recognized: > > printserver:~# lsusb > Bus 001 Device 002: ID 04b8:0005 Seiko Epson Corp. Stylus Printer > Bus 001 Device 001: ID 0000:0000Does this printer work in native Linux, without Xen? Since lsusb detects it, Xen passes the USB device properly to domU, and Xen seems to have nothing to do with your problem. I think you should seek help in cups list... A. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Friday, 15 December 2006 00:03:27 -0500, Alexey Koptsevich wrote:> >The printer, as it seems, is recognized:> > printserver:~# lsusb > > Bus 001 Device 002: ID 04b8:0005 Seiko Epson Corp. Stylus Printer > > Bus 001 Device 001: ID 0000:0000> Does this printer work in native Linux, without Xen?Yes. It works in Debian GNU/Linux Sarge without Xen. Likewise I have done some tests in dom0. I''m using the kernel provided by Xemsource in both dom0 and domU. Then, if the printer works in dom0, it would work in domU. Dom0: sirius:~# lsmod Module Size Used by xt_physdev 2512 1 iptable_filter 2784 1 ip_tables 13620 1 iptable_filter x_tables 12036 2 xt_physdev,ip_tables bridge 49748 0 snd_via82xx 27384 0 gameport 13384 1 snd_via82xx snd_ac97_codec 96608 1 snd_via82xx snd_ac97_bus 2304 1 snd_ac97_codec snd_pcm 92740 2 snd_via82xx,snd_ac97_codec snd_timer 24132 1 snd_pcm snd_page_alloc 9608 2 snd_via82xx,snd_pcm snd_mpu401_uart 7296 1 snd_via82xx snd_rawmidi 24192 1 snd_mpu401_uart snd_seq_device 8364 1 snd_rawmidi snd 52292 7 snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device serio_raw 6020 0 shpchp 43136 0 pci_hotplug 26492 1 shpchp soundcore 9056 1 snd amd64_agp 12004 1 agpgart 34472 1 amd64_agp usblp 12000 0 reiserfs 234992 2 dm_mirror 21616 0 dm_snapshot 17344 0 dm_mod 53880 6 dm_mirror,dm_snapshot via_rhine 22180 0 uhci_hcd 31600 0 mii 5824 1 via_rhine processor 18836 0 sirius:~# ll /dev/lp0 ls: /dev/lp0: No such file or directory sirius:~# modprobe parport sirius:~# modprobe parport_pc sirius:~# modprobe lp sirius:~# ll /dev/lp0 crw-rw---- 1 root lp 6, 0 2006-12-16 14:45 /dev/lp0 And «cat "test" > /dev/lp0» performs the printing. Then, I unhide the usb device and reboot the dom0. sirius:~# ll /dev/usb/lp0 crw-rw---- 1 root lp 180, 0 2006-12-16 11:59 /dev/usb/lp0 sirius:~# escputil -u -i -r /dev/usb/lp0 Escputil version 4.2.7, Copyright (C) 2000-2001 Robert Krawitz Escputil comes with ABSOLUTELY NO WARRANTY; for details type ''escputil -l'' This is free software, and you are welcome to redistribute it under certain conditions; type ''escputil -l'' for details. Ink color Percent remaining Black 81 Cyan 45 Magenta 85 Yellow 57 DomU (I make it with debootstrap): printserver:~# ll /dev/lp0 ls: /dev/lp0: No such file or directory printserver:~# modprobe parport printserver:~# modprobe parport_pc printserver:~# modprobe lp printserver:~# ll /dev/lp0 ls: /dev/lp0: No such file or directory Should I install other(s) module(s) or to hide another device from dom0? Can the missign /dev/lp0 device be the cause of missing /dev/usb/lp0? Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users