[server1]#lsusb
Bus 002 Device 002: ID 8087:8002 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:800a Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 3689:8762
Bus 003 Device 005: ID 096e:0006 Feitian Technologies, Inc.
Bus 003 Device 009: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[server1]#lsusb -v |grep 0403
idVendor 0x0403 Future Technology Devices International, Ltd
[server1]#lsusb -v |grep 6001
Bus 003 Device 009: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
idProduct 0x6001 FT232 Serial (UART) IC
编写xm文件样例如下 [server1]#vim usb.xml
使用virsh list查看虚拟机的uuid
[root@ceph-4 ~]# virsh list
Id Name State
----------------------------------------------------
1 327066ab27f4463daaceb29d062ea486 running
2 358b22f708f64253ba845f7c81faa703 running
3 6e89ca538b19453e8a2858c5b429a8b9 running
4 fcf3f0c092524488a58a4086b4f82a10 running