hostusb hook - VM device errors in Windows VM

I'm using the hostusb hook on RHEV 3.4 trial. The usb device is passed through to the VM, but I'm getting errors in a Windows VM when the device driver is loaded. I started with a simple usb drive, on the host it is listed as: Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc. Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM. In Windows I get an error in device manager: USB Mass Storage Device "This device cannot start. (Code 10)" Properties/General Tab: Device type: Universal Serial Bus Controllers, Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001 Under hardware Ids: USB\VID_05DC&PID_C75C&REV_0102 USB\VID_05DC&PID_C75C So it looks like the proper USB device ID is passed to the VM. I don't see any error messages in event viewer, and I don't see anything in VDSM logs either. Any help is appreciated. Steve

I should mention I can mount this usb drive in a CentOS 6.5 VM without any problems. On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard <sdainard@miovision.com> wrote:
I'm using the hostusb hook on RHEV 3.4 trial.
The usb device is passed through to the VM, but I'm getting errors in a Windows VM when the device driver is loaded.
I started with a simple usb drive, on the host it is listed as:
Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc.
Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.
In Windows I get an error in device manager: USB Mass Storage Device "This device cannot start. (Code 10)" Properties/General Tab: Device type: Universal Serial Bus Controllers, Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001
Under hardware Ids: USB\VID_05DC&PID_C75C&REV_0102 USB\VID_05DC&PID_C75C
So it looks like the proper USB device ID is passed to the VM.
I don't see any error messages in event viewer, and I don't see anything in VDSM logs either.
Any help is appreciated.
Steve

--Apple-Mail=_334E766B-B383-4C24-B177-CA12AC47A90D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 21 Jul 2014, at 20:54, Steve Dainard wrote:
I should mention I can mount this usb drive in a CentOS 6.5 VM without = any problems.
Hi, there should be no difference configuration-wise. well, please compare = libvirt's xml to be sure and confirm If it's the case then it might be a problem of qemu/kvm and/or windows Thanks, michal
=20 =20 On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard = <sdainard@miovision.com> wrote: I'm using the hostusb hook on RHEV 3.4 trial. =20 The usb device is passed through to the VM, but I'm getting errors in = a Windows VM when the device driver is loaded. =20 I started with a simple usb drive, on the host it is listed as: =20 Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc.=20 =20 Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM. =20 In Windows I get an error in device manager: USB Mass Storage Device "This device cannot start. (Code 10)" Properties/General Tab: Device type: Universal Serial Bus Controllers, = Manufacturer: Compatible USB storage device, Location: = Port_#0001.Hub_#0001 =20 Under hardware Ids:=20 USB\VID_05DC&PID_C75C&REV_0102 USB\VID_05DC&PID_C75C =20 So it looks like the proper USB device ID is passed to the VM. =20 I don't see any error messages in event viewer, and I don't see = anything in VDSM logs either. =20 Any help is appreciated. =20 Steve =20 _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_334E766B-B383-4C24-B177-CA12AC47A90D Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii <html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 21 Jul 2014, at 20:54, Steve Dainard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">I should mention I can mount this usb drive in a CentOS 6.5 VM without any problems.</div></blockquote><div><br></div>Hi,</div><div>there should be no difference configuration-wise. well, please compare libvirt's xml to be sure and confirm</div><div>If it's the case then it might be a problem of qemu/kvm and/or windows</div><div><br></div><div>Thanks,</div><div>michal</div><div><br><blockquote type="cite"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard <span dir="ltr"><<a href="mailto:sdainard@miovision.com" target="_blank">sdainard@miovision.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm using the hostusb hook on RHEV 3.4 trial.<div><br></div><div>The usb device is passed through to the VM, but I'm getting errors in a Windows VM when the device driver is loaded.</div> <div><br></div> <div>I started with a simple usb drive, on the host it is listed as:</div><div><br></div><div><div>Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc. </div></div><div><br></div><div>Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.</div> <div><br></div><div>In Windows I get an error in device manager:</div><div>USB Mass Storage Device "This device cannot start. (Code 10)"</div><div>Properties/General Tab: Device type: Universal Serial Bus Controllers, Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001</div> <div><br></div><div>Under hardware Ids: </div><div><div>USB\VID_05DC&PID_C75C&REV_0102</div></div><div><div>USB\VID_05DC&PID_C75C</div></div><div><br></div><div>So it looks like the proper USB device ID is passed to the VM.</div> <div><br></div><div>I don't see any error messages in event viewer, and I don't see anything in VDSM logs either.</div><div><br></div><div>Any help is appreciated.</div><span class="HOEnZb"><font color="#888888"><div> <br></div><div>Steve</div></font></span></div> </blockquote></div><br></div> _______________________________________________<br>Users mailing list<br><a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>http://lists.ovirt.org/mailman/listinfo/users<br></blockquote></div><br></body></html> --Apple-Mail=_334E766B-B383-4C24-B177-CA12AC47A90D--

Hi Michal, How can I generate libvirt xml from rhevm? Thanks, Steve On Tue, Jul 22, 2014 at 4:12 AM, Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
On 21 Jul 2014, at 20:54, Steve Dainard wrote:
I should mention I can mount this usb drive in a CentOS 6.5 VM without any problems.
Hi, there should be no difference configuration-wise. well, please compare libvirt's xml to be sure and confirm If it's the case then it might be a problem of qemu/kvm and/or windows
Thanks, michal
On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard <sdainard@miovision.com> wrote:
I'm using the hostusb hook on RHEV 3.4 trial.
The usb device is passed through to the VM, but I'm getting errors in a Windows VM when the device driver is loaded.
I started with a simple usb drive, on the host it is listed as:
Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc.
Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.
In Windows I get an error in device manager: USB Mass Storage Device "This device cannot start. (Code 10)" Properties/General Tab: Device type: Universal Serial Bus Controllers, Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001
Under hardware Ids: USB\VID_05DC&PID_C75C&REV_0102 USB\VID_05DC&PID_C75C
So it looks like the proper USB device ID is passed to the VM.
I don't see any error messages in event viewer, and I don't see anything in VDSM logs either.
Any help is appreciated.
Steve
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Jul 22, 2014, at 15:49 , Steve Dainard <sdainard@miovision.com> wrote:
Hi Michal,
How can I generate libvirt xml from rhevm?
"virsh -r dumpxml <domain>" on the host Thanks, michal
Thanks, Steve
On Tue, Jul 22, 2014 at 4:12 AM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
On 21 Jul 2014, at 20:54, Steve Dainard wrote:
I should mention I can mount this usb drive in a CentOS 6.5 VM without any problems.
Hi, there should be no difference configuration-wise. well, please compare libvirt's xml to be sure and confirm If it's the case then it might be a problem of qemu/kvm and/or windows
Thanks, michal
On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard <sdainard@miovision.com> wrote: I'm using the hostusb hook on RHEV 3.4 trial.
The usb device is passed through to the VM, but I'm getting errors in a Windows VM when the device driver is loaded.
I started with a simple usb drive, on the host it is listed as:
Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc.
Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.
In Windows I get an error in device manager: USB Mass Storage Device "This device cannot start. (Code 10)" Properties/General Tab: Device type: Universal Serial Bus Controllers, Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001
Under hardware Ids: USB\VID_05DC&PID_C75C&REV_0102 USB\VID_05DC&PID_C75C
So it looks like the proper USB device ID is passed to the VM.
I don't see any error messages in event viewer, and I don't see anything in VDSM logs either.
Any help is appreciated.
Steve
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Tue, Jul 22, 2014 at 03:50:59PM +0200, Michal Skrivanek wrote:
On Jul 22, 2014, at 15:49 , Steve Dainard <sdainard@miovision.com> wrote:
Hi Michal,
How can I generate libvirt xml from rhevm?
"virsh -r dumpxml <domain>" on the host
Or dig into vdsm.log (in case the VM is no longer there)

I just saw the "your device can perform faster" warning again in Windows and decided to check it out. Should the USB device be showing under an Intel controller? Is the RH controller only for spice? On Tue, Jul 22, 2014 at 10:12 AM, Dan Kenigsberg <danken@redhat.com> wrote:
On Tue, Jul 22, 2014 at 03:50:59PM +0200, Michal Skrivanek wrote:
On Jul 22, 2014, at 15:49 , Steve Dainard <sdainard@miovision.com>
wrote:
Hi Michal,
How can I generate libvirt xml from rhevm?
"virsh -r dumpxml <domain>" on the host
Or dig into vdsm.log (in case the VM is no longer there)

Any other ideas here? Is there a specific driver I should load instead of the Windows default one? Thanks, Steve On Tue, Jul 22, 2014 at 10:23 AM, Steve Dainard <sdainard@miovision.com> wrote:
I just saw the "your device can perform faster" warning again in Windows and decided to check it out.
Should the USB device be showing under an Intel controller? Is the RH controller only for spice?
On Tue, Jul 22, 2014 at 10:12 AM, Dan Kenigsberg <danken@redhat.com> wrote:
On Tue, Jul 22, 2014 at 03:50:59PM +0200, Michal Skrivanek wrote:
On Jul 22, 2014, at 15:49 , Steve Dainard <sdainard@miovision.com>
wrote:
Hi Michal,
How can I generate libvirt xml from rhevm?
"virsh -r dumpxml <domain>" on the host
Or dig into vdsm.log (in case the VM is no longer there)

Maybe Gal has a clue. On Fri, Jul 25, 2014 at 04:34:14PM -0400, Steve Dainard wrote:
Any other ideas here? Is there a specific driver I should load instead of the Windows default one?
Thanks, Steve
On Tue, Jul 22, 2014 at 10:23 AM, Steve Dainard <sdainard@miovision.com> wrote:
I just saw the "your device can perform faster" warning again in Windows and decided to check it out.
Should the USB device be showing under an Intel controller? Is the RH controller only for spice?
On Tue, Jul 22, 2014 at 10:12 AM, Dan Kenigsberg <danken@redhat.com> wrote:
On Tue, Jul 22, 2014 at 03:50:59PM +0200, Michal Skrivanek wrote:
On Jul 22, 2014, at 15:49 , Steve Dainard <sdainard@miovision.com>
wrote:
Hi Michal,
How can I generate libvirt xml from rhevm?
"virsh -r dumpxml <domain>" on the host
Or dig into vdsm.log (in case the VM is no longer there)

The USB section is the same on both guests: <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x05dc'/> <product id='0xc75c'/> <address bus='2' device='10'/> </source> <alias name='hostdev0'/> </hostdev> I thought it might be a Windows issue, I've tried on both Win7 64 and 2008R2 64 with the same result. At one point there was a notification bubble that the USB device can run faster - which I thought might mean the Windows guest was provided a USB v1 controller. I've attached both the xml's if you think there might be something I'm not seeing. Thanks, Steve On Tue, Jul 22, 2014 at 9:50 AM, Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
On Jul 22, 2014, at 15:49 , Steve Dainard <sdainard@miovision.com> wrote:
Hi Michal,
How can I generate libvirt xml from rhevm?
"virsh -r dumpxml <domain>" on the host
Thanks, michal
Thanks, Steve
On Tue, Jul 22, 2014 at 4:12 AM, Michal Skrivanek <
michal.skrivanek@redhat.com> wrote:
On 21 Jul 2014, at 20:54, Steve Dainard wrote:
I should mention I can mount this usb drive in a CentOS 6.5 VM without
any problems.
Hi, there should be no difference configuration-wise. well, please compare
libvirt's xml to be sure and confirm
If it's the case then it might be a problem of qemu/kvm and/or windows
Thanks, michal
On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard <sdainard@miovision.com>
wrote:
I'm using the hostusb hook on RHEV 3.4 trial.
The usb device is passed through to the VM, but I'm getting errors in a Windows VM when the device driver is loaded.
I started with a simple usb drive, on the host it is listed as:
Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc.
Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.
In Windows I get an error in device manager: USB Mass Storage Device "This device cannot start. (Code 10)" Properties/General Tab: Device type: Universal Serial Bus Controllers, Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001
Under hardware Ids: USB\VID_05DC&PID_C75C&REV_0102 USB\VID_05DC&PID_C75C
So it looks like the proper USB device ID is passed to the VM.
I don't see any error messages in event viewer, and I don't see anything in VDSM logs either.
Any help is appreciated.
Steve
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (3)
-
Dan Kenigsberg
-
Michal Skrivanek
-
Steve Dainard