Testcase USB Virtualization

From Hamara Wiki
Revision as of 17:08, 2 April 2015 by Aparna (talk | contribs) (Setup)

Jump to: navigation, search

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>