Bug 1111667

Summary: RHEL: spice-vdagent does not resize the display
Product: Red Hat Enterprise Linux 7 Reporter: Evgheni Dereveanchin <ederevea>
Component: spice-vdagentAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: acathrow, audgiri, ederevea, marcandre.lureau, rh-spice-bugs, tlavigne
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-21 15:33:57 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: 1075139    
Bug Blocks: 1113520    

Description Evgheni Dereveanchin 2014-06-20 16:47:13 UTC
Description of problem:
When installing RHEL7 in RHEV and connecting to it using remote-viewer, window size changes are not causing the VM screen to resize accordingly. spice-vdagentd is installed and running in the VM. The same virt-viewer works as expected with RHEL6 VMs.

Version-Release number of selected component (if applicable):
spice-vdagent-0.14.0-7.el7.x86_64 
xorg-x11-drv-qxl-0.1.1-9.el7.x86_64  

How reproducible:
always

Steps to Reproduce:
1. open VM console from RHEV
2. resize console window

Actual results:
VM screen resolution does not change

Expected results:
VM screen resolution matches new window size

Additional info:

Comment 1 Evgheni Dereveanchin 2014-06-20 16:52:37 UTC
Here's the output I got from vdagentd when running it in debug mode:

Jun 20 18:44:17.349197 spice-vdagentd: info: Active session: c1
Jun 20 18:44:33.767678 spice-vdagentd: info: Active session: 2
Jun 20 18:44:35.423233 spice-vdagentd: debug: new client accepted: 0x7f8f90e70a10, pid: 2496
Jun 20 18:44:35.423613 spice-vdagentd: info: Session for pid 2496: 2
Jun 20 18:44:35.423994 spice-vdagentd: debug: 0x7f8f90e70a10 sent version, arg1: 0, arg2: 0, size 7
Jun 20 18:44:35.424368 spice-vdagentd: debug: 0x7f8f90e70a10 is now the active session
Jun 20 18:44:36.363870 spice-vdagent[2496]: warning: warning could not get file xfer save dir, using cwd
Jun 20 18:44:36.371974 spice-vdagentd: debug: 0x7f8f90e70a10 received guest xorg resolution, arg1: 1024, arg2: 768, size 16
Jun 20 18:44:36.378383 spice-vdagentd: info: opening vdagent virtio channel
Jun 20 18:44:36.391023 spice-vdagentd: debug: New client connected
Jun 20 18:44:36.391237 spice-vdagentd: debug: 0x7f8f90e70a10 sent monitors config, arg1: 0, arg2: 0, size 28
Jun 20 18:44:36.392017 spice-vdagentd: debug: 0x7f8f90e70a10 received guest xorg resolution, arg1: 1024, arg2: 768, size 16
Jun 20 18:44:46.300841 spice-vdagentd: debug: 0x7f8f90e70a10 sent monitors config, arg1: 0, arg2: 0, size 328
Jun 20 18:44:46.302832 spice-vdagentd: debug: 0x7f8f90e70a10 received guest xorg resolution, arg1: 1024, arg2: 768, size 16
Jun 20 18:44:59.301212 spice-vdagentd: debug: 0x7f8f90e70a10 sent monitors config, arg1: 0, arg2: 0, size 328
Jun 20 18:44:59.309911 spice-vdagentd: debug: (nil) is now the active session
Jun 20 18:44:59.313557 spice-vdagentd: info: closed vdagent virtio channel
Jun 20 18:44:59.313915 spice-vdagentd: debug: 0x7f8f90e70a10 disconnected

The resolution never changed from 1024x768 and vdagent stopped responding completely after some time. Xorg.0.log does not list any attempts to resize the display either.

Comment 3 Marc-Andre Lureau 2014-06-20 17:54:14 UTC
are you using a rhel6 host? If yes, this is likely a duplicate of bug 1075139

rhel7 VM guest resize fine on f20 host.

(the resizing code path with rhel7 is very different, it doesn't really involve vdagent - it's handled by kernel & mutter)

Comment 4 Evgheni Dereveanchin 2014-06-21 10:53:02 UTC
Marc-Andre yes, a RHEL6 host is used (RHEL7 hosts are tech preview for RHEV 3.4 so all production RHEV deployments are on RHEL6). I can confirm that secondary display selection is unavailable either. The test build in 1075139 is for plain KVM, not RHEV so I am unable to confirm if it fixes the issue for me.

Comment 5 Ludek Smid 2014-06-26 09:06:22 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.

Comment 6 Ludek Smid 2014-06-26 11:15:46 UTC
The comment above is incorrect. The correct version is bellow.
I'm sorry for any inconvenience.
---------------------------------------------------------------

This request was NOT resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you need
to escalate this bug.

Comment 7 Marc-Andre Lureau 2014-07-03 17:37:09 UTC
please verify with scratchbuild from bug 1075139. thanks

Comment 9 Marc-Andre Lureau 2014-07-21 15:33:57 UTC
This is fixed with qemu-kvm-0.12.1.2-2.429.el6 from bug 1075139. marking as duplicate

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