From: "Pasi Kärkkäinen" <pasik@iki.fi>
To: Dhananjay Goel <dhananjaygoel123@gmail.com>
Cc: James Harper <james.harper@bendigoit.com.au>,
xen-devel@lists.xensource.com
Subject: Re: Virtualization project idea
Date: Fri, 27 Aug 2010 15:53:17 +0300 [thread overview]
Message-ID: <20100827125317.GF2804@reaktio.net> (raw)
In-Reply-To: <AANLkTinUbCBwjJ17=8n9z8OwEUh8+oea_+-EYEVv1xA3@mail.gmail.com>
On Fri, Aug 27, 2010 at 06:16:32PM +0530, Dhananjay Goel wrote:
> How are you sharing USB flash drives with physical machines
> Comment: In ubuntu, plug in flash drive and access /media folder. Then
> right click and click on "Sharing Options". Once you share it and give
> others the right to add/edit the files, they can do so.
>
That's NOT USB sharing at all!
That's just a general filesystem share (nfs,cifs,whatever network share).
You can do that with Xen, over the network, just like with physical machines.
-- Pasi
> Thanks,
> Dhananjay
>
> On Fri, Aug 27, 2010 at 5:24 PM, Pasi K*rkk*inen <[1]pasik@iki.fi> wrote:
>
> On Fri, Aug 27, 2010 at 04:56:33PM +0530, Dhananjay Goel wrote:
> > * *Also you wouldn't see the changes made in other VMs,
> > * *unless you made sure all the caches are refreshed etc in the VM all
> the
> > * *time.
> >
> > * *You'd need to use some cluster-filesystem (GFS, GFS2, OCFS2, GPFS,
> etc).
> > * *--Can you please suggest how NFS manages this because this case is
> handled
> > * *by NFS without any corruption?
> > * *We can share flash drive across VMs as we do with physical machines
> in
> > * *LAN. Please help!
> >
>
> How are you sharing USB flash drives with physical machines?
>
> -- Pasi
>
> > * *Thanks,
> > * *Dhananjay
> >
> > * *On Fri, Aug 27, 2010 at 4:27 PM, Pasi K*rkk*inen
> <[1][2]pasik@iki.fi> wrote:
> >
> > * * *On Fri, Aug 27, 2010 at 02:53:54PM +0530, Dhananjay Goel wrote:
> > * * *> * *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!
> > * * *>
> > * * *> * *--Why would it get corrupted immediately. Might be we can
> just lock
> > * * *a
> > * * *> * *specific file which is being edited? Please suggest.
> > * * *>
> >
> > * * *Because USB level has no idea about filesystems or files, or
> locking
> > * * *them!
> >
> > * * *Say you're using ext3 or NTFS in the VM for the USB device.
> > * * *Those filesystems are NOT cluster-aware, ie. they're not aware of
> any
> > * * *sharing,
> > * * *and they don't support any kind of sharing.
> >
> > * * *They expect exclusive access to the device.
> >
> > * * *If suddenly the bits on the device change from outside,
> > * * *the filesystem gets corrupted very easily.
> >
> > * * *Also you wouldn't see the changes made in other VMs,
> > * * *unless you made sure all the caches are refreshed etc in the VM
> all the
> > * * *time.
> >
> > * * *You'd need to use some cluster-filesystem (GFS, GFS2, OCFS2,
> GPFS, etc).
> >
> > * * *-- Pasi
> >
> > * * *> * *Thanks,
> > * * *> * *Dhananjay
> > * * *>
> > * * *> * *On Fri, Aug 27, 2010 at 2:49 PM, Pasi K*rkk*inen
> > * * *<[1][2][3]pasik@iki.fi> 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][3][4]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][4][5]pasik@iki.fi> 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][5][6]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][6][7]james.harper@bendigoit.com.au>
> 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][7][8]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * * *> * * *> * * *> * *2.
> mailto:[5][7][8][9]james.harper@bendigoit.com.au
> > * * *> * * *>
> > * * *> * * *> References
> > * * *> * * *>
> > * * *> * * *> * *Visible links
> > * * *> * * *> * *1. mailto:[8][9][10]pasik@iki.fi
> > * * *> * * *> * *2.
> > * * *[9][10][11]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * * *> * * *> * *3. mailto:[10][11][12]james.harper@bendigoit.com.au
> > * * *> * * *> * *4.
> > * * *[11][12][13]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * * *> * * *> * *5. mailto:[12][13][14]james.harper@bendigoit.com.au
> > * * *>
> > * * *> References
> > * * *>
> > * * *> * *Visible links
> > * * *> * *1. mailto:[14][15]pasik@iki.fi
> > * * *> * *2.
> [15][16]http://wiki.xensource.com/xenwiki/XenVGAPassthrough
> > * * *> * *3. mailto:[16][17]pasik@iki.fi
> > * * *> * *4.
> [17][18]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * * *> * *5. mailto:[18][19]james.harper@bendigoit.com.au
> > * * *> * *6.
> [19][20]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * * *> * *7. mailto:[20][21]james.harper@bendigoit.com.au
> > * * *> * *8. mailto:[21][22]pasik@iki.fi
> > * * *> * *9.
> [22][23]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * * *> * 10. mailto:[23][24]james.harper@bendigoit.com.au
> > * * *> * 11.
> [24][25]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * * *> * 12. mailto:[25][26]james.harper@bendigoit.com.au
> >
> > References
> >
> > * *Visible links
> > * *1. mailto:[27]pasik@iki.fi
> > * *2. mailto:[28]pasik@iki.fi
> > * *3. [29]http://wiki.xensource.com/xenwiki/XenVGAPassthrough
> > * *4. mailto:[30]pasik@iki.fi
> > * *5. [31]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * *6. mailto:[32]james.harper@bendigoit.com.au
> > * *7. [33]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * *8. mailto:[34]james.harper@bendigoit.com.au
> > * *9. mailto:[35]pasik@iki.fi
> > * 10. [36]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * 11. mailto:[37]james.harper@bendigoit.com.au
> > * 12. [38]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * 13. mailto:[39]james.harper@bendigoit.com.au
> > * 14. mailto:[40]pasik@iki.fi
> > * 15. [41]http://wiki.xensource.com/xenwiki/XenVGAPassthrough
> > * 16. mailto:[42]pasik@iki.fi
> > * 17. [43]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * 18. mailto:[44]james.harper@bendigoit.com.au
> > * 19. [45]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * 20. mailto:[46]james.harper@bendigoit.com.au
> > * 21. mailto:[47]pasik@iki.fi
> > * 22. [48]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * 23. mailto:[49]james.harper@bendigoit.com.au
> > * 24. [50]http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> > * 25. mailto:[51]james.harper@bendigoit.com.au
>
> References
>
> Visible links
> 1. mailto:pasik@iki.fi
> 2. mailto:pasik@iki.fi
> 3. mailto:pasik@iki.fi
> 4. http://wiki.xensource.com/xenwiki/XenVGAPassthrough
> 5. mailto:pasik@iki.fi
> 6. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 7. mailto:james.harper@bendigoit.com.au
> 8. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 9. mailto:james.harper@bendigoit.com.au
> 10. mailto:pasik@iki.fi
> 11. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 12. mailto:james.harper@bendigoit.com.au
> 13. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 14. mailto:james.harper@bendigoit.com.au
> 15. mailto:pasik@iki.fi
> 16. http://wiki.xensource.com/xenwiki/XenVGAPassthrough
> 17. mailto:pasik@iki.fi
> 18. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 19. mailto:james.harper@bendigoit.com.au
> 20. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 21. mailto:james.harper@bendigoit.com.au
> 22. mailto:pasik@iki.fi
> 23. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 24. mailto:james.harper@bendigoit.com.au
> 25. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 26. mailto:james.harper@bendigoit.com.au
> 27. mailto:pasik@iki.fi
> 28. mailto:pasik@iki.fi
> 29. http://wiki.xensource.com/xenwiki/XenVGAPassthrough
> 30. mailto:pasik@iki.fi
> 31. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 32. mailto:james.harper@bendigoit.com.au
> 33. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 34. mailto:james.harper@bendigoit.com.au
> 35. mailto:pasik@iki.fi
> 36. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 37. mailto:james.harper@bendigoit.com.au
> 38. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 39. mailto:james.harper@bendigoit.com.au
> 40. mailto:pasik@iki.fi
> 41. http://wiki.xensource.com/xenwiki/XenVGAPassthrough
> 42. mailto:pasik@iki.fi
> 43. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 44. mailto:james.harper@bendigoit.com.au
> 45. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 46. mailto:james.harper@bendigoit.com.au
> 47. mailto:pasik@iki.fi
> 48. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 49. mailto:james.harper@bendigoit.com.au
> 50. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
> 51. mailto:james.harper@bendigoit.com.au
next prev parent reply other threads:[~2010-08-27 12:53 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTi=+Oa6dOcc0A9X37Bse0znrjT7AQ7Er7OQ5VVzq@mail.gmail.com>
2010-08-26 18:40 ` [Qemu-devel] Virtualization project idea Dhananjay Goel
2010-08-26 18:44 ` Dhananjay Goel
2010-08-26 19:56 ` Pasi Kärkkäinen
2010-08-26 22:58 ` James Harper
2010-08-27 8:07 ` Dhananjay Goel
2010-08-27 8:46 ` Pasi Kärkkäinen
2010-08-27 9:15 ` Dhananjay Goel
2010-08-27 9:19 ` Pasi Kärkkäinen
2010-08-27 9:20 ` David Markey
2010-08-27 9:23 ` Pasi Kärkkäinen
2010-08-27 9:25 ` Dhananjay Goel
2010-08-27 9:44 ` Keir Fraser
2010-08-27 9:48 ` Dhananjay Goel
2010-08-27 9:50 ` David Markey
2010-08-27 9:56 ` Dhananjay Goel
2010-08-27 9:57 ` Keir Fraser
2010-08-27 18:26 ` Gianni Tedesco
2010-08-27 9:23 ` Dhananjay Goel
2010-08-27 10:31 ` Marc - A. Dahlhaus
2010-08-27 10:57 ` Pasi Kärkkäinen
2010-08-27 11:26 ` Dhananjay Goel
2010-08-27 11:54 ` Pasi Kärkkäinen
2010-08-27 12:46 ` Dhananjay Goel
2010-08-27 12:53 ` Pasi Kärkkäinen [this message]
2010-08-27 13:03 ` Dhananjay Goel
2010-08-27 13:08 ` Pasi Kärkkäinen
2010-08-27 13:17 ` Michal Novotny
2010-08-27 13:30 ` Pasi Kärkkäinen
2010-08-27 13:35 ` Dhananjay Goel
2010-08-27 13:46 ` Pasi Kärkkäinen
2010-08-27 13:55 ` Dhananjay Goel
2010-08-27 14:09 ` Pasi Kärkkäinen
2010-08-27 13:47 ` Michal Novotny
2010-08-27 17:05 ` Pasi Kärkkäinen
2010-08-27 13:18 ` Christoph Egger
2010-08-27 13:22 ` Pasi Kärkkäinen
2010-08-27 13:26 ` Michal Novotny
2010-08-27 13:33 ` Pasi Kärkkäinen
2010-08-27 13:48 ` Michal Novotny
2010-08-27 13:29 ` Dhananjay Goel
2010-08-27 13:34 ` Pasi Kärkkäinen
2010-08-27 13:50 ` Michal Novotny
2010-08-27 14:00 ` Dhananjay Goel
2010-08-27 14:20 ` Michal Novotny
2010-08-27 16:58 ` Pasi Kärkkäinen
2010-08-27 15:12 ` Gianni Tedesco
2010-08-27 16:21 ` Konrad Rzeszutek Wilk
2010-08-27 16:51 ` [Qemu-devel] Re: [Xen-devel] " Stefano Stabellini
2010-08-27 16:51 ` Stefano Stabellini
2010-08-27 17:01 ` [Qemu-devel] Re: [Xen-devel] " David Markey
2010-08-27 17:01 ` David Markey
2010-08-27 17:06 ` [Qemu-devel] Re: [Xen-devel] " Pasi Kärkkäinen
2010-08-27 17:06 ` Pasi Kärkkäinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100827125317.GF2804@reaktio.net \
--to=pasik@iki.fi \
--cc=dhananjaygoel123@gmail.com \
--cc=james.harper@bendigoit.com.au \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.