Red Hat Bugzilla – Bug 982840
virt-viewer can't connect guest display console if only SPICE TLS autoport specified
Last modified: 2013-11-21 03:11:35 EST
Description of problem: virt-viewer can't connect guest display console if only SPICE TLS autoport specified Version-Release number of selected component: virt-viewer-0.5.6-2.el6.x86_64 How reproducible: 100% Steps: 1.config tls env. 2.edit guest xml: .... <graphics type='spice' tlsPort='-1' autoport='no' listen='0' keymap='en-us'> <listen type='address' address='0'/> </graphics> .... 3.start guest,check qemu cmd line: ..... -spice port=0,tls-port=5900,addr=0,disable-ticketing,x509-dir=/etc/pki/libvirt-spice,seamless-migration=on ..... use virt-viewer can't connect the guest console,get error "Cannot determine the graphic address for the guest spice" #remote-viewer spice://$ip/?tls-port=5900 --spice-host-subject="C=IL,L=Raanana,O=Red Hat,CN=my server" --spice-ca-file='/etc/pki/libvirt-spice/ca-cert.pem' remote-viewer can connect. Actual results: see steps Expected results: can connect the guest additional info:
I can reproduce that one.
Patch sent to https://www.redhat.com/archives/virt-tools-list/2013-July/msg00046.html
Marc-André, the fix is pushed at https://git.fedorahosted.org/cgit/virt-viewer.git/commit/?id=59ca6bd8a7eda9a0bf14d23f77d0a89f2bafbeaa Do you want me to add this patch to the virt-viewer package and push a build? Shall I just add the patch? Or do you prefer to handle it all next time you do a virt-viewer build? Let me know what is better for you!
(In reply to Christophe Fergeau from comment #4) > Marc-André, the fix is pushed at > https://git.fedorahosted.org/cgit/virt-viewer.git/commit/ > ?id=59ca6bd8a7eda9a0bf14d23f77d0a89f2bafbeaa > Do you want me to add this patch to the virt-viewer package and push a > build? Shall I just add the patch? Or do you prefer to handle it all next > time you do a virt-viewer build? Let me know what is better for you! add the patch (in the patch git repo), do a build, add it to errata, whenever you want!
I tried with the virt-viewer-0.5.6-5.el6. If I didn't update the glib2, the error message when I install virt-viewer is: Error: Package: virt-viewer-0.5.6-6.el6.x86_64 (/virt-viewer-0.5.6-6.el6.x86_64) Requires: gtk2 >= 2.20 Installed: gtk2-2.18.9-12.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4) gtk2 = 2.18.9-12.el6 Error: Package: virt-viewer-0.5.6-6.el6.x86_64 (/virt-viewer-0.5.6-6.el6.x86_64) Requires: glib2 >= 2.26 Installed: glib2-2.22.5-7.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4) glib2 = 2.22.5-7.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest As the result, set VERIFIED
(In reply to CongDong from comment #7) > I tried with the virt-viewer-0.5.6-5.el6. > If I didn't update the glib2, the error message when I install virt-viewer > is: > > Error: Package: virt-viewer-0.5.6-6.el6.x86_64 > (/virt-viewer-0.5.6-6.el6.x86_64) > Requires: gtk2 >= 2.20 > Installed: gtk2-2.18.9-12.el6.x86_64 > (@anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4) > gtk2 = 2.18.9-12.el6 > Error: Package: virt-viewer-0.5.6-6.el6.x86_64 > (/virt-viewer-0.5.6-6.el6.x86_64) > Requires: glib2 >= 2.26 > Installed: glib2-2.22.5-7.el6.x86_64 > (@anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4) > glib2 = 2.22.5-7.el6 > You could try using --skip-broken to work around the problem > You could try running: rpm -Va --nofiles --nodigest > > As the result, set VERIFIED Sorry, I file the wrong comment, I'll verify it later.
I can reproduce this with virt-viewer-0.5.6-2.el6.x86_64. Steps: As the steps in description. # virt-viewer C --spice-ca-file='/etc/pki/libvirt-spice/ca-cert.pem' --spice-host-subject="C=IL,L=Raanana,O=Red Hat,CN=my server" #remote-viewer spice://127.0.0.1/?tls-port=5901 --spice-host-subject="C=IL,L=Raanana,O=Red Hat,CN=my server" --spice-ca-file='/etc/pki/libvirt-spice/ca-cert.pem' Result: virt-viewer can't connect vm, but remote-viewer works well. Verify: Steps: As the steps in description. Result: virt-viewer and remote-viewer can connect vm successfully both. As the result , set VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1578.html