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] USB at domU PV domain & PVUSB

To: nacho@xxxxxxxxx
Subject: Re: [Xen-users] USB at domU PV domain & PVUSB
From: Todd Deshane <todd.deshane@xxxxxxx>
Date: Thu, 28 Jul 2011 03:17:38 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 27 Jul 2011 20:19:19 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=N6iPTtRcCaiN94aHOFuXtgJbZkDtCIzu7Lju9FZWP/o=; b=bNe7nh+67wOqXrB+y5mvW2zKvV1OdjG89aq11Ot0XvsowkqK7yB5pC4n3p6ljaU2Ca KDN+Hw6QtvL4gsZ4J69+yBaB4RD6cE+f8u+cI1vzBU1FgSAChv3CnCN19ZU5rFhXZk2S Xu9iAWZClRI3ZrOoRZ3XkJM1JmO8vqDqp5lzo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1ed5f53fa76903a659b84ed3d40c0e70.squirrel@xxxxxxxxxxxxxxxxx>
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: <1ed5f53fa76903a659b84ed3d40c0e70.squirrel@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Jul 27, 2011 at 8:07 PM, Nacho Alegre Alvarez <nacho@xxxxxxxxx> wrote:
> Good Evenight
>
> I try to do working usb's into domU xen guest, SO of xen server is Debian
> Squenze 6.0, into HVM guest usb works and can make use but with
> ParaVirtual guest PV can find this devices with lsusb or into /dev/
> directory.
>
> Kernel load into xend and guest is the same and is the kernel provided by
> this package:
>
> ii  linux-image-2.6.32-5-xen-amd64          2.6.32-35
> Linux 2.6.32 for 64-bit PCs, Xen dom0 support
> ii  linux-image-xen-amd64                   2.6.32+29
> Linux for 64-bit PCs (meta-package), Xen dom0 support
>
> this is the version of kernel:
>
> Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-35) (dannf@xxxxxxxxxx)
> (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Tue Jun 14 12:46:30 UTC 2011
>
>
> Configuration of PV  guest domain is:
>
> bootloader = '/usr/lib/xen-default/bin/pygrub'
> vcpus       = '2'
> memory      = '512'
> root        = '/dev/xvda2 ro'
> disk        = [
>                 
>  'file:/disco/xen/maquinas/domains/debian-prueba/disk.img,xvda2,w',
>                 
>  'file:/disco/xen/maquinas/domains/debian-prueba/swap.img,xvda1,w',
>              ]
> name        = 'debian-prueba'
> vif         = [ 'ip=192.168.0.200,mac=00:16:3E:D2:D7:46' ]
> on_poweroff = 'destroy'
> on_reboot   = 'restart'
> on_crash    = 'restart'
> usb=1
> vusb = ['usbver=2, numports=10,port_1=1-3,port_2=1-2'
>
> oput get in  XEN whi xm about usb is the next info:
>
> root@xen-servidor:/etc/grub.d# xm usb-list debian-prueba
> Idx BE  state usb-ver  BE-path
> 0   0   1     USB2.0  /local/domain/0/backend/vusb/17/0
> port 1: 1-3
> port 2: 1-2 [ID 0402:5661 ALi Corp. Audio Player]
> port 3:
> port 4:
> port 5:
> port 6:
> port 7:
> port 8:
> port 9:
> port 10:
>
> available devices are this:
>
> root@xen-servidor:/etc/grub.d# xm usb-list-assignable-devices
> 1-2          : ID 0402:5661 ALi Corp. Audio Player
> root@xen-servidor:/etc/grub.d#
>
>
> kernel of this PV domain "debian-prueba" is next:
>
> root@debian-prueba:~# cat /proc/version
> Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-35) (dannf@xxxxxxxxxx)
> (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Tue Jun 14 12:46:30 UTC 2011
> root@debian-prueba:~#
>
> but into this guest domain "debian-prueba" when exec lsusb command get
> nothing, see below:
>
> root@debian-prueba:~# lsusb
> root@debian-prueba:~#
>
> at dmesg  of this PV domain, can watch only this info about usb and xen:
>
> [    0.316730] XENBUS: Device with no driver: device/vbd/51714
> [    0.316740] XENBUS: Device with no driver: device/vbd/51713
> [    0.316749] XENBUS: Device with no driver: device/vif/0
> [    0.316757] XENBUS: Device with no driver: device/vusb/0
> [    0.316766] XENBUS: Device with no driver: device/console/0
> [    0.316796]
> /build/buildd-linux-2.6_2.6.32-35-amd64-aZSlKL/linux-2.6-2.6.32/debian/build/source_amd64_xen/drivers/rtc/hctosys.c:
> unable to open rtc device (rtc0)
> [    0.316837] Initalizing network drop monitor service
>
> Anyone have the same situation with PV guest domain working with usb throw
> PVUSB techonology, can anyone guide me to make run usb at this domain,
> need connect four devices 2.0  (printer, disc, scanner and modem with
> serial port throw usb-serial converter)
>
> If any one can help me, because i read something about PVUSB but can't
> make work usb at PV domains  or not know steps to do this devices work.
>

Does this help:
http://wiki.xensource.com/xenwiki/XenUSBPassthrough

Thanks,
Todd

-- 
Todd Deshane
http://www.linkedin.com/in/deshantm
http://www.xen.org/products/cloudxen.html
http://runningxen.com/

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

<Prev in Thread] Current Thread [Next in Thread>