Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Search this Thread
Old 05-07-2008, 09:01 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
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_idroduct_id, but how do I know all these host:bus.addr?
Old 05-07-2008, 10:12 AM   #2
LQ Newbie
Registered: Dec 2007
Location: Cochabamba, Bolivia
Distribution: 574ckw4r3 14.0
Posts: 15

Rep: Reputation: 7
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...

# 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
# 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
Old 05-07-2008, 01:25 PM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,714

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combination bootable Linux USB key and QEMU launch? davidengel Linux - General 4 12-04-2011 04:45 PM
qemu boot of live USB image hands loading initrd.img poblano Linux - Software 1 03-09-2008 10:45 AM
USB Linux w/ QEMU badomun Linux - Newbie 2 01-21-2008 08:23 PM
persistent fs mounts between linux usb-boot and qemu guest on windows? stairwayoflight Linux - Software 0 01-11-2007 04:14 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-05-2005 12:25 AM

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration