Bug 947020

Summary: virt-manager can't display guest if using unix sockets
Product: Red Hat Enterprise Linux 7 Reporter: zhe peng <zpeng>
Component: virt-managerAssignee: Martin Kletzander <mkletzan>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: calestyo, codong, cwei, dallan, lcui, mjenner, mkletzan, mzhan, tzheng, zpeng, zsong
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-0.10.0-8.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:34:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
virt-manager log none

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.