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.

Bug 1110298

Summary: remote-viewer cannot connect rhel6 guest with option "--full-screen=auto-conf" after update xorg-x11-drv-qxl of the guest 4 displays
Product: Red Hat Enterprise Linux 6 Reporter: CongDong <codong>
Component: xorg-x11-drv-qxlAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: acathrow, cfergeau, codong, dblechte, juzhou, lcui, marcandre.lureau, mzhan, tzheng, zsong
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: xorg-x11-drv-qxl-0.1.1-13.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-11 17:31:14 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: 1076728    
Bug Blocks:    
Attachments:
Description Flags
remote-viewer log with --spice-debug
none
xorg.0.log none

Description CongDong 2014-06-17 11:51:27 UTC
Description of problem:
As subject

Version-Release number of selected component (if applicable):
virt-viewer-0.5.7-7.el7.x86_64
spice-gtk3-0.20-8.el7.x86_64
spice-vdagent-0.14.0-7.el7.x86_64
spice-glib-0.20-8.el7.x86_64
spice-server-0.12.4-5.el7.x86_64
spice-gtk-0.20-8.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a host with 4 monitors, install a rhel6 spice guest
# virsh dumpxml rhel6
...
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
...
    <graphics type='spice' port='5902' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <sound model='ich6'>
...
    <video>
      <model type='qxl' ram='65536' vram='65536' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
...
2. Make sure guest already install package xorg-X11-drv-qxl
# rpm -qa | grep qxl
xorg-x11-drv-qxl-0.1.0-7.el6.x86_64
3. update xorg-x11-drv-qxl to xorg-x11-drv-qxl-0.1.1-12.el6 and reboot the guest
4. After reboot the guest, connect the guest
# remote-viewer spice://$ip/$port --full-screen=auto-conf
5. close remote-viewer window, and try to connect the guest with
# virt-viewer $vm
# remote-viewer spice://$ip/$port

Actual results:
step4, cannot connect the guest, virt-viewer window shows message "Connect to graphic server"
step5, virt-viewer and remote-viewer without "--full-screen=auto-conf" both cannot connect the guest

Expected results:
virt-viewer and remote-viewer should connect the guest successfully
after update xorg-x11-drv-qxl in the guest

Additional info:
The problem only happens when use 4 monitors.

Comment 2 CongDong 2014-06-17 11:52:30 UTC
Created attachment 909562 [details]
remote-viewer log with --spice-debug

Comment 3 Marc-Andre Lureau 2014-06-17 12:10:03 UTC
unlikely a client bug, remote-viewer log looks fine

please get guest vdagent & Xorg logs

Comment 4 CongDong 2014-06-17 12:21:36 UTC
Created attachment 909566 [details]
xorg.0.log

# cat spice-vdagent.log

Jun 17 08:18:04.536741 spice-vdagentd: info: closed vdagent virtio channel
Jun 17 08:18:10.617893 spice-vdagentd: info: vdagentd quiting, returning status 0
Jun 17 08:19:00.912706 spice-vdagent[1785]: warning: warning could not get file xfer save dir, using cwd
Jun 17 08:19:00.914023 spice-vdagentd: info: opening vdagent virtio channel

Comment 5 Marc-Andre Lureau 2014-06-17 12:34:15 UTC
thanks

(In reply to CongDong from comment #4)
> Created attachment 909566 [details]
> xorg.0.log


Did it work before the update of qxl driver? This is triggering the QXLDRV_RESIZABLE_SURFACE0 from bug 1076728

[    24.978] resizing primary to 5520x1050
[    24.978] resizing surface0 to 23184000
[    24.978] qxl_dump_ring_stat: Cmd 1/1, Cur 376/377, Rel 11/11
[    24.978] qxl_io_flush_release: collected 26
[    24.978] qxl_dump_ring_stat: Cmd 1/1, Cur 377/377, Rel 12/12
[    24.979] memory space from 0x7f799cca2280 to 0x7f799f683000

> # cat spice-vdagent.log
> Jun 17 08:18:04.536741 spice-vdagentd: info: closed vdagent virtio channel
> Jun 17 08:18:10.617893 spice-vdagentd: info: vdagentd quiting, returning
> status 0
> Jun 17 08:19:00.912706 spice-vdagent[1785]: warning: warning could not get
> file xfer save dir, using cwd
> Jun 17 08:19:00.914023 spice-vdagentd: info: opening vdagent virtio channel

How did you get that log? it's too limited and mix both system & session.

Comment 6 CongDong 2014-06-18 02:29:44 UTC
> Did it work before the update of qxl driver? This is triggering the
> QXLDRV_RESIZABLE_SURFACE0 from bug 1076728
>

Before update the qxl driver, can connect the guest but only one display comes out, the problem is triggering by bug 1046460, after update qxl dirver, cannot connect the guest.
The problem only happened on rhel7 host with 4 monitors.
It works when I use a rhel6 host.
 
> [    24.978] resizing primary to 5520x1050
> [    24.978] resizing surface0 to 23184000
> [    24.978] qxl_dump_ring_stat: Cmd 1/1, Cur 376/377, Rel 11/11
> [    24.978] qxl_io_flush_release: collected 26
> [    24.978] qxl_dump_ring_stat: Cmd 1/1, Cur 377/377, Rel 12/12
> [    24.979] memory space from 0x7f799cca2280 to 0x7f799f683000
> 
> > # cat spice-vdagent.log
> > Jun 17 08:18:04.536741 spice-vdagentd: info: closed vdagent virtio channel
> > Jun 17 08:18:10.617893 spice-vdagentd: info: vdagentd quiting, returning
> > status 0
> > Jun 17 08:19:00.912706 spice-vdagent[1785]: warning: warning could not get
> > file xfer save dir, using cwd
> > Jun 17 08:19:00.914023 spice-vdagentd: info: opening vdagent virtio channel
> 
> How did you get that log? it's too limited and mix both system & session.

The log is "/var/log/spice-vdagent.log" for the guest.
I clear it first and reboot guest, after reproduce this problem, I catch the log:

# cat spice-vdagent.log
Jun 18 10:12:40.753549 spice-vdagentd: info: closed vdagent virtio channel
Jun 18 10:12:42.749498 spice-vdagentd: info: vdagentd quiting, returning status 0
Jun 18 10:13:25.287723 spice-vdagent[1747]: warning: warning could not get file xfer save dir, using cwd
Jun 18 10:13:25.292670 spice-vdagentd: info: opening vdagent virtio channel
Jun 18 10:13:31.951462 spice-vdagentd: info: closed vdagent virtio channel
Jun 18 10:13:33.191115 spice-vdagentd: info: opening vdagent virtio channel
Jun 18 10:13:54.875598 spice-vdagent[1935]: err: primary: received release while not owning client clipboard

Comment 7 Marc-Andre Lureau 2014-06-18 10:07:53 UTC
(In reply to CongDong from comment #6)
> > Did it work before the update of qxl driver? This is triggering the
> > QXLDRV_RESIZABLE_SURFACE0 from bug 1076728
> >
> 
> Before update the qxl driver, can connect the guest but only one display
> comes out, the problem is triggering by bug 1046460, after update qxl
> dirver, cannot connect the guest.

Sorry I don't follow you.

> The problem only happened on rhel7 host with 4 monitors.
> It works when I use a rhel6 host.

I don't understand: it works with a rhel6 host but not rhel7? it's a host/qemu issue.

Please try to reduce the number of variables. It's really hard to understand what is this bug all about.

Comment 8 CongDong 2014-06-18 11:09:22 UTC
> Please try to reduce the number of variables. It's really hard to understand
> what is this bug all about.

Sorry, I make you confused.

On rhel7 host(4 monitors), if the guest uses a lower version qxl driver,
remote-viewer spice://$ip/$port --full-screen=auto-conf can connect it.
The problem is after I update the qxl driver to xorg-x11-drv-qxl-0.1.1-12.el6,
I cannot connect the guest with same command.

Comment 9 Marc-Andre Lureau 2014-06-18 11:54:00 UTC
(In reply to CongDong from comment #8)
> On rhel7 host(4 monitors), if the guest uses a lower version qxl driver,
> remote-viewer spice://$ip/$port --full-screen=auto-conf can connect it.
> The problem is after I update the qxl driver to
> xorg-x11-drv-qxl-0.1.1-12.el6,
> I cannot connect the guest with same command.

If it works with xorg-x11-drv-qxl-0.1.1-10.el6,  please close as dup of 1076728 and reopen there. Afaik, nobody verified that update yet. thanks

Comment 10 Cui Lei 2014-06-19 02:00:04 UTC
Hi Marc-Andre,
We should keep tracking this issue with flag rhel7.1.0, it should works in rhel7.1.0 then.
It's a clearly compatible issue,we belive it is not sutable for closing duplicate with a rhel6 issue.
We would test this issue again in RHEL7.1.0

regards,
Lei

Comment 11 CongDong 2014-06-19 02:15:59 UTC
If the guest install xorg-x11-drv-qxl-0.1.1-10.el6, virt-viewer can connect it in step 4.

Comment 12 Marc-Andre Lureau 2014-06-19 10:10:49 UTC
(In reply to CongDong from comment #11)
> If the guest install xorg-x11-drv-qxl-0.1.1-10.el6, virt-viewer can connect
> it in step 4.

Then this is not a client issue, but a driver issue: this bug should be closed or component should be changed, one way or another.

Comment 13 CongDong 2014-06-20 03:32:26 UTC
(In reply to Marc-Andre Lureau from comment #12)

> Then this is not a client issue, but a driver issue: this bug should be
> closed or component should be changed, one way or another.

Thanks, so I move it to qxl driver.

Comment 15 Marc-Andre Lureau 2014-08-11 17:31:14 UTC
reverted changes from #1076728, since it wasn't officially release, closing as dup of 1076728

*** This bug has been marked as a duplicate of bug 1076728 ***

Comment 16 Christophe Fergeau 2014-08-12 10:01:32 UTC
(In reply to Marc-Andre Lureau from comment #15)
> reverted changes from #1076728, since it wasn't officially release

I'm not sure what you mean by 'officially released', but this was released in 6.5.z with xorg-x11-drv-qxl-0.1.0-8.el6_5 : https://rhn.redhat.com/errata/RHBA-2014-0514.html