Problem adding USB host device to KVM Windows guest machine.
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||
开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发. |
|
Problem adding USB host device to KVM Windows guest machine.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created attachment 561141 [details] Windows machine guest info Description of problem: Trying to add USB host device - storage and/or eToken to KVM Windows 7 32 and/or 64 bit (also Windows XP 32 and 64 bit) guest. No luck. Looks like Windows 7 see somthing on the bus, but device is not functioning inside of guest operating system. Sometime device in guest operating system doesn't even appear. Version-Release number of selected component (if applicable): Fedora 16 qemu-common-0.15.1-4.fc16.x86_64 qemu-img-0.15.1-4.fc16.x86_64 qemu-system-x86-0.15.1-4.fc16.x86_64 qemu-user-0.15.1-4.fc16.x86_64 qemu-kvm-tools-0.15.1-4.fc16.x86_64 qemu-kvm-0.15.1-4.fc16.x86_64 How reproducible: Start Windows KVM machine, add USB Steps to Reproduce: 1.Start Windows 7 guest using Virtual Machine Manager 2. Add Hardware in "Virtual Hardware Details" part 3. Choose USB host device and select for USB flash drive. 4. Apply Actual results: No functional device appears in Windows 7 guest Expected results: USB flash device and/or functional eToken device should appear. Additional info: Mentioned configuration worked fine in Fedora 14 using KVM, Windows XP and eToken USB token. I guess it's somehow connected with USB 2.0 integration in qemu.Created attachment 752386 [details] lsusb -vvv output of the deviceF18: qemu-system-x86-1.2.2-11.fc18.x86_64 qemu-img-1.2.0-23.fc18.x86_64 qemu-kvm-1.2.2-11.fc18.x86_64 qemu-common-1.2.2-11.fc18.x86_64 kernel-3.6.10-4.fc18.x6_64 Guest OSs: Windows Server 2008 R2 SP1 and Windows Server 2012 lsusb -vvv output: Please see attachment Description of how things are failing in the guest: Used Virtual Machine Manager to direct assign a USB device to a guest. This works fine if the guest is Linux, but with a Windows guest it doesn't get assigned. The device is removed from the host, and the guest OS has a yellow bang in device manager under Universal Serial Bus Controllers > USB Mass Storage Device. In device properties, the general tab has the following device status: This device cannot start. (Code 10) An invalid parameter was passed to a service or function. The events tab has an error event: Device not started (USBSTOR). The device not started event has the following information: Device USB\VID_0BC2&PID_2400\2GJ11QJ6____had a problem starting. Driver Name: usbstor.inf Class GUID: {36FC9E60-C464-11CF-8056-444553540000} Service: USBSTOR Lower Filters: Upper Filters: Problem: 0xA Status: 0x0 The Windows Event Manager logged the following information for the same error event described above: Log Name: Microsoft-Windows-Kernel-PnP/Device Configuration Source: Kernel-Pnp Event ID: 411 Level: Warning User: SYSTEM OpCode: Info Tried two USB devices on and they produced the same results.