From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: accessing USB disk-on-key from windows (under KVM) Date: Wed, 18 Jul 2007 14:35:25 -0500 Message-ID: <469E6B7D.2030703@codemonkey.ws> References: <469BB64B.7060009@qumranet.com> <469BB814.6050700@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Ian Brown Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Ian Brown wrote: > Hello, > > Thanks, Anthony. > > I tried both #2 and #3. > > It does not say any error, but still I cannot access the USB disk on key. > Maybe I miss something ? > Here are few more details. > > When I ran: > /usr/local/kvm/bin/qemu-system-x86_64 -usbdevice disk:/dev/sdb > /work/kvm/win2003/vdisk.img -m 384 Try: /usr/local/kvm/bin/qemu-system-x86_64 -usb -usbdevice disk:/dev/sdb /work/kvm/win2003/vdisk.img -m 384 Regards, Anthony Liguori > OR > /usr/local/kvm/bin/qemu-system-x86_64 -hdb /dev/sdb > /work/kvm/win2003/vdisk.img -m 384 > > windows started ok (it did not emit errors, as I said). > > But I expected that clicking on "my computer" (or right clicking and > opening file explorer) will show me the USB storage disk, > and it did not. (I can see there only the hard disk and the CD). > > Any ideas ? > Am I missing here something ? > > Regards, > Ian > > > > > > > On 7/16/07, Anthony Liguori wrote: >> Avi Kivity wrote: >> > Ian Brown wrote: >> > >> >> Hello, >> >> Is there a way to access a USB disk-on-key from windows which runs on >> >> Linux under KVM? >> >> >> >> >> >> >> > >> > You can add it as a regular disk (-hdb /dev/sdb or whatever it's >> called; >> > make sure it isn't mounted in the host) or maybe via the -usbdevice >> > option (don't know if/how that works at all). >> > >> >> You have three options: >> >> 1) Expose it as -hdb /dev/sdb >> 2) Expose it as an emulated USB disk -usbdevice disk:/dev/sdb >> 3) Pass it through directly to the guest by disabling Linux from using >> the device and then passing it through with -usbdevice host:x.y >> >> #1 will perform the best >> #2 will give you the give you the most flexibility (you can remove the >> disk and insert at run time) >> #3 would allow you to support exotic disks that go beyond the standard >> mass storage specification. >> >> I'd recommend using #2. >> >> Regards, >> >> Anthony Liguori >> >> > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/