[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Virtualization project idea


  • To: Pasi Kärkkäinen <pasik@xxxxxx>
  • From: Dhananjay Goel <dhananjaygoel123@xxxxxxxxx>
  • Date: Fri, 27 Aug 2010 14:55:40 +0530
  • Cc: David Markey <admin@xxxxxxxxxxx>, James Harper <james.harper@xxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 27 Aug 2010 02:26:47 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=qCjPWfkzxodO37F3Pxz6GKLsQKbgZmI3L579IrGGPevFJoeiU5Q/kNwvOPzuhTfdDo yNNWZE0C1xl+QU9FnMzhjogtwjom4+e0shj/1OkSvgucv4Qx+kfZRF1WffA14aJnz68M S1JMS5GoxPxkH4zHnYZ8l9IeQW0EeSZ+9IWjo=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

 Would USB over IP not be helpful here?
>

USB over IP is just another way of doing direct USB passthru,
it doesn't really allow sharing the devices.

--Consider a use case: You are using your mobile for browsing internet on PC. Your mobile device 
acts a usb modem for the host machine. That can not be used in guest for internet connectivity simuntaneously. You need to connect/disconnect every time to access internet whereas it would have been seamless internet connectivity. 

Thanks,
Dhananjay


On Fri, Aug 27, 2010 at 2:53 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
On Fri, Aug 27, 2010 at 10:20:44AM +0100, David Markey wrote:
>    Would USB over IP not be helpful here?
>

USB over IP is just another way of doing direct USB passthru,
it doesn't really allow sharing the devices.

-- Pasi

>
>    On 27 August 2010 10:19, Pasi Kärkkäinen <[1]pasik@xxxxxx> wrote:
>
>      On Fri, Aug 27, 2010 at 02:45:12PM +0530, Dhananjay Goel wrote:
>      >    No, that's not possible with pvusb. pvusb is for direct passthru to
>      >    one/single vm.
>      >    You'd need some filesystem share (cifs/nfs/whatnot) to make such
>      sharing
>      >    possible.
>      >    Comments: Is it possible to share USB keyboard, USB mouse, USB
>      modem, etc
>      >    across VMs i.e host and guest(s)? If we connect USB keyboard, is it
>      >    possible to use it in guests?
>      >
>
>      This is implemented in XCI (Xen Client Initiative), and there has been
>      some discussions how to get it traditional Xen, to help Xen VGA
>      Passthrough usage.
>
>      See: [2]http://wiki.xensource.com/xenwiki/XenVGAPassthrough
>      >    Also, is it possible for us to modify the device driver of USB 2.0
>      so that
>      >    all USB 2.0 devices are visible and can be used across all VMs?
>      Please
>      >    suggest.
>      >
>
>      This won't be straight forward. Think about USB memory/flash stick.
>      If every VM sees it, and simultaneously writes to it, the filesystem
>      in it will get corrupted immediately!
>
>      USB Passthru cannot be used to 'share' devices, it's for giving
>      one/single VM
>      direct access to the device.
>
>      -- Pasi
>
>      >    Thanks,
>      >    Dhananjay
>      >
>      >    On Fri, Aug 27, 2010 at 2:16 PM, Pasi Kärkkäinen
>      <[1][3]pasik@xxxxxx> wrote:
>      >
>      >      On Fri, Aug 27, 2010 at 01:37:49PM +0530, Dhananjay Goel wrote:
>      >      >    Hi James/Pasi,
>      >      >    I had a look at
>      >      [1][2][4]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
>      >      >    But I'm not sure if it supports sharing USB devices across
>      VMs
>      >      (host and
>      >      >    guest) i.e. if I plug in a flash drive then it would detect
>      in both
>      >      host
>      >      >    and guest and I'd be able edit files from all VMs rather
>      than
>      >      mounting and
>      >      >    unmounting everytime from 1 VM to other.
>      >      >    Please let me know your thoughts on it.
>      >      >
>      >
>      >      No, that's not possible with pvusb. pvusb is for direct passthru
>      to
>      >      one/single vm.
>      >      You'd need some filesystem share (cifs/nfs/whatnot) to make such
>      sharing
>      >      possible.
>      >
>      >      -- Pasi
>      >      >    Thanks,
>      >      >    Dhananjay
>      >      >
>      >      >    On Fri, Aug 27, 2010 at 4:28 AM, James Harper
>      >      >    <[2][3][5]james.harper@xxxxxxxxxxxxxxxx> wrote:
>      >      >
>      >      >      > Hi there!
>      >      >      >
>      >      >      > First I'd like to say that XEN plaform is really cool
>      and
>      >      awesome.
>      >      >      >
>      >      >      > I'm an engineering student and is searching for a
>      feasible
>      >      project in
>      >      >      > virtualization. I'd like to know if its possible to
>      share USB
>      >      devices
>      >      >      (flash
>      >      >      > drive, hard disk, mouse, keyboards etc) across guests
>      and host
>      >      (VMs).
>      >      >      Also, do
>      >      >      > you have any idea to extend it? Or any innovative idea
>      so that
>      >      we can
>      >      >      > implement it.
>      >      >      >
>      >      >      > I'd appreciate any help. Thanks in advance.
>      >      >      >
>      >      >
>      >      >      Further to what Pasi said, I have partially ported the
>      backend
>      >      interface
>      >      >      and can hand you the code if you want. It's probable a bit
>      stale
>      >      vs the
>      >      >      current kernels and leaks memory under some circumstances
>      but is
>      >      >      probably better than starting from scratch.
>      >      >      James
>      >      >
>      >      > References
>      >      >
>      >      >    Visible links
>      >      >    1. [4][6]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
>      >      >    2. mailto:[5][7]james.harper@xxxxxxxxxxxxxxxx
>      >
>      > References
>      >
>      >    Visible links
>      >    1. mailto:[8]pasik@xxxxxx
>      >    2. [9]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
>      >    3. mailto:[10]james.harper@xxxxxxxxxxxxxxxx
>      >    4. [11]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
>      >    5. mailto:[12]james.harper@xxxxxxxxxxxxxxxx
>
>      _______________________________________________
>      Xen-devel mailing list
>      [13]Xen-devel@xxxxxxxxxxxxxxxxxxx
>      [14]http://lists.xensource.com/xen-devel
>
> References
>
>    Visible links
>    1. mailto:pasik@xxxxxx
>    2. http://wiki.xensource.com/xenwiki/XenVGAPassthrough
>    3. mailto:pasik@xxxxxx
>    8. mailto:pasik@xxxxxx
>    9. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
>   10. mailto:james.harper@xxxxxxxxxxxxxxxx
>   11. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
>   12. mailto:james.harper@xxxxxxxxxxxxxxxx
>   13. mailto:Xen-devel@xxxxxxxxxxxxxxxxxxx
>   14. http://lists.xensource.com/xen-devel

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.