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-devel

Re: [Xen-devel] Xen and USB devices

> This is probably discussed before but I am not able to find any
> information.
>
> basically I am trying to access a USB key drive in guest VM. I am using the
> latest Xen-Unstable build. I see that when I attach the USB key to the
> computer it doesn't even get recognized by dom0. I see only this message in
> dmesg
>
> usb 1-1: new full speed USB device using uhci_hcd and address 2
>
> I have three questions:
>
> 1) Does Xen support USB devices? if yes, does it support USB devices in the
> default build?

Yes, and yes.

> 2) What do I do to make Dom0 recognize the USB key?

Although we have support for the USB core and for USB HID devices (keyboard, 
mouse, etc) we probably don't have support for USB mass storage built in.  
You'll need to build a new kernel with this support added.

> 3) what do I do to redirect this USB key to a guest VM? do I need to
> specify something in the guest VM's config file?

Once you've got the USB key recognised in dom0, you could add it as a virtual 
block device (i.e. a "phy:/dev/sda1,/dev/sda1,w" in your config file, 
assuming the USB key is sda in the host and the guest).  You may be able to 
dynamically add block devices to a domain but I don't know if this is working 
right now...  Anyone know?

You could also share it over NFS ;-)

There are various other ways of assigning arbitrary USB devices to guests but 
you shouldn't need those here.

Cheers,
Mark

> Could someone please answer these questions or point me to the answer?
>
> Thanks,
> Sanjay

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

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