Testcase USB Virtualization
From Hamara Wiki
Revision as of 16:54, 2 April 2015 by Aparna (talk | contribs) (Created page with "=== Setup === 1. Host arch: x86_64, setup both x86_64 and i386 guests 1. Power on host 1. Start a virtual machine with default configuration === How to test === 1. Attach...")
Setup
1. Host arch: x86_64, setup both x86_64 and i386 guests 1. Power on host 1. Start a virtual machine with default configuration
How to test
1. Attach the USB device
1. Run lsusb and determin which usb device you want guest to load
1. Run virsh attach-device <domain> usb.xml
1. You can find <domain> by running virsh list
1. For example usb.xml is
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<product id='0x5567'/>
<vendor id='0x0781'/>
</source>
</hostdev>