Bug 1348479 - [OpenBSD] opening spice console fails with Error: spice-client-error-quark: USB redirection support not compiled in (0)
Summary: [OpenBSD] opening spice console fails with Error: spice-client-error-quark: U...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: x86_64
OS: Other
unspecified
low
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-21 09:28 UTC by Jiri Belka
Modified: 2016-06-22 09:33 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-06-21 13:03:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Jiri Belka 2016-06-21 09:28:19 UTC
Description of problem:

I used virt-manager installed on OpenBSD 6.0-beta (x86-64 aka amd64) and connected via qemu+tls to RHEV EL7 host.

When I tried to open SPICE console of a VM, it always fails with:

~~~
[Tue, 21 Jun 2016 10:55:28 virt-manager 72140] DEBUG (console:717) Starting connect process for proto=spice trans= connhost=dell-r210ii-04.example.com connuser= connport= gaddr=127.0.0.1 gport=5902 gtlsport=5903 gsocket=None
[Tue, 21 Jun 2016 10:55:28 virt-manager 72140] ERROR (console:736) Error connection to graphical console
Traceback (most recent call last):
  File "/usr/local/share/virt-manager/virtManager/console.py", line 734, in _init_viewer
    self._viewer.console_open()
  File "/usr/local/share/virt-manager/virtManager/viewers.py", line 247, in console_open
    return self._open()
  File "/usr/local/share/virt-manager/virtManager/viewers.py", line 166, in _open
    self._open_host()
  File "/usr/local/share/virt-manager/virtManager/viewers.py", line 706, in _open_host
    self._create_spice_session()
  File "/usr/local/share/virt-manager/virtManager/viewers.py", line 542, in _create_spice_session
    self._spice_session)
Error: spice-client-error-quark: USB redirection support not compiled in (0)
~~~

OpenBSD does not have usbredir. OpenBSD spice-gtk[1] package is built with '--disable-usbredir' option.

I'm not sure why usbredir is used, the VM does not have 'USB redirection' device at all.

[1] http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/x11/spice-gtk/Makefile

Version-Release number of selected component (if applicable):
1.4.0

How reproducible:
100%

Steps to Reproduce:
1. have a VM with spice console on a Linux box (I have RHEV EL7 host)
2. have OpenBSD client with virt-manager
3. connect to remote libvirtd and open spice console of a VM

Actual results:
spice console cannot be opened because of usbredir issue

Expected results:
should work as the VM does not have usbredir device thus it should be not
an issue

Additional info:
ping me on irc if needed any help with the client part

Comment 2 Cole Robinson 2016-06-21 13:03:44 UTC
Thanks for the report, should be fixed upstream now:

commit e69cc002b10b49a77f1cd5170931e5e9209ab240
Author: Cole Robinson <crobinso>
Date:   Tue Jun 21 09:01:32 2016 -0400

    viewers: spice: Catch failure to setup usbdev manager
    
    Since some distros like openbsd don't compile support for
    usb redirection, which makes this fail
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1348479

If that doesn't work, please reopen

git clone git://github.com/virt-manager/virt-manager
cd virt-manager
./virt-manager --debug

Comment 3 Jiri Belka 2016-06-22 09:33:46 UTC
Works fine with above diff which SPICE server listening on all interfaces though.


Note You need to log in before you can comment on or make changes to this bug.