Skip to contentSkip to conversation

usb and qemu

Qemu-devel Michael Hoeller 3 participants 3 messages Aug 9, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

is there a way to access an usb stick from Windows which runs in qemu under Linux??

Michael

#1 lore raw
Quoted 7 lines · Michael Hoeller

Hello,

is there a way to access an usb stick from Windows which runs in qemu under Linux??

Michael

No.

http://usbip.naist.jp/ and http://sourceforge.net/projects/usbip/ might help if the guest and the host were both linux 2.6, however afaict usbip does not work under Windows yet.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#2 lore raw
In reply to Michael Hoeller
Quoted 4 lines · Michael Hoeller

Hello,

is there a way to access an usb stick from Windows which runs in qemu under Linux??

You can use the usb block device directly as a hard disk "image". ie something like
qemu -hdb /dev/sda ...

Obviously the guest will see it as an IDE drive, and hotpluging hasn't got a hope of working, but it's probably near enough for most purposes.

Note that you should never mount the same device on both the host and the guest at the same time. Doing so will cause data corruption.

Paul