Description of problem:
Connect a guest with virt-viewer, and check on "Automatically resize"
item, but the effect is same with check off the item.
Whether the guest is spice or vnc, I tried both win7-64 and rhel6.4.
Version-Release number of selected component (if applicable):
# rpm -qa libvirt virt-viewer spice-gtk
Steps to Reproduce:
1.Prepare a guest(spice or vnc are both ok), if use spice guest, stop service spice-vdagentd in guest.
2.# virt-viewer $guest, and check on the "Automatically resize" item.
3.Try to resize the virt-viewer window, and check the guest resolution.
4.Check off the "Automatically resize" item, and repeat step 3.
The result for step3 and step4 are the same, the display will match the current window*zoom size.
If check off the "Automatically resize" Item, the display should not match the current window*zoom size.
I don't really understand why you're stopping the vdagent service (step 1 in steps to reproduce). If you stop the vdagent, it will not be possible to resize the guest display automatically. Does it work properly when vdagent is running?
(In reply to Jonathon Jongsma from comment #2)
> I don't really understand why you're stopping the vdagent service (step 1 in
> steps to reproduce). If you stop the vdagent, it will not be possible to
> resize the guest display automatically. Does it work properly when vdagent
> is running?
That's what I'm not sure, what's the function of the auto-resize?
It will change the resolution or the zoom level. So I stop the vdagent to check the zoom level.
1. If it reacts on the resolution for the guest, the spice guest is ok, but it doesn't work for the vnc guest.If it only for spice guest to auto-resize the resolution like you said, it's better to disabled the item for vnc guest.
2. If it reacts on the zoom level, I didn't find the difference wether I checked it on or off.
auto-resize only works for spice guests that have a vdagent. When the client window is resized, it will attempt to update the resolution of the guest to match the resolution of the client window. It does this by sending a message to the vdagent.
So the 'Automatically resize' menu item should probably be disabled for VNC and non-vdagent spice guests.
running vd-agent is MUST for auto-resize feature to work, and it is for the spice only.
Closing as NOTABUG
Please consider the issue in comment3 descriptive:
"If it only for spice guest to auto-resize the resolution like you said, it's better to disabled the item for vnc guest."
As there is no related doc explain that, we should disable the item(make the item gray like 'USB device selection' in menu) in menu if it is useless in VNC display mode.
(In reply to Marc-Andre Lureau from comment #9)
I think what went in in the end was https://www.redhat.com/archives/virt-tools-list/2014-March/msg00080.html
I can reproduce this issue with:
Verify this issue with virt-viewer-0.6.0-4.el6
1.Prepare a guest(spice or vnc are both ok).
2.# virt-viewer $guest, then click menu "View", check "Automatically resize" item has been removed.
so change the status 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.