Testcase USB Virtualization
From Hamara Wiki
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
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>