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/
Home Products Support Community News


Re: [Xen-devel] Virtualization project idea

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-devel] Virtualization project idea
From: Dhananjay Goel <dhananjaygoel123@xxxxxxxxx>
Date: Fri, 27 Aug 2010 14:45:12 +0530
Cc: James Harper <james.harper@xxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 27 Aug 2010 02:16:06 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=P6b65DQqmbvZNypz7GDZpyMg+6amqsSDKM9G5IDCZGs=; b=bBAl7nG2ytYHvIW8GpvFDYprv0bJrGOqMDDUonWgAGtl3FmUVFB9ez3dF5/YqcFvKw eIbtjfJiL5bvGHmhNLpjYpJ88PGGLKF1nMmsIcbObmc8Kj6eQ47JH6acgrU0XA878uYx gYEX5qtCIrX2tVVy+RMlMV3Bl+xH7Zy/mQ8mw=
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=XE3M07xTUG5i/jotesxXSSr12gNe0DJIRjYjprZfLvb5bYTy9B+zxSdLs99VQ6rdGS +LonptOSCWrVzzUKtWKf36ogMQZUG1RmlrlfIeftR3jr4euJtxJGQqhFcIYh00zfgzL0 YUiJDQtYYO8R8GSxR9E7PDphwgRE5F1pymWzg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100827084622.GA2804@xxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTi=+Oa6dOcc0A9X37Bse0znrjT7AQ7Er7OQ5VVzq@xxxxxxxxxxxxxx> <AANLkTiko3oVuRxzHj+Xse7VZ4sv+5EM7ok2vsartk758@xxxxxxxxxxxxxx> <AANLkTinCihDe_rCx+jrUPRvDE6OKGgqxEUyK_PBtnLwR@xxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01A927E8@trantor> <AANLkTikLi=c33vUL0j2k52=HboqQWjmZogw67tEG=68w@xxxxxxxxxxxxxx> <20100827084622.GA2804@xxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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? 

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.


On Fri, Aug 27, 2010 at 2:16 PM, Pasi Kärkkäinen <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]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]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. http://wiki.xensource.com/xenwiki/XenUSBPassthrough
>    2. mailto:james.harper@xxxxxxxxxxxxxxxx

Xen-devel mailing list