[NZLUG] qemu/kvm frustration
philipc at copyleft.co.nz
Tue Mar 29 22:31:11 NZDT 2016
On Thu, 2016-03-24 at 09:13 +1300, steve wrote:
> 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'
> > HELP!
> > 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
Thanks, it got me on the right track.
kvm -m 1024 ./MAXI -usbdevice host:ABCD:1234
Where ABCD is the vendorid and 1234 is the productid of the plugged in
Found with lsusb 1234:ABCD
Philip Charles; 39a Paterson Street, Abbotsford, Dunedin, New Zealand
+64 3 488 2818 Mobile 027 663 4453 philipc at copyleft.co.nz
More information about the NZLUG