From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description |setup= #Host arch: x86_64, setup both x86_64 and i386 guests #Power on host #Start a virtual machine with default configuration |actions= #Attach the...")
 
No edit summary
Line 11: Line 11:
#You can find <domain> by running virsh list
#You can find <domain> by running virsh list
#For example usb.xml is
#For example usb.xml is
 
<pre>
<hostdev mode='subsystem' type='usb' managed='yes'>
<hostdev mode='subsystem' type='usb' managed='yes'>
     <source>
     <source>
Line 17: Line 17:
       <vendor id='0x0781'/>
       <vendor id='0x0781'/>
     </source>
     </source>
<@#%$/hostdev>
</hostdev>
 
</pre>
note:product id and vendor id can be found by running lsusb
{{admon/note|Note|product id and vendor id can be found by running lsusb|}}
|results=
|results=
#USB can be mount and work fine in virtual machine
#USB can be mount and work fine in virtual machine
}}
}}
[[Category:USB_test_cases]]
[[Category:USB_test_cases]]

Revision as of 07:49, 2 March 2012

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
product id and vendor id can be found by running lsusb

Expected Results

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