Problem adding USB host device to KVM Windows guest machine.

Status: CLOSED CURRENTRELEASE
 
Aliases: None
 
Product: Fedora
Component: qemu (Show other bugs)
Version: 18
Hardware: x86_64 Unspecified
 
Priority unspecified Severity unspecified
Target Milestone: ---
Target Release: ---
Assigned To: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
Docs Contact:
 

URL:

Whiteboard:

 

Keywords:

 
 

Depends On:

Blocks:

  Show dependency tree

graph

 
Reported: 2012-02-11 15:19 EST by Juris Krumins

Modified: 2015-03-08 22:18 EDT
(History)
CC List: 24
users

(show)

 

See Also:

 

Fixed In Version:

 

Doc Type:

Bug Fix

Doc Text:

 

Clone Of:

 

Environment:

 

Last Closed:

2013-05-28 17:01:23 EDT
 

Attachments (Terms of Use)
Windows machine guest info

(115.92 KB,
application/pdf)

2012-02-11 15:19 EST,

Juris Krumins

no flags Details
lsusb -vvv output of the device

(2.28 KB,
text/plain)

2013-05-23 17:08 EDT,

denise.p.berry

no flags Details

Add an attachment
(proposed patch, testcase, etc.)

 

Description

Juris Krumins

2012-02-11 15:19:12 EST

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.
Comment 1 Fedora Admin XMLRPC Client 2012-03-15 13:56:50 EDT
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 2 Francis 2012-08-20 15:25:49 EDT
Same problem on RHEL 6.3
Comment 3 Jonathan Underwood 2012-10-18 06:28:40 EDT
Can confirm I see this problem on RHEL 6.3 too.
Comment 4 denise.p.berry 2013-01-03 16:17:13 EST
Please provide an update with the status of this issue.
Comment 5 Juris Krumins 2013-01-04 02:52:25 EST
(In reply to comment #4)
> Please provide an update with the status of this issue. Unfortunatelly still no luck to get eToken to work in KVM VM.
Using following components:
Fedora release 16 (Verne) x86_64
kernel-3.6.10-2.fc16.x86_64
qemu-kvm-0.15.1-8.fc16.x86_64
qemu-img-0.15.1-8.fc16.x86_64
qemu-kvm-tools-0.15.1-8.fc16.x86_64
qemu-system-x86-0.15.1-8.fc16.x86_64
qemu-common-0.15.1-8.fc16.x86_64 Tested eiher with "Default" and "USB2" USB Controller Mode in KVM.
Comment 6 denise.p.berry 2013-01-08 15:53:16 EST
This issue has been open for almost a year.  Since there isn't a workaround or fix yet, can this errata be documented in the Technical Notes document?
Comment 7 Cole Robinson 2013-01-11 10:56:49 EST
Anyone hitting an issue on RHEL, please file a separate bug there.

Sorry for the general lack of response, but given that F16 is EOL if about a month, and USB support in qemu has changed quite a bit between F16 version and current state of things, my recommendation would be to try out Fedora 18, and if you can reproduce the issue I'll raise it with the USB guys.
Comment 8 Juris Krumins 2013-01-12 07:39:19 EST
I can try things out with F18 and report back in any case so we can decide what to to with this issue.(In reply to comment #7)
Comment 9 Fedora End Of Life 2013-01-16 15:43:26 EST
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '16'. Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 16 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete. The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Comment 10 Juris Krumins 2013-01-17 08:26:04 EST
(In reply to comment #8)
> I can try things out with F18 and report back in any case so we can decide
> what to to with this issue.(In reply to comment #7) I've tested things out with F17. Same behaviour. Following components are in use: qemu-common-1.0.1-2.fc17.x86_64
qemu-kvm-1.0.1-2.fc17.x86_64
kernel-3.6.11-1.fc17.x86_64
qemu-kvm-tools-1.0.1-2.fc17.x86_64
qemu-system-x86-1.0.1-2.fc17.x86_64
qemu-img-1.0.1-2.fc17.x86_64
Comment 11 Don Dugger 2013-05-23 11:32:59 EDT
We tried this out on Fedora 18 and encountered the same problem.  Can you raise the issue with the USB guys?
Comment 12 Cole Robinson 2013-05-23 11:45:52 EDT
Don, for completeness can you please provide the following:

qemu package versions
qemu command line
guest OS
lsusb -vvv of the device
describe how things are failing in the guest
Comment 13 denise.p.berry 2013-05-23 17:08:18 EDT
Created attachment 752386 [details]
lsusb -vvv output of the device
Comment 14 denise.p.berry 2013-05-23 17:16:13 EDT
F18:

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.
Comment 15 Cole Robinson 2013-05-23 17:23:36 EDT
Hans, Gerd, anything else to check for here?
Comment 16 Hans de Goede 2013-05-24 02:25:52 EDT
Hi all,

(In reply to Cole Robinson from comment #15)
> Hans, Gerd, anything else to check for here? Denise, can you check what the usb controller type is set to in the virtual hardware details tab? If it is set to default or 1, can you try changing it to 2 ? Also you're using host redirection, so can you please check /var/log/libvirt/qemu/<vmname>.log and if there are any USB related messages there, collect them and attach here? Thanks, Hans
Comment 17 Juris Krumins 2013-05-24 04:53:16 EDT
Just my 5 cents.

I finally got Alladin eToken to work on F18 with the following components:

qemu-system-sparc-1.2.2-11.fc18.x86_64
kernel-modules-extra-3.8.11-200.fc18.x86_64
qemu-system-xtensa-1.2.2-11.fc18.x86_64
qemu-system-mips-1.2.2-11.fc18.x86_64
qemu-system-x86-1.2.2-11.fc18.x86_64
kernel-3.9.2-200.fc18.x86_64
qemu-user-1.2.2-11.fc18.x86_64
qemu-system-ppc-1.2.2-11.fc18.x86_64
qemu-system-sh4-1.2.2-11.fc18.x86_64
qemu-system-s390x-1.2.2-11.fc18.x86_64
qemu-system-alpha-1.2.2-11.fc18.x86_64
qemu-img-1.2.2-11.fc18.x86_64
qemu-system-or32-1.2.2-11.fc18.x86_64
qemu-1.2.2-11.fc18.x86_64
qemu-system-unicore32-1.2.2-11.fc18.x86_64
qemu-system-microblaze-1.2.2-11.fc18.x86_64
kernel-doc-3.9.2-200.fc18.noarch
qemu-system-m68k-1.2.2-11.fc18.x86_64
qemu-kvm-1.2.2-11.fc18.x86_64
kernel-modules-extra-3.8.9-200.fc18.x86_64
kernel-headers-3.9.2-200.fc18.x86_64
kernel-modules-extra-3.9.2-200.fc18.x86_64
qemu-system-lm32-1.2.2-11.fc18.x86_64
qemu-kvm-tools-1.2.2-11.fc18.x86_64
qemu-system-cris-1.2.2-11.fc18.x86_64
qemu-common-1.2.2-11.fc18.x86_64
qemu-system-arm-1.2.2-11.fc18.x86_64 USB controller model for the virtual machine set to: Model USB 2
Guest OS: Windows 7 64 bit.
Comment 18 Cole Robinson 2013-05-25 15:31:34 EDT
Denise, please see comment #16, more info has been requested.
Comment 19 denise.p.berry 2013-05-28 15:39:19 EDT
Setting the USB controller type to 2 instead of 1 (default) works.  The log for the VM (/var/log/libvirt/qemu/<vmname>.log) didn't have any USB specific information when I tried using controller type 1.
Comment 20 Hans de Goede 2013-05-28 17:01:23 EDT
Hi,

Thanks for testing!

(In reply to denise.p.berry from comment #19)
> Setting the USB controller type to 2 instead of 1 (default) works. The log
> for the VM (/var/log/libvirt/qemu/<vmname>.log) didn't have any USB specific
> information when I tried using controller type 1. That explains things then, the device you're trying to redirect is considered not compatible with a USB-1 controller, before we had USB-2 support we did not check that, but now we only allow redirecting USB-2 devices to a USB-1 controller if the meet certain criteria and the device apparently does not, Since moving to an USB-2 controller fixes this I'm going to close this bug. Regards, Hans
Comment 21 Michael DePaulo 2015-03-08 22:18:39 EDT
FYI: CentOS 7.0, and presumably RHEL 7.0, are affected by this issue also.
Changing the USB controller from "default" to "USB2" fixed compatibility with my SATA hard drive in a USB2 dock (13fd:1240 "Generic External").
 

Note You need to log in before you can comment on or make changes to this bug.

usb mass storage device的更多相关文章

  1. Android USB Connections Explained: MTP, PTP, and USB Mass Storage

    Android USB Connections Explained: MTP, PTP, and USB Mass Storage Older Android devices support USB ...

  2. USB Mass Storage协议分析

    目录 简介 指令数据和状态协议 CBW指令格式 CSWCommand Status Wrapper状态格式 SCSI命令集 Format Unit Inquiry MODE SELECT 简介 USB ...

  3. Send custom commands to Mass Storage device

    http://stackoverflow.com/questions/14363152/send-custom-commands-to-mass-storage-device I have devel ...

  4. USB Mass Storage communication with PassThrough / more than 64K data length

    http://social.msdn.microsoft.com/Forums/windowsdesktop/zh-CN/35620a05-43be-46a8-8cbe-846bc8295d85/us ...

  5. 使用Device IO Control 讀寫 USB Mass Storage

    http://www.ezblog.idv.tw/Download/USBStorage.rar 這是一個不透過檔案系統,去讀寫USB Mass Storage 任何位置(包含FAT)的方式 首先需安 ...

  6. usb mass storage之旅

    前面总结了usb hid keyboard,现在总结usb mass storage,在枚举阶段没什么好总结的,hid和mass storage差不多,都是同样的枚举过程,但是在他们的配置描述符.接口 ...

  7. USB Mass Storage大容量存储的基本知识

    http://www.crifan.com/files/doc/docbook/usb_disk_driver/release/htmls/ch02_msc_basic.html 目录 2.1. US ...

  8. USB Mass Storage大容量存储 The Thirteen Class章节的理解

    http://blog.csdn.net/xgbing/article/details/7002558 USB Mass Storage 6.7 The Thirteen Class章节的理解 Cas ...

  9. USB Mass Storage学习笔记-STM32+FLASH实现U盘

    一.内容概述  采用STM32内部自带USB控制器外加大页NAND FLASH K9F1G08U0A实现一个128M的U盘. 1.STM32的USB控制器 STM32F103的MCU自带USB从控制器 ...

随机推荐

  1. UIColor的用法

    UIColor,CGColor,CIColor的区别和联系 layer.shadowColor = [UIColor redColor].CGColor; 这个是今天用到的.顺便总结一下. 1.UIC ...

  2. BZOJ 2323 细胞(矩阵)

    题目链接:http://61.187.179.132/JudgeOnline/problem.php?id=2323 题意: 题意过于复杂,我直接简化下.给出一个长度为n的数字串,只包含1到9,将数字 ...

  3. Hearthstone-Deck-Tracker汉化处理技巧

    https://github.com/chucklu/Hearthstone-Deck-Tracker 首先本地需要有自己的远端chucklu以及作者的远端epix37 $ git remote -v ...

  4. shell/bash 交集、并集、差集

    方法一(直接用文件名):取两个文本文件的并集.交集.差集并:sort -m <(sort file1 | uniq) <(sort file2 | uniq) | uniq交:sort - ...

  5. Redis VS Memcached

    1. Redis & Memecached比较   内存管理 持久化 数据类型 客户端支持 并发性能 Memcached 预分配的内存池的方式 不支持持久化 支持简单的key-value存储 ...

  6. Codeforces Round #248 (Div. 2) C. Ryouko's Memory Note (vector 替换)

    题目链接 题意:给m个数字, 这些数字都不大于 n,  sum的值为相邻两个数字 差的绝对值.求这n个数字里把一个数字 用 其中另一个数字代替以后, 最小的sum值. 分析:刚开始以为两个for 最坏 ...

  7. 学军NOI训练13 T3 白黑树

    唉,大学军有自己的OJ就是好,无限orz 只有周六的比赛是开放的囧,这场比赛最后因为虚拟机卡住没有及时提交…… 否则就能让大家看到我有多弱了…… 前两题题解写的很详细,可以自己去看,我来随便扯扯T3好 ...

  8. UVa 11178 (简单练习) Morley's Theorem

    题意: Morley定理:任意三角形中,每个角的三等分线,相交出来的三个点构成一个正三角形. 不过这和题目关系不大,题目所求是正三角形的三个点的坐标,保留6位小数. 分析: 由于对称性,求出D点,EF ...

  9. Ajax、Comet与Websocket

    从 http 协议说起 1996年IETF  HTTP工作组发布了HTTP协议的1.0版本 ,到现在普遍使用的版本1.1,HTTP协议经历了17 年的发展.这种分布式.无状态.基于TCP的请求/响应式 ...

  10. [POJ 3498] March of the Penguins

    March of the Penguins Time Limit: 8000MS   Memory Limit: 65536K Total Submissions: 4378   Accepted:  ...