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

  1. Created attachment 561141 [details]
  2. Windows machine guest info
  3.  
  4. Description of problem:
  5. 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.
  6.  
  7. Version-Release number of selected component (if applicable):
  8. Fedora 16
  9. qemu-common-0.15.1-4.fc16.x86_64
  10. qemu-img-0.15.1-4.fc16.x86_64
  11. qemu-system-x86-0.15.1-4.fc16.x86_64
  12. qemu-user-0.15.1-4.fc16.x86_64
  13. qemu-kvm-tools-0.15.1-4.fc16.x86_64
  14. qemu-kvm-0.15.1-4.fc16.x86_64
  15.  
  16. How reproducible:
  17. Start Windows KVM machine, add USB
  18.  
  19. Steps to Reproduce:
  20. 1.Start Windows 7 guest using Virtual Machine Manager
  21. 2. Add Hardware in "Virtual Hardware Details" part
  22. 3. Choose USB host device and select for USB flash drive.
  23. 4. Apply
  24.  
  25. Actual results:
  26.  
  27. No functional device appears in Windows 7 guest
  28.  
  29. Expected results:
  30.  
  31. USB flash device and/or functional eToken device should appear.
  32.  
  33. Additional info:
  34.  
  35. 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
  1. 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
  1. Same problem on RHEL 6.3
Comment 3 Jonathan Underwood 2012-10-18 06:28:40 EDT
  1. Can confirm I see this problem on RHEL 6.3 too.
Comment 4 denise.p.berry 2013-01-03 16:17:13 EST
  1. Please provide an update with the status of this issue.
Comment 5 Juris Krumins 2013-01-04 02:52:25 EST
  1. (In reply to comment #4)
  2. > Please provide an update with the status of this issue.
  3.  
  4. Unfortunatelly still no luck to get eToken to work in KVM VM.
  5. Using following components:
  6. Fedora release 16 (Verne) x86_64
  7. kernel-3.6.10-2.fc16.x86_64
  8. qemu-kvm-0.15.1-8.fc16.x86_64
  9. qemu-img-0.15.1-8.fc16.x86_64
  10. qemu-kvm-tools-0.15.1-8.fc16.x86_64
  11. qemu-system-x86-0.15.1-8.fc16.x86_64
  12. qemu-common-0.15.1-8.fc16.x86_64
  13.  
  14. Tested eiher with "Default" and "USB2" USB Controller Mode in KVM.
Comment 6 denise.p.berry 2013-01-08 15:53:16 EST
  1. 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
  1. Anyone hitting an issue on RHEL, please file a separate bug there.
  2.  
  3. 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
  1. 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
  1. This message is a reminder that Fedora 16 is nearing its end of life.
  2. Approximately 4 (four) weeks from now Fedora will stop maintaining
  3. and issuing updates for Fedora 16. It is Fedora's policy to close all
  4. bug reports from releases that are no longer maintained. At that time
  5. this bug will be closed as WONTFIX if it remains open with a Fedora
  6. 'version' of '16'.
  7.  
  8. Package Maintainer: If you wish for this bug to remain open because you
  9. plan to fix it in a currently maintained version, simply change the 'version'
  10. to a later Fedora version prior to Fedora 16's end of life.
  11.  
  12. Bug Reporter: Thank you for reporting this issue and we are sorry that
  13. we may not be able to fix it before Fedora 16 is end of life. If you
  14. would still like to see this bug fixed and are able to reproduce it
  15. against a later version of Fedora, you are encouraged to click on
  16. "Clone This Bug" and open it against that version of Fedora.
  17.  
  18. Although we aim to fix as many bugs as possible during every release's
  19. lifetime, sometimes those efforts are overtaken by events. Often a
  20. more recent Fedora release includes newer upstream software that fixes
  21. bugs or makes them obsolete.
  22.  
  23. The process we are following is described here:
  24. http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Comment 10 Juris Krumins 2013-01-17 08:26:04 EST
  1. (In reply to comment #8)
  2. > I can try things out with F18 and report back in any case so we can decide
  3. > what to to with this issue.(In reply to comment #7)
  4.  
  5. I've tested things out with F17. Same behaviour.
  6.  
  7. Following components are in use:
  8.  
  9. qemu-common-1.0.1-2.fc17.x86_64
  10. qemu-kvm-1.0.1-2.fc17.x86_64
  11. kernel-3.6.11-1.fc17.x86_64
  12. qemu-kvm-tools-1.0.1-2.fc17.x86_64
  13. qemu-system-x86-1.0.1-2.fc17.x86_64
  14. qemu-img-1.0.1-2.fc17.x86_64
Comment 11 Don Dugger 2013-05-23 11:32:59 EDT
  1. 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
  1. Don, for completeness can you please provide the following:
  2.  
  3. qemu package versions
  4. qemu command line
  5. guest OS
  6. lsusb -vvv of the device
  7. describe how things are failing in the guest
Comment 13 denise.p.berry 2013-05-23 17:08:18 EDT
  1. Created attachment 752386 [details]
  2. lsusb -vvv output of the device
Comment 14 denise.p.berry 2013-05-23 17:16:13 EDT
  1. F18:
  2.  
  3. qemu-system-x86-1.2.2-11.fc18.x86_64
  4. qemu-img-1.2.0-23.fc18.x86_64
  5. qemu-kvm-1.2.2-11.fc18.x86_64
  6. qemu-common-1.2.2-11.fc18.x86_64
  7. kernel-3.6.10-4.fc18.x6_64
  8.  
  9. Guest OSs:
  10. Windows Server 2008 R2 SP1 and Windows Server 2012
  11.  
  12. lsusb -vvv output:
  13. Please see attachment
  14.  
  15. Description of how things are failing in the guest:
  16. 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:
  17. This device cannot start. (Code 10)
  18. An invalid parameter was passed to a service or function.
  19.  
  20. The events tab has an error event: Device not started (USBSTOR).
  21. The device not started event has the following information: Device USB\VID_0BC2&PID_2400\2GJ11QJ6____had a problem starting.
  22. Driver Name: usbstor.inf
  23. Class GUID: {36FC9E60-C464-11CF-8056-444553540000}
  24.  
  25. Service: USBSTOR
  26. Lower Filters:
  27. Upper Filters:
  28. Problem: 0xA
  29. Status: 0x0
  30.  
  31. The Windows Event Manager logged the following information for the same error event described above:
  32. Log Name: Microsoft-Windows-Kernel-PnP/Device Configuration
  33. Source: Kernel-Pnp
  34. Event ID: 411
  35. Level: Warning
  36. User: SYSTEM
  37. OpCode: Info
  38.  
  39. Tried two USB devices on and they produced the same results.
Comment 15 Cole Robinson 2013-05-23 17:23:36 EDT
  1. Hans, Gerd, anything else to check for here?
Comment 16 Hans de Goede 2013-05-24 02:25:52 EDT
  1. Hi all,
  2.  
  3. (In reply to Cole Robinson from comment #15)
  4. > Hans, Gerd, anything else to check for here?
  5.  
  6. 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 ?
  7.  
  8. 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?
  9.  
  10. Thanks,
  11.  
  12. Hans
Comment 17 Juris Krumins 2013-05-24 04:53:16 EDT
  1. Just my 5 cents.
  2.  
  3. I finally got Alladin eToken to work on F18 with the following components:
  4.  
  5. qemu-system-sparc-1.2.2-11.fc18.x86_64
  6. kernel-modules-extra-3.8.11-200.fc18.x86_64
  7. qemu-system-xtensa-1.2.2-11.fc18.x86_64
  8. qemu-system-mips-1.2.2-11.fc18.x86_64
  9. qemu-system-x86-1.2.2-11.fc18.x86_64
  10. kernel-3.9.2-200.fc18.x86_64
  11. qemu-user-1.2.2-11.fc18.x86_64
  12. qemu-system-ppc-1.2.2-11.fc18.x86_64
  13. qemu-system-sh4-1.2.2-11.fc18.x86_64
  14. qemu-system-s390x-1.2.2-11.fc18.x86_64
  15. qemu-system-alpha-1.2.2-11.fc18.x86_64
  16. qemu-img-1.2.2-11.fc18.x86_64
  17. qemu-system-or32-1.2.2-11.fc18.x86_64
  18. qemu-1.2.2-11.fc18.x86_64
  19. qemu-system-unicore32-1.2.2-11.fc18.x86_64
  20. qemu-system-microblaze-1.2.2-11.fc18.x86_64
  21. kernel-doc-3.9.2-200.fc18.noarch
  22. qemu-system-m68k-1.2.2-11.fc18.x86_64
  23. qemu-kvm-1.2.2-11.fc18.x86_64
  24. kernel-modules-extra-3.8.9-200.fc18.x86_64
  25. kernel-headers-3.9.2-200.fc18.x86_64
  26. kernel-modules-extra-3.9.2-200.fc18.x86_64
  27. qemu-system-lm32-1.2.2-11.fc18.x86_64
  28. qemu-kvm-tools-1.2.2-11.fc18.x86_64
  29. qemu-system-cris-1.2.2-11.fc18.x86_64
  30. qemu-common-1.2.2-11.fc18.x86_64
  31. qemu-system-arm-1.2.2-11.fc18.x86_64
  32.  
  33. USB controller model for the virtual machine set to: Model USB 2
  34. Guest OS: Windows 7 64 bit.
Comment 18 Cole Robinson 2013-05-25 15:31:34 EDT
  1. Denise, please see comment #16, more info has been requested.
Comment 19 denise.p.berry 2013-05-28 15:39:19 EDT
  1. 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
  1. Hi,
  2.  
  3. Thanks for testing!
  4.  
  5. (In reply to denise.p.berry from comment #19)
  6. > Setting the USB controller type to 2 instead of 1 (default) works. The log
  7. > for the VM (/var/log/libvirt/qemu/<vmname>.log) didn't have any USB specific
  8. > information when I tried using controller type 1.
  9.  
  10. 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,
  11.  
  12. Since moving to an USB-2 controller fixes this I'm going to close this bug.
  13.  
  14. Regards,
  15.  
  16. Hans
Comment 21 Michael DePaulo 2015-03-08 22:18:39 EDT
  1. FYI: CentOS 7.0, and presumably RHEL 7.0, are affected by this issue also.
  2. 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. Java API —— DateFormat类

    1.DateFormat类概述         DateFormat 是日期/时间格式化子类的抽象类,它以与语言无关的方式格式化并解析日期或时间. 是抽象类,所以使用其子类SimpleDateForm ...

  2. 什么是HttpOnly

    1.什么是HttpOnly? 如果您在cookie中设置了HttpOnly属性,那么通过js脚本将无法读取到cookie信息,这样能有效的防止XSS攻击,具体一点的介绍请google进行搜索 2.ja ...

  3. OpenCV码源笔记——RandomTrees (一)

    OpenCV2.3中Random Trees(R.T.)的继承结构: API: CvRTParams 定义R.T.训练用参数,CvDTreeParams的扩展子类,但并不用到CvDTreeParams ...

  4. SAP 物料基本单位与BOM单位

    比如:物料的基本单位是G,可该物料放到BOM中的单位却是PC,该如何实现呢? 1. 首先要弄清楚BOM单位优先取的是发货单位(工厂数据视图1),当发货单位为空时,取基本单位: 2. 然后再建立单位G ...

  5. myeclipse快速开发配置

    1,打开MyEclipse 2013然后“window”→“Preferences” 2. 选择“java”,展开,“Editor”,选择“Content Assist”. 3. 选择“Content ...

  6. HDU 4717 The Moving Points(三分)

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4717 题意:给出n个点的坐标和运动速度(包括方向).求一个时刻t使得该时刻时任意两点距离最大值最小. ...

  7. 将SQLServer2005中的数据同步到Oracle中

    有时由于项目开发的需要,必须将SQLServer2005中的某些表同步到Oracle数据库中,由其他其他系统来读取这些数据.不同数据库类型之间的数据同步我们可以使用链接服务器和SQLAgent来实现. ...

  8. Servlet错误一览

    错误:HTTP Status 405 - HTTP method POST is not supported by this URL 原因:没有提供doPost方法 错误:控制器跳转到空白界面 原因: ...

  9. ACM - ICPC World Finals 2013 B Hey, Better Bettor

    原题下载:http://icpc.baylor.edu/download/worldfinals/problems/icpc2013.pdf 这题真心的麻烦……程序不长但是推导过程比较复杂,不太好想 ...

  10. LA 2218 (半平面交) Triathlon

    题意: 有n个选手,铁人三项有连续的三段,对于每段场地选手i分别以vi, ui 和 wi匀速通过. 对于每个选手,问能否通过调整每种赛道的长度使得他成为冠军(不能并列). 分析: 粗一看,这不像一道计 ...