1, host installation Usbutils
Yum Install usbutils-y
2. Insert a USB stick or move the hard drive and view
[[Email protected] ~]# Lsusbbus002Device017: ID1058:1078Western Digital Technologies, Inc. Elements Portable (WDBUZG) Bus002Device002: ID8087:0024Intel Corp Integrated rate Matching Hubbus002Device001: ID 1d6b:0002Linux Foundation2.0Root Hubbus001Device002: ID8087:0024Intel Corp Integrated rate Matching Hubbus001Device001: ID 1d6b:0002Linux Foundation2.0Root Hub
3. Edit the client XML file and add the following:
[Email protected] ~]# Virsh edit Windows2008r2-oldweb-backup
'Subsystem'Type='USB'Managed='Yes'> <source> <vendorID='0x1058 '/>corresponding to the 1058 in Lsusb<productID='0x1078 '/>corresponding to the 1078 in Lsusb<address bus='2'Device=' -'/>corresponds to the bus and device numbers in the Lsusb</source> <address type='USB'bus='0'port='2'/> 4, and then reboot the client to complete the load
KVM client loads the removable hard drive