QA:Testcase USB Virtualization

From FedoraProject

Jump to: navigation, search

Contents

Description

A brief description of the functionality being tested.

Setup

  1. Host arch: x86_64, setup both x86_64 and i386 guests
  2. Power on host
  3. Start a virtual machine with default configuration

How to test

  1. Attach the USB device
  2. Run lsusb and determin which usb device you want guest to load
  3. Run virsh attach-device <domain> usb.xml
  4. You can find <domain> by running virsh list
  5. For example usb.xml is
<hostdev mode='subsystem' type='usb' managed='yes'>
     <source>
       <product id='0x5567'/>
       <vendor id='0x0781'/>
     </source>
</hostdev>
Note.png
Note
product id and vendor id can be found by running lsusb

Expected Results

  1. USB can be mount and work fine in virtual machine