[TriLUG] Adding an external USB drive to a KVM windows guest not working well

Mauricio Tavares via TriLUG trilug at trilug.org
Tue Mar 21 09:06:16 EDT 2017


So I tried:

1. virsh attach-disk /dev/sdg windowsguest sdd
2. Try to feed the entire usb device
2.1. lsusb to find the vendor and product ids
2.2. Create a usb.xml file with that info, say,

    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source  startupPolicy='optional' missing='yes'>
        <vendor id='0x152d'/>
        <product id='0x2338'/>
      </source>
    </hostdev>

2.3. virsh attach-device windowsguest usb.html

Neither seem to be recognised by the windows as a new device.

Suggestions?


More information about the TriLUG mailing list