Article 4XQ4N Passing a USB pen drive to Qemu vm

Passing a USB pen drive to Qemu vm

by
starbearer
from LinuxQuestions.org on (#4XQ4N)
am trying to get my Windows VM to access my USB pen drive, but I am having problems passing this USB over to the VM.

On my Linux host machine, I ran lsusb where my device was identified as
Quote:
Bus 001 Device 018 : ID 8564:1000 Transcend Information, Inc. Jetflash
I tried to pass it along to VM as
Quote:
qemu-system-x86_64 -m 3G --enable-kvm "Windows 10.qcow2" -usb -device usb-host,hostbus=1,hostaddr=18
I get the error saying "usb-host" is not a valid device.

I tried to change that to usb-storage, since that is the class of device I see for it when doing lsusb -t, but I don't know what to pass for Device ID..If I leave it blank, it says property ".drive" is missing, as expected.

I tried doing a Quote:
ls /sys/bus/usb/devices
which printed out some information like
Quote:
1-0:10 1-1 1-1.1 ........usb1 usb2
but with the command
Quote:
qemu-system-x86_64 -m 3G --enable-kvm "Windows 10.qcow2" -usb -device usb-storage,drive=<one of the above>
it says no such property with given value exists.

So,
  1. Should I be concerned that usb-host is not a valid device?
  2. What do I need to do to get usb-storage with device id to work?
  3. Does qemu-kvm support usb 2, 3 and streaming camera?
I'm using QEMU emulator version 4.1.0latest?d=yIl2AUoC8zA latest?i=KesnfNQFp_g:p3UeGnWm8hU:F7zBnMy latest?i=KesnfNQFp_g:p3UeGnWm8hU:V_sGLiP latest?d=qj6IDK7rITs latest?i=KesnfNQFp_g:p3UeGnWm8hU:gIN9vFwKesnfNQFp_g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments