LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-07-2008, 08:01 AM   #1
neutrino17
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, 09:12 AM   #2
mfrias
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...

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

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


Reply


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 03:45 PM
qemu boot of live USB image hands loading initrd.img poblano Linux - Software 1 03-09-2008 09:45 AM
USB Linux w/ QEMU badomun Linux - Newbie 2 01-21-2008 07:23 PM
persistent fs mounts between linux usb-boot and qemu guest on windows? stairwayoflight Linux - Software 0 01-11-2007 03:14 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM


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

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