From Fedora Project Wiki

(Create page, needs some info though)
 
(Update test case with latest virt-manager UI)
 
(2 intermediate revisions by the same user not shown)
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?
* Make sure the VM is stopped. In virt-manager, navigate to the VM hardware page, change the 'Controller USB' model to USB3. Apply
FIXME what are expected speed increases?
* Start the guest and log in.
lsusb, then lsusb --verbose -s 001:002
* In the virt-manager hardware view, Add Hardware->USB Host Device, select your USB3 device to attach to the guest.
cd /run/media/$user/dev ; dd if=/dev/zero of=./test.out count=2M  (1G of data)
* 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=
No obvious errors occur. USB device is detected as USB3 in the VM, functions correctly, speed increases?
No obvious errors occur. USB device is detected as USB3 in the VM, functions correctly.
}}
}}


[[Category:Virtualization Test Cases]]
[[Category:Virtualization Test Cases]]

Latest revision as of 21:25, 7 October 2013

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. In virt-manager, navigate to the VM hardware page, change the 'Controller USB' model to USB3. Apply
  • Start the guest and log in.
  • 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.