
Hello, What is the best option for USB support in ovirt Windows guests now? I see there are quite a lot of recent patches in this area. Regards, Nerijus

Hi, On 05/09/2012 04:11 PM, Nerijus Baliunas wrote:
Hello,
What is the best option for USB support in ovirt Windows guests now? I see there are quite a lot of recent patches in this area.
That depends mostly on which OS you're running on the client, if you're running Linux clients I would use the new opensource USB redirection support in Spice. This is not yet supported in ovirt, but if you use Fedora-16/17 or RHEL-6.3 beta on the hosts, then you can just inject the necessary xml bits into the libvirt xml file vdsm generates using a vdsm hook, the necessary bits are given here: http://hansdegoede.livejournal.com/11084.html This requires using Spice as display protocol and remote-viewer as the client, and is currently only supported with Linux clients, we're working on also adding support for USB-redirection to the windows builds of spice-gtk & remote-viewer. You may want to first play a bit with this using Fedora-16 host + client to see how all the bits fit together, a quick start for Fedora-16 is here: http://hansdegoede.livejournal.com/11084.html Regards, Hans

On Thu, 10 May 2012 10:30:05 +0200 Hans de Goede <hdegoede@redhat.com> wrote:
This requires using Spice as display protocol and remote-viewer as the client, and is currently only supported with Linux clients, we're working on also adding support for USB-redirection to the windows builds of spice-gtk & remote-viewer.
You may want to first play a bit with this using Fedora-16 host + client to see how all the bits fit together, a quick start for Fedora-16 is here: http://hansdegoede.livejournal.com/11084.html
It seems to work with F16 host (spicy -h localhost -p 5902 shows relevant menus), thanks! But I could not test with a real USB device, because there are no USB devices plugged in a remote server. Is it possible to connect to a remote host, not localhost, with spicy? 5902 port is only opened on 127.0.0.1 by qemu-kvm. Regards, Nerijus

----- Original Message -----
From: "Nerijus Baliunas" <nerijus@users.sourceforge.net> To: "Hans de Goede" <hdegoede@redhat.com> Cc: spice-devel@lists.freedesktop.org, users@ovirt.org Sent: Wednesday, May 16, 2012 7:42:09 PM Subject: Re: [Spice-devel] USB support
On Thu, 10 May 2012 10:30:05 +0200 Hans de Goede <hdegoede@redhat.com> wrote:
This requires using Spice as display protocol and remote-viewer as the client, and is currently only supported with Linux clients, we're working on also adding support for USB-redirection to the windows builds of spice-gtk & remote-viewer.
You may want to first play a bit with this using Fedora-16 host + client to see how all the bits fit together, a quick start for Fedora-16 is here: http://hansdegoede.livejournal.com/11084.html
It seems to work with F16 host (spicy -h localhost -p 5902 shows relevant menus), thanks! But I could not test with a real USB device, because there are no USB devices plugged in a remote server. Is it possible to connect to a remote host, not localhost, with spicy? 5902 port is only opened on 127.0.0.1 by qemu-kvm. Sure, Just tell qemu/libvirt where spice server should be binded, for example: Add element <listen type='address' address='0.0.0.0'/> as child element of <graphics> element and spice server will listen on all interfaces (or choose only exact IP address where you want it to be binded). or Add option addr=0.0.0.0 into spice qemu command line options directly provided you run qemu-kvm manually. (Hope I understood the question).
Regards, Nerijus _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel

On Wed, 16 May 2012 14:06:09 -0400 (EDT) Marian Krcmarik <mkrcmari@redhat.com> wrote:
are no USB devices plugged in a remote server. Is it possible to connect to a remote host, not localhost, with spicy? 5902 port is only opened on 127.0.0.1 by qemu-kvm.
Sure, Just tell qemu/libvirt where spice server should be binded, for example: Add element <listen type='address' address='0.0.0.0'/> as child element of <graphics> element and spice server will listen on all interfaces (or choose only exact IP address where you want it to be binded). or Add option addr=0.0.0.0 into spice qemu command line options directly provided you run qemu-kvm manually. (Hope I understood the question).
Yes, it helped, thanks! Is it possible to achieve something like that with ovirt? I tried using spicy instead of spicec with spice-xpi plugin, but it didn't work. Regards, Nerijus

Nerijus Baliunas píše v St 16. 05. 2012 v 22:15 +0300:
On Wed, 16 May 2012 14:06:09 -0400 (EDT) Marian Krcmarik <mkrcmari@redhat.com> wrote:
are no USB devices plugged in a remote server. Is it possible to connect to a remote host, not localhost, with spicy? 5902 port is only opened on 127.0.0.1 by qemu-kvm.
Sure, Just tell qemu/libvirt where spice server should be binded, for example: Add element <listen type='address' address='0.0.0.0'/> as child element of <graphics> element and spice server will listen on all interfaces (or choose only exact IP address where you want it to be binded). or Add option addr=0.0.0.0 into spice qemu command line options directly provided you run qemu-kvm manually. (Hope I understood the question).
Yes, it helped, thanks! Is it possible to achieve something like that with ovirt? I tried using spicy instead of spicec with spice-xpi plugin, but it didn't work.
ovirt support for usb redirection is brewing. You could probably write a vdsm custom hook for usb & redir dev creation in the meanwhile. David
Regards, Nerijus _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- David Jaša, RHCE SPICE QE based in Brno GPG Key: 22C33E24 Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24

On 05/16/2012 10:46 PM, David Jaša wrote:
Nerijus Baliunas píše v St 16. 05. 2012 v 22:15 +0300:
On Wed, 16 May 2012 14:06:09 -0400 (EDT) Marian Krcmarik<mkrcmari@redhat.com> wrote:
are no USB devices plugged in a remote server. Is it possible to connect to a remote host, not localhost, with spicy? 5902 port is only opened on 127.0.0.1 by qemu-kvm.
Sure, Just tell qemu/libvirt where spice server should be binded, for example: Add element<listen type='address' address='0.0.0.0'/> as child element of<graphics> element and spice server will listen on all interfaces (or choose only exact IP address where you want it to be binded). or Add option addr=0.0.0.0 into spice qemu command line options directly provided you run qemu-kvm manually. (Hope I understood the question).
Yes, it helped, thanks! Is it possible to achieve something like that with ovirt? I tried using spicy instead of spicec with spice-xpi plugin, but it didn't work.
ovirt support for usb redirection is brewing. You could probably write a vdsm custom hook for usb& redir dev creation in the meanwhile.
or test the patches in ovirt for doing that which are in review already for engine support of enabling this flag, then the user portal support will be added (should be a matter of weeks)
David
Regards, Nerijus _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (5)
-
David Jaša
-
Hans de Goede
-
Itamar Heim
-
Marian Krcmarik
-
Nerijus Baliunas