Hey guys. I have a server running several Windows 2016 KVM guests and want to passthrough an external USB drive to one of the guests. Host OS is Centos 7, so pretty old, but I was able to add the USB device and mount it in the host no problem. I now need to add the device into the guest xml file. So my question is, using virsh to edit the xml file, I am not sure how to write out the changes or if this is even required and the file saves automatically when closed? Server is a production Windows DC so want to reduce the downtime/risk as much as possible.
device to add to guest domain file.
<hostdev mode='subsystem' type='usb'>
<source startupPolicy='optional' guestReset='off'>
<vendor id='0x0480'/>
<product id='0xb207'/>
</source>
<boot order='2'/>
</hostdev>
Thanks all, Garry.
device to add to guest domain file.
<hostdev mode='subsystem' type='usb'>
<source startupPolicy='optional' guestReset='off'>
<vendor id='0x0480'/>
<product id='0xb207'/>
</source>
<boot order='2'/>
</hostdev>
Thanks all, Garry.