[ovirt-users] hostusb hook - VM device errors in Windows VM

Steve Dainard sdainard at miovision.com
Tue Jul 22 14:13:10 UTC 2014


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 at redhat.com> wrote:

>
> On Jul 22, 2014, at 15:49 , Steve Dainard <sdainard at 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 at 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 at 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 at ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/users
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140722/06f0b8bf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: centosVM.xml
Type: text/xml
Size: 6074 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140722/06f0b8bf/attachment-0002.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: windowsVM.xml
Type: text/xml
Size: 6139 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140722/06f0b8bf/attachment-0003.xml>


More information about the Users mailing list