WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Passing a USB printer to a Linux DomU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Passing a USB printer to a Linux DomU
From: Thomas Jensen <tom.jensen@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Feb 2009 12:28:35 -0600
Delivery-date: Wed, 11 Feb 2009 10:29:52 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=digitaltoolbox-inc.com; h= message-id:date:from:to:subject:references:in-reply-to :mime-version:content-type:content-transfer-encoding; s=mail; bh=v4VZKcJnVThTM4i9OlDibTNmSqg=; b=RScEu8+LcfugAR6Cbny4y+VEkIOf NFJh4rNJbmlEgTiL/D7WItmDWVqLty2stX8+2KuGfs7aTxSaEYkJSRu8KPVDVmhB Hp/mcs6KlBqQejCflqDM8S7T7KJ3MEDxZA1MHKlBVnnc8+P46MYKJq8z47FWc2N/ fFgf5K2GLP93Aqc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=digitaltoolbox-inc.com; h= message-id:date:from:to:subject:references:in-reply-to :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=jICxvKHPjBTfn3OmgW+UXWiIkhMOBmvLYvGBSRBVCsY0DPBAsB7Qf8Tu RLaIZUmQ71/F4VAm3Z5SMpCwYJaQt83YyFAlkxy7KUQ6zSZ5QaOVkxHu3t+oA9W4 +mn1jOb3iLeHpCgJOei9VFnZaqfsSFIBydZ5/C4ACWiqsfa+nQA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4621e3520902110835t71f3086dy6ea0bbc4c83605b7@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <5C6762B13B0F4C47B368A4BDA99F9967@wolverine> <4621e3520902110835t71f3086dy6ea0bbc4c83605b7@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1)
There is actually a pretty decent explanation of how to do USB printing on the OpenVZ site. I figured that the differences for passthrough can't be that different. That How To really focuses on the issue you are referring to about entries in the /dev directory.

It was one of the first places I looked when I encountered my problem.

I have the following entry in the /dev directory:

lrwxrwxrwx 1 root   root           7 Feb 10 23:19 usblp0 -> usb/lp0

ls -l /dev/usb shows:

crw-rw---- 1 root lp 180, 0 Feb 10 23:19 lp0

Further more, my USB printer is on the fourth device as a result of lsusb:

Bus 005 Device 001: ID 0000:0000
Bus 004 Device 002: ID 03f0:6204 Hewlett-Packard DeskJet 5150c
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

A ls -l /dev/bus/usb/004 shows:

crw-rw-r-- 1 root root 189, 384 Feb 10 23:19 001
crw-rw---- 1 lp   lp   189, 385 Feb 11 12:17 002

I did not manually create any of these entries in the /dev directory. I presume they are all created as a result of the pci passthrough. Furthermore, my printer is displayed in the output of lpinfo -v:

network socket
network beh
direct usb://hp/deskjet%205100?serial=MY3AN4J3337A
direct hp:/usb/deskjet_5100?serial=MY3AN4J3337A
direct hpfax
network http
network ipp
network lpd
direct scsi

Any other suggestions? It appears that it is very close to working as anticipated.


Quoting Matt Richardson <shortpath@xxxxxxxxx>:

I have gotten to the same point and suspect that an entry isn't being
made in /dev for the printer, but had to move on to another project.
What does lpinfo -v report?  Mine does not show the usb printer,
although lsusb does.


--
Matt

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users