Skip to contentSkip to conversation

DETECTING AND USING USB MEMORY STICKS IN QEMU

Qemu-devel [email protected] 2 participants 2 messages Aug 1, 2009

lore
Share & tools
lore
#0 lore raw

PLEASE COULD YOU KINDLY GIVE ME ADVICE ON HOW TO DETECT A USB MEMORY STICK IN QEMU RUNNING LINUX SO THAT THE LINUX APPLICATION CAN "SEE" AND WRITE TO THE MEMORY STICK

#1 lore raw
Quoted 1 line · On Sat, Aug 1, 2009 at 7:03 AM, <[email protected]> wrote:

PLEASE COULD YOU KINDLY GIVE ME ADVICE ON HOW TO DETECT A USB MEMORY STICK IN QEMU RUNNING LINUX SO THAT THE LINUX APPLICATION CAN "SEE" AND WRITE TO THE MEMORY STICK

Please don't write in capitals.

Once you plug your stick to the host computer, you can figure out its VID:PID by running 'lsusb'.
suppose you find VID=dead and PID=beef

Then you can start qemu with

-usbdevice host:auto:*:*:dead:beef

and qemu will auto-detect the device and assign it to itself.

Cheers,
Pantelis