[Spice-devel] USB drier in w7 problems

David Jaša djasa at redhat.com
Wed Sep 17 03:15:52 PDT 2014


Hi,

you're not using spice usb redirection, you're using host usb device
assignment. For spice usb redirection, you'd have to add "USB
Controller" and a bunch of "Redirected USB" devices in virt-manager or
controller and redirdev elements to domain xml (with correct PCI slot!):
http://hansdegoede.livejournal.com/11084.html

I have next to none experience with host device assignment (it didn't
work for me) but usbredir should work just fine.

David


On Út, 2014-09-16 at 10:45 -0700, ToddAndMargo wrote:
> >
> > On Po, 2014-09-15 at 14:30 -0700, ToddAndMargo wrote:
> >> Hi All,
> >>
> >> I can see my (FAT 32) USB sticks to in XP.  They are really,
> >> really slow, but I can read them.
> >>
> >> In Windows 7, I get "This device cannot start. (Code 10)" from
> >> the device manager.
> >>
> >> When I go to reinstall the driver from
> >>
> >>       C:\Program Files (x86)\SPICE Guest Tools\drivers\win7\amd64
> >> or
> >>       C:\Drivers\Spice-Guest-Tools\virtio-win-0.1.81\WIN7\AMD64
> >>
> >> I get
> >>
> >>       Windows has determined the driver software for your device
> >>       is up to date.
> >>
> >> I also get told that the location doesn't contain any compatible
> >> drivers (both locations).
> >>
> >> Driver details from "Device description "says "USB Mass Storage
> >> Device"
> >>
> >> In the Device Manager, if I hit View Hidden Devices, the
> >> above is the only one with a bang mark.
> >>
> >> What gives?
> >>
> >> Many thanks,
> >> -T
> 
> 
> On 09/15/2014 11:54 PM, David Jaša wrote:> Hi,
> >
> > when using usbredir, guest OS driver versions don't matter, the whole
> > redirection is done by client and spice-server + qemu. So could you
> > please post OS and versions of client (spice-gtk or such) and host
> > system (qemu and spice-server), and your libvirt xml (or qemu
> > commandline)?
> >
> > David
> 
> 
> $ cat /etc/redhat-release
> Scientific Linux release 6.5 (Carbon)
> 
> $ uname -r
> 2.6.32-431.29.2.el6.x86_64
> 
> $ rpm -qa \*spice\*
> spice-client-0.8.2-15.el6.x86_64
> spice-gtk-python-0.20-11.el6.x86_64
> spice-glib-0.20-11.el6.x86_64
> spice-protocol-0.12.6-1.el6.noarch
> spice-vdagent-0.14.0-2.el6.x86_64
> spice-gtk-0.20-11.el6.x86_64
> spice-server-0.12.4-6.el6.x86_64
> 
> $ rpm -qa \*qemu\*
> qemu-img-0.12.1.2-2.415.el6_5.14.x86_64
> qemu-kvm-0.12.1.2-2.415.el6_5.14.x86_64
> gpxe-roms-qemu-0.9.7-6.10.el6.noarch
> 
> $ rpm -qa \*libvirt\*
> libvirt-python-0.10.2-29.el6_5.8.x86_64
> libvirt-client-0.10.2-29.el6_5.8.x86_64
> libvirt-0.10.2-29.el6_5.8.x86_64
> 
> $ ps ax | grep KVM-W7
> 
>   8636 ?        Sl     0:09 /usr/libexec/qemu-kvm -name KVM-W7 -S -M 
> rhel6.3.0 -enable-kvm -m 4096 -realtime mlock=off -smp 
> 4,sockets=4,cores=1,threads=1 -uuid bc6e5dde-e15f-cadb-3aa3-1e4f4087bf3c 
> -nodefconfig -nodefaults -chardev 
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/KVM-W7.monitor,server,nowait 
> -mon chardev=charmonitor,id=monitor,mode=control -rtc 
> base=localtime,driftfix=slew -no-shutdown -device 
> piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device 
> virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive 
> file=/home/kvm/KVM-W7.qcow,if=none,id=drive-ide0-0-0,format=qcow2,cache=none,aio=threads 
> -device 
> ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 
> -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw 
> -device 
> ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 
> -netdev tap,fd=23,id=hostnet0 -device 
> rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:2e:63:d5,bus=pci.0,addr=0x3 
> -chardev pty,id=charserial0 -device 
> isa-serial,chardev=charserial0,id=serial0 -chardev 
> spicevmc,id=charchannel0,name=vdagent -device 
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 
> -device usb-tablet,id=input0 -spice 
> port=5903,addr=127.0.0.1,disable-ticketing,seamless-migration=on -vga 
> qxl -global qxl-vga.ram_size=67108864 -global qxl-vga.vram_size=67108864 
> -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device 
> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device 
> usb-host,hostbus=10,hostaddr=3,id=hostdev0 -device 
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
> 
>   8697 pts/0    S+     0:00 grep KVM-W7
> 
>  From my XML file:
>      <hostdev mode='subsystem' type='usb' managed='yes'>
>        <source>
>          <vendor id='0x1e1d'/>
>          <product id='0x1103'/>
>        </source>
>      </hostdev>
> 
> virt-manager calls the above USB Flash drive:
>      Physical USB Device
>      Device: 010:003 KANGURU SS3
> 
> 
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel




More information about the Spice-devel mailing list