* accessing USB disk-on-key from windows (under KVM)
@ 2007-07-14 14:12 Ian Brown
[not found] ` <d0383f90707140712q4525964cpf59d651374203c9d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Ian Brown @ 2007-07-14 14:12 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hello,
Is there a way to access a USB disk-on-key from windows which runs on
Linux under KVM?
Any help will be appreciated,
Regards,
Ian
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 7+ messages in thread[parent not found: <d0383f90707140712q4525964cpf59d651374203c9d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: accessing USB disk-on-key from windows (under KVM) [not found] ` <d0383f90707140712q4525964cpf59d651374203c9d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2007-07-16 18:17 ` Avi Kivity [not found] ` <469BB64B.7060009-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Avi Kivity @ 2007-07-16 18:17 UTC (permalink / raw) To: Ian Brown; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f 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). -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <469BB64B.7060009-atKUWr5tajBWk0Htik3J/w@public.gmane.org>]
* Re: accessing USB disk-on-key from windows (under KVM) [not found] ` <469BB64B.7060009-atKUWr5tajBWk0Htik3J/w@public.gmane.org> @ 2007-07-16 18:25 ` Anthony Liguori [not found] ` <469BB814.6050700-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Anthony Liguori @ 2007-07-16 18:25 UTC (permalink / raw) To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Ian Brown 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <469BB814.6050700-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>]
* Re: accessing USB disk-on-key from windows (under KVM) [not found] ` <469BB814.6050700-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> @ 2007-07-18 19:32 ` Ian Brown [not found] ` <d0383f90707181232j2ab7dd42g88420167ef61a607-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Ian Brown @ 2007-07-18 19:32 UTC (permalink / raw) To: Anthony Liguori; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f 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 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 <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <d0383f90707181232j2ab7dd42g88420167ef61a607-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: accessing USB disk-on-key from windows (under KVM) [not found] ` <d0383f90707181232j2ab7dd42g88420167ef61a607-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2007-07-18 19:35 ` Anthony Liguori [not found] ` <469E6B7D.2030703-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> 2007-07-18 19:36 ` Daniel P. Berrange 1 sibling, 1 reply; 7+ messages in thread From: Anthony Liguori @ 2007-07-18 19:35 UTC (permalink / raw) To: Ian Brown; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f 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 <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <469E6B7D.2030703-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>]
* Re: accessing USB disk-on-key from windows (under KVM) [not found] ` <469E6B7D.2030703-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> @ 2007-07-20 7:24 ` Ian Brown 0 siblings, 0 replies; 7+ messages in thread From: Ian Brown @ 2007-07-20 7:24 UTC (permalink / raw) To: Anthony Liguori; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Hello, - I tried, as suggested: /usr/local/kvm/bin/qemu-system-x86_64 -usb -usbdevice disk:/dev/sdb /work/kvm/win2003/vdisk.img -m 384 it on x86_64 machine and it crashed the fedora core and rebooted the machine. I tried it in fact twice: once when the USB disk on key was not mounted, and once when it was mounted (though I doubt if it has any importance in this case). I wonder: could anybody access a USB disk on key from windows under Linux (via KVM)? can he share his experience and tell us exactly what he did ? Regards, Ian On 7/18/07, Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> wrote: > 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 <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: accessing USB disk-on-key from windows (under KVM) [not found] ` <d0383f90707181232j2ab7dd42g88420167ef61a607-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2007-07-18 19:35 ` Anthony Liguori @ 2007-07-18 19:36 ` Daniel P. Berrange 1 sibling, 0 replies; 7+ messages in thread From: Daniel P. Berrange @ 2007-07-18 19:36 UTC (permalink / raw) To: Ian Brown; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Wed, Jul 18, 2007 at 10:32:06PM +0300, 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 > 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). IIRC you need to also give the '-usb' arg to actually turn on USB bus emulation, then the -usbdevice args will be used. Regards, Dan, -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-07-20 7:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-14 14:12 accessing USB disk-on-key from windows (under KVM) Ian Brown
[not found] ` <d0383f90707140712q4525964cpf59d651374203c9d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-16 18:17 ` Avi Kivity
[not found] ` <469BB64B.7060009-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-16 18:25 ` Anthony Liguori
[not found] ` <469BB814.6050700-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-07-18 19:32 ` Ian Brown
[not found] ` <d0383f90707181232j2ab7dd42g88420167ef61a607-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-18 19:35 ` Anthony Liguori
[not found] ` <469E6B7D.2030703-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-07-20 7:24 ` Ian Brown
2007-07-18 19:36 ` Daniel P. Berrange
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox