RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 947020 - virt-manager can't display guest if using unix sockets
Summary: virt-manager can't display guest if using unix sockets
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Martin Kletzander
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-01 08:32 UTC by zhe peng
Modified: 2014-06-17 23:59 UTC (History)
11 users (show)

Fixed In Version: virt-manager-0.10.0-8.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:34:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
virt-manager log (8.12 KB, text/plain)
2013-12-03 10:55 UTC, zhe peng
no flags Details

Description zhe peng 2013-04-01 08:32:44 UTC
Description of problem:
when use unix socket in guest , virt-manager can't display the graphic console.

Version-Release number of selected component (if applicable):
virt-manager-0.9.4-5.el7.noarch
libvirt-1.0.3-1.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
# vi /etc/libvirt/qemu.conf
enable vnc_auto_unix_socket = 1

#systemctl restart  libvirtd.service
2:
# virsh start a
Domain a started

# virsh dumpxml a
...
   <input type='mouse' bus='ps2'/>
   <graphics type='vnc' socket='/var/lib/libvirt/qemu/a.vnc'/>
...

use virt-manager to open the guest console.
Actual results:
guest can't show up in virt-manager.


Expected results:
can display the guest

additional: use virt-viewer can open guest w/o error, this worked on RHEL6.4

Comment 2 Christoph Anton Mitterer 2013-05-31 17:33:58 UTC
Any plans to implement this? Would be quite reasonable, from a security POV.

Any plans to support UNIX sockets with SPICE?

Comment 3 Martin Kletzander 2013-12-02 10:25:31 UTC
virt-viewer and virt-manager are two separate things.  If it was working in virt-viewer it should be still working, but I don't know about virt-manager having the support.  Do I understand correctly that you want to have the support for vnc with unix sockets?  Or does it mean that you just want to make sure virt-manager adds proper configuration in order to display the guest?

I guess this would be nice to have.  SPICE supports UNIX sockets, but I'm not sure about it's support in qemu and libvirt.

Comment 4 zhe peng 2013-12-03 03:22:15 UTC
virt-manager support vnc with unix sockets on rhel6.4&rhel6.5
Is this function removed on rhel7?

Comment 5 Martin Kletzander 2013-12-03 10:33:07 UTC
You're right, sorry for the confusion.  virt-manager supports vnc unix sockets.  What is the error you see in the 'console' tab?

Comment 6 zhe peng 2013-12-03 10:55:14 UTC
Created attachment 831983 [details]
virt-manager log

virt-manager show in console:
"Graphical console is not yet active for guest"
attachment is full log from /root/.virt-manager/virt-manager.log

Comment 7 Martin Kletzander 2013-12-03 14:29:10 UTC
Thanks.

Upstream fix is:

commit 79196cdfcf8f2ac58c87074c326ca3237f84dca6
Author: Cole Robinson <crobinso>
Date:   Sun Oct 6 15:30:01 2013 -0400

    console: Fix console_active() logic

Comment 12 zhengqin 2013-12-11 09:35:32 UTC
Retest it with virt-manager-0.10.0-8.el7, see the following info just as bug mentioned:


[root@localhost ~]# grep vnc_auto_unix_socket /etc/libvirt/qemu.conf
vnc_auto_unix_socket = 1
[root@localhost ~]# virsh dumpxml rhel6_01 | grep -A5 "input type"
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' socket='/var/lib/libvirt/qemu/rhel6_01.vnc'>
      <listen type='address' address='127.0.0.1'/>
    </graphics>
    <sound model='ich6'>
      <alias name='sound0'/>



virt-manager and virt-viewer could open & see the guest on RHEL7, so, set the status as "VERIFIED"

Comment 13 Ludek Smid 2014-06-13 11:34:38 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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