Environment: Rht 6.5 64bit, the system comes with KVM. The KVM built-in virtual machine is also installed RHT 6.5 64bit.
Failure: the USB stick inserted on the physical machine is not recognized within the virtual machine.
Workaround:
1. Through the Virtual Machine Information page, add hardware to select the USB device, note the previous number: For example, my host device, is 002:008 Kingston DataTraveler 3.0;
2. On the physical machine (host? ), in the KVM configuration directory. /etc/libvirt/qemu
3.ls each virtual machine system will have a corresponding XML file. Open the appropriate virtual machine's XML configuration file.
4. In the open configuration file, locate the following paragraph:
<source>
<vendor id= ' 0x0951 '/>//This is a U disk automatic identification of the gadget;
<product id= ' 0x1666 '/>//This is a U disk automatic identification of the gadget;
<address bus= ' 2 ' device= ' 8 '/>//Original is not this, add on this sentence!!!
</source>
<alias name= ' hostdev0 '/>//alias meaning it, can not add. (Refer to other places)
5. Save the exit.
6. Restart KVM. The U disk has been successfully recognized.
Note: 1. USB stick seems to be in the KVM virtual machine is exclusive, that the system used, and other systems can not be used, or even can not be opened!
2. Once the USB drive is recognized, the bus and device numbers become the other. There is no change in the configuration of this place. But the USB stick can be identified. Strange. Then do the testing later.
Reference: http://www.linuxidc.com/Linux/2014-12/110919.htm
Http://www.51ou.com/browse/kvm/51887.html
Redhat KVM virtual machine USB flash drive does not recognize the solution