From Fedora Project Wiki

m (Some formatting tweaks)
(How to check the device is actually USB3)
Line 8: Line 8:


|actions=
|actions=
# Make sure the VM is stopped. Edit the VM configuration like: <br><pre>virsh edit f18</pre>
* Attach the USB3 device to your host. Make sure it is showing up as USB3 (the 5000M bit at the end):
# Remove all devices like <controller type='usb... and add the following: <br><pre><controller type='usb' model='nec-xhci'/></pre>
    $ lsusb -t
# Save and exit. Start the guest, connect with virt-manager and log in to the guest.
    ...
# In the virt-manager hardware view, Add Hardware->USB Host Device, select your USB3 device to attach to the guest.
    /:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
        __ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
    ...


FIXME how to verify it's seen as USB3.0?<br>
* Make sure the VM is stopped. Edit the VM configuration like: <br><pre>virsh edit f18</pre>
FIXME what are expected speed increases?<br>
* Remove all devices like <controller type='usb... and add the following: <br><pre><controller type='usb' model='nec-xhci'/></pre>
lsusb, then lsusb --verbose -s 001:002<br>
* Save and exit. Start the guest, connect with virt-manager and log in to the guest.
cd /run/media/$user/dev ; dd if=/dev/zero of=./test.out count=2M  (1G of data)<br>
* In the virt-manager hardware view, Add Hardware->USB Host Device, select your USB3 device to attach to the guest.
* Start the guest, log in. <code>lsusb -t</code> should show the device as USB3 (like above)
* Verify the device works as expected


|results=
|results=

Revision as of 17:05, 1 November 2012

Description

Set your guest up with a USB3 controller and passthrough a USB3 device to your guest.

Setup

A functioning F18 VM, a host with USB3 ports and a physical USB3 device.

How to test

  • Attach the USB3 device to your host. Make sure it is showing up as USB3 (the 5000M bit at the end):
   $ lsusb -t
   ...
   /:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
        __ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
   ...
  • Make sure the VM is stopped. Edit the VM configuration like:
    virsh edit f18
  • Remove all devices like <controller type='usb... and add the following:
    <controller type='usb' model='nec-xhci'/>
  • Save and exit. Start the guest, connect with virt-manager and log in to the guest.
  • In the virt-manager hardware view, Add Hardware->USB Host Device, select your USB3 device to attach to the guest.
  • Start the guest, log in. lsusb -t should show the device as USB3 (like above)
  • Verify the device works as expected

Expected Results

No obvious errors occur. USB device is detected as USB3 in the VM, functions correctly, speed increases?