[NZLUG] qemu/kvm frustration

steve steve at greengecko.co.nz
Thu Mar 24 09:13:22 NZDT 2016

On 03/23/2016 01:41 PM, philip wrote:
> Hi folks,
>                  I have googled, read documentation and nothing seems to
> work.  I must be missing something obvious.
> I am trying to get a usb 2 port working as a storage unit on a virtual
> machine.  It would also be nice to to be able to specify the 'raw'
> option.
> I have qemu-kvm 1:2.5+dfsg-5 installed.
> The blank image is created by    qemu-img create  MAXI 8G
> The client system is installed using  (the media is a flash drive)
> kvm -hda MAXI -boot d -cdrom /dev/sdc -m 1024
> The client is run using   kvm ./MAXI -m 1024
> All works nicely, but not usb 2 or specifying 'raw'
> Phil.

This should work:

kvm ./MAXI -m 1024 -usb -device usb-host,hostbux=x,hostaddr=y

get x and y from lspci with the device plugged in

Steve Holdoway BSc(Hons) MIITP
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa

More information about the NZLUG mailing list