Libvirt how virtual systems Add USB devices

Source: Internet
Author: User
Tags shuffle

All these things were done by Virt-manager. However, because this graphical interface is not convenient, and now can not open (the specific reason is unknown, each time prompted some methods not implemented what), so try to use Libvirt command Virsh to fix the increase of USB devices.

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

First look at the device ID by LSUSB difference:

My Shuffle Usbid is: Bus 002 Device 002:id 05ac:1303 Apple, Inc.
Create an XML file (hostdev_ipod.xml):

copy code
#cat hostdev_ipod.xml
         <source>
                 <vendor id= ' 0x05ac '/>
                 <product id= ' 0x1303 '/>
        </source>



Then by:

Virsh Attach-device Windows/path/to/hostdev_ipod.xml

Windows here is the name of my virtual machine, and then this device can be seen in the Windows virtual machine

Libvirt how virtual systems Add USB devices

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.