Redhat KVM virtual machine USB flash drive does not recognize the solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.