Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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 2Christoph 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 3Martin 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.
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 7Martin 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
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"
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.