
Now on the phone enable USB Mass Storage, and the guest should display a dialog seeing a new USB filesystem. Start the VM and verify the usb host controller and device show up like above.

Here, we are choosing the same Phone device. Now Click Add Hardware, and Choose USB Host Device. Click the virtual hardware details (lightbulb). Plug the required USB device in a USB port of your host computer. Once installed, start your virtual machine (be it Windows, Linux, or some other supported guest OS).

Start virt-manager, and open your VM by double clicking on it. As an option, (to take advantage of USB 3.0 speeds) you can install the free VirtualBox Extension Pack. The VM is not running, and you'd like to add a USB host device to the VM. This assumes you already have created a VM using virt-manager. Nexus One PhoneĪnd on the phone enable USB Mass Storage, and the guest should display a dialog seeing a new USB filesystem. Simple as that.Ġ0:01.2 USB Controller: Intel Corporation 82371SB PIIX3 USB (rev 01)īus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubīus 001 Device 002: ID 18d1:4e11 Google Inc. Here we add the -usb to add a host controller, and add -device usb-host,hostbus=2,hostaddr=3 to add the host's USB device at Bus 2, Device 3. Manually, using qemu-kvm command line #/usr/bin/qemu-kvm -m 1024 -name f15 -drive file=/images/f15.img,if=virtio -usb -device usb-host,hostbus=2,hostaddr=3 Here we'll use a phone attached to the host:īus 002 Device 003: ID 18d1:4e11 Google Inc. This HOWTO is limited to UHCI devices (no USB2 EHCI).

Will first show how to do this manually, and second how to do it using the virt-manager tool. This example is based on qemu-kvm (0.15.0) as installed in Fedora 15. Example Assigning Host USB device to a Guest VM
