Bug 1336720 - virsh domdisplay not working when spice listens on a unix socket
Summary: virsh domdisplay not working when spice listens on a unix socket
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
: 1466334 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-17 10:08 UTC by Christophe Fergeau
Modified: 2017-10-16 07:13 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-10-16 07:13:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Christophe Fergeau 2016-05-17 10:08:37 UTC
After this series https://www.redhat.com/archives/libvir-list/2016-May/msg00404.html adding <listen type="unix" socket="/some/path/foo.sock"/> support to spice graphics node, virsh domdisplay should be taught about this as well so that it returns spice+unix:///some/path/foo.sock

Comment 1 Christophe Fergeau 2017-06-29 13:10:03 UTC
*** Bug 1466334 has been marked as a duplicate of this bug. ***

Comment 2 Julio Faracco 2017-10-15 15:13:48 UTC
It was fixed by:

commit 215b3ab4ef8b43b5ab0318f9c8c56e549c2fa340
Author:     Julio Faracco <jcfaracco>
AuthorDate: Fri Jul 28 18:49:35 2017 -0300
Commit:     Michal Privoznik <mprivozn>
CommitDate: Wed Aug 2 10:03:23 2017 +0200

    tools: virsh: Adding unix socket support to 'domdisplay' command.
    
    This commit adds the unix socket URL support to 'domdisplay' command.
    Before, even if an user was using unix socket to define a spice graphics,
    the command 'domdisplay' showed that the settings were not supported. Now,
    the command shows the proper URL: spice+unix://foo/bar.sock.
    
    Settings:
    <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
    </graphics>
    <graphics type='spice'>
      <listen type='socket' socket='/tmp/spice.sock'/>
    </graphics>
    
    Before:
    virsh # domdisplay --all Windows7
    vnc://127.0.0.1:0
    
    After:
    virsh # domdisplay --all Windows7
    vnc://127.0.0.1:0
    spice+unix:///tmp/spice.sock


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