LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   usb in qemu (https://www.linuxquestions.org/questions/linux-general-1/usb-in-qemu-640518/)

neutrino17 05-07-2008 08:01 AM

usb in qemu
 
How do I actually connect my USB flash to qemu? Documentation says I have to supply qemu with -usbdevice host:bus.addr or -usbdevice host:vendor_id:product_id, but how do I know all these host:bus.addr?

mfrias 05-07-2008 09:12 AM

Use the command lsusb, this list USB devices connected. If you're running with the option --verbose will show you additional information as idVendor, idProduct among others...

Code:

# lsusb
Bus 3 Device 1: ID 0000:0000
Bus 5 Device 1: ID 0000:0000
Bus 1 Device 2: ID 0457:0151 Silicon Integrated Systems Corp. Super Flash 1GB Flash Drive
Bus 1 Device 1: ID 0000:0000
Bus 4 Device 1: ID 0000:0000
Bus 2 Device 1: ID 0000:0000

Code:

# lsusb -v
...
Bus 1 Device 2: ID 0457:0151 Silicon Integrated Systems Corp. Super Flash 1GB Flash Drive
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        64
  idVendor          0x0457 Silicon Integrated Systems Corp.
  idProduct          0x0151 Super Flash 1GB Flash Drive
  bcdDevice            1.00
  iManufacturer          0
  iProduct                2 USB Mass Storage Device
  iSerial                3 000000000000CA
  bNumConfigurations      1
...


knudfl 05-07-2008 12:25 PM

If you have a bootable image on the flash memory, the command is
#qemu -usb /dev/sdX
To find the actual name of "sdX" please do
#fdisk -l

Rgds


All times are GMT -5. The time now is 04:12 PM.