Using usb 2.0 devices in KVM guest?

Jeff Jibson jeff.jibson at parentlink.net
Mon Apr 8 10:33:47 MDT 2013


I use this from kvm, and have never had a problem.

Run lsusb.  Insert the USB drive and run lsusb again.  The new line will be
that drive.

Ex:
Bus 002 Device 003: ID 0781:5530 SanDisk Corp. Cruzer

Then using the ID from the lsusb line, add:

-usb -usbdevice host:0781:5530

into your qemu-kvm command:

qemu-kvm -usb -usbdevice host:0781:5530 -hda ~/vm/test.raw -name test -m
512 -boot c &


On Fri, Apr 5, 2013 at 10:38 PM, Michael Torrie <torriem at gmail.com> wrote:

> Is it possible to add usb 2.0 devices from the host into kvm guests?
> And even better, can it be done via libvirt/virt-manager?  Baring that,
> is there some command-line magic to make it happen?  Running CentOS6 here.
>
> Anyone with experience in this?
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>


More information about the PLUG mailing list