QEMU with USB support
January 7, 2009
I am running GNU/Debian using QEMU to run virtual machines. I needed USB support for my Windows virtual machine. This is easily done by adding the parameter ‘-usb’. You also need to specify some additional information.
I came across this great site. They had every information I needed.
First, mount your usb stick in Linux. You need the vendor and productid. This is shown when typing lsusb in the command line. It gave me this line:
Bus 003 Device 002: ID 1307:0165 Transcend Information, Inc.
1307 is the vendorid and 0165 is the productid. My new Qemu startup script now looks like this:
#!/bin/sh
sudo qemu /room/vm/xp.img -std-vga -kernel-kqemu -m 1000 -usb -usbdevice host:1307:0165
Yes – you need root access to let qemu get access to the usb device.
November 17, 2009 at 19:25
I had the same problem and sudo works just fine
but it leaves behind a terminal. Did gksudo worked for you. FYI it did’nt worked for me
November 21, 2009 at 12:22
I also tried gksudo – but if I remember correctly, I settled with sudo as it did what I wanted it to do