How to add USB devices to the Libvirt virtual system

Source: Internet
Author: User
Tags shuffle

Doing these things before is done through Virt-manager. However, because this graphical interface is not very convenient, and can not open now (the specific reason is not known, each turn prompts some methods do not realize what), so try to use Libvirt command Virsh to handle the increase of USB devices.

This time to add shuffle, previously found that gtkpod can not put music to the inside, only to try the virtual machine with itunes. The

first looks at the ID of the device by Lsusb:

My shuffle usbid is: Bus 002 Device 002:id 05ac:1303 Apple, Inc.
to create an XML file (hostdev_i Pod.xml):

  code is as follows copy code
#cat hostdev_ Ipod.xml
        <source
                <vendor ID = ' 0x05ac '/>
                <product id= ' 0x1303 '/>
        </source>



then through:

Virsh attach-device windows/path/to/hostdev_ipod.xml

Here's windows is the name of my virtual machine, The device can then be seen in the Windows virtual machine.

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.