Bug 1196552
| Summary: | virt-viewer --attach makes it crash | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | tingting zheng <tzheng> |
| Component: | virt-viewer | Assignee: | Virt Viewer Maint <virt-viewer-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | CC: | dblechte, fidencio, juzhou, mzhan, pasik, pgrunt, rbalakri, xiaodwan |
| Target Milestone: | rc | ||
| Target Release: | 7.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | virt-viewer-2.0-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 07:36:09 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: | |||
| Bug Depends On: | 1181288 | ||
| Bug Blocks: | |||
|
Description
tingting zheng
2015-02-26 09:25:50 UTC
Tested on rhel6.6 host,--attach option works well when using virt-viewer to launch guest via UNIX connection. fixed upstream I can reproduce this issue with package: virt-viewer-0.6.0-12.el7.x86_64 Then try to verify with new build: virt-viewer-2.0-3.el7.x86_64 Steps to verify: 1. Tried unix connnection by the below steps: add auth_unix_rw="sasl" in the /etc/libvirt/libvirtd.conf add sasl user: # saslpasswd2 -a libvirt fred (input your passwd: such as redhat) Restart libvirtd server: # service libvirtd restart Prepare a running guest: # virsh -c qemu+unix:///system list Please enter your authentication name: fred Please enter your password: Id Name State ---------------------------------------------------- 2 rhel6.7-snap5 running 2.Test virt-viewer --attach option for UNIX connection: 2.1,virt-viewer to launch guest via UNIX connection without --attach. # virt-viewer -c qemu+unix:///system rhel6.7-snap5 --debug (virt-viewer:17673): virt-viewer-DEBUG: connecting ... (virt-viewer:17673): virt-viewer-DEBUG: Opening connection to libvirt with URI qemu+unix:///system (virt-viewer:17673): virt-viewer-DEBUG: Add handle 10 1 0x21d1c00 (virt-viewer:17673): virt-viewer-DEBUG: initial connect (virt-viewer:17673): virt-viewer-DEBUG: notebook show status 0x21b6180 (virt-viewer:17673): virt-viewer-DEBUG: virt_viewer_app_set_uuid_string: UUID changed to 60866799-b8c9-44ea-a921-ed892a910b76 (virt-viewer:17673): virt-viewer-DEBUG: No guest-specific fullscreen config, using fallback (virt-viewer:17673): virt-viewer-DEBUG: notebook show status 0x21b6180 (virt-viewer:17673): virt-viewer-DEBUG: Guest rhel6.7-snap5 is running, determining display (virt-viewer:17673): virt-viewer-DEBUG: Set connect info: (null),(null),(null),-1,(null),(null),(null),0 (virt-viewer:17673): virt-viewer-DEBUG: Guest rhel6.7-snap5 has a spice display (virt-viewer:17673): virt-viewer-DEBUG: Guest graphics address is 127.0.0.1:5900 (virt-viewer:17673): virt-viewer-DEBUG: Set connect info: localhost,127.0.0.1,5900,-1,unix,(null),(null),0 (virt-viewer:17673): virt-viewer-DEBUG: Error operation forbidden: read only access prevents virDomainOpenGraphicsFD (virt-viewer:17673): virt-viewer-DEBUG: After open connection callback fd=-1 (virt-viewer:17673): virt-viewer-DEBUG: Opening direct TCP connection to display at 127.0.0.1:5900:-1 (virt-viewer:17673): virt-viewer-DEBUG: New spice channel 0x21fb000 SpiceMainChannel 0 (virt-viewer:17673): virt-viewer-DEBUG: notebook show status 0x21b6180 (virt-viewer:17673): virt-viewer-DEBUG: Add timeout 0x21fbac0 -1 0x7fe71942cfe0 0x2157360 1 (virt-viewer:17673): virt-viewer-DEBUG: main channel: opened Result: No password needed, guest console will be launched successfully,and direct TCP connection shows in debug info. 2.2 virt-viewer to launch guest via UNIX connection with --attach. # virt-viewer -c qemu+unix:///system rhel6.7-snap5 -a Result: Authentication box pop out, after input right Username/Password, guest console with be launched successfully, without any virt-viewer coredump. So move this bug from ON_QA to 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. https://rhn.redhat.com/errata/RHBA-2015-2211.html |