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> | ||
</pre> | |||
note | {{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
- Host arch: x86_64, setup both x86_64 and i386 guests
- Power on host
- Start a virtual machine with default configuration
How to test
- Attach the USB device
- Run lsusb and determin which usb device you want guest to load
- Run virsh attach-device <domain> usb.xml
- You can find <domain> by running virsh list
- For example usb.xml is
<hostdev mode='subsystem' type='usb' managed='yes'> <source> <product id='0x5567'/> <vendor id='0x0781'/> </source> </hostdev>
Expected Results
- USB can be mount and work fine in virtual machine