Bug 1527834

Summary: "--attach" should be appended as virt-viewer arguments if listen type is none
Product: Red Hat Enterprise Linux 7 Reporter: Xiaodai Wang <xiaodwan>
Component: virt-managerAssignee: Pavel Hrdina <phrdina>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 7.5CC: juzhou, mxie, mzhan, phrdina, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-1.5.0-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:10:59 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:    
Bug Blocks: 1558351    

Description Xiaodai Wang 2017-12-20 08:46:14 UTC
Description of problem:
"--attach" should be appended as virt-viewer arguments if listen type is none

Version-Release number of selected component (if applicable):
virt-install-1.4.3-2.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install a guest and set graphical listen type to "none".
virt-install --name testvm  --disk path=/var/lib/libvirt/images/testvm.qcow2 --import --memory 1024  --graphics spice,listen=none

Actual results:
"Failed to connect: Display can only be attached through libvirt with --attach" error dialog pops up.

Expected results:
virt-viewer should open the guest successfully during installation.

Additional info:

Comment 3 Pavel Hrdina 2018-01-05 08:30:14 UTC
Upstream patch posted:

https://www.redhat.com/archives/virt-tools-list/2018-January/msg00003.html

Comment 5 Mengyuan Cheng 2018-05-24 02:48:09 UTC
I can reproduce this bug with package:
virt-install-1.4.3-3.el7.noarch

Then try to verify this bug with new build:
virt-install-1.5.0-1.el7.noarch

Steps:
1. Install a guest and set graphical listen type to "none".
virt-install --name testvm  --disk path=/var/lib/libvirt/images/testvm.qcow2 --import --memory 1024  --graphics spice,listen=none

Result:
virt-viewer can open the guest successfully during installation as we expected.
So I move this bug from ON_QA to VERIFIED status,thanks.

Comment 7 errata-xmlrpc 2018-10-30 10:10:59 UTC
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://access.redhat.com/errata/RHEA-2018:3115