[pve-devel] [PATCH] add noVNC_resize

Alexandre DERUMIER aderumier at odiso.com
Wed Jun 24 02:57:08 CEST 2015


Now,I'm not sure that indeed, vnc client call tell to qemu->guest os to resize without some kind of agents.

In new novnc patches, they are a scale patch, to scale on client side

https://github.com/kanaka/noVNC/pull/451

don't have tested it yet

----- Mail original -----
De: "aderumier" <aderumier at odiso.com>
À: "Lindsay Mathieson" <lindsay.mathieson at gmail.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mercredi 24 Juin 2015 02:35:29
Objet: Re: [pve-devel] [PATCH] add noVNC_resize

>>I presume it would need the spice agent installed in the guest 

no, spice is unrelated to vnc 

I think that vnc protocol support it 

some infos here: 
>>https://github.com/kanaka/noVNC/pull/271 

"This patch adds support in noVNC for the encodings 'ExtendedDesktopSize' (-308) and 'SetDesktopSize' (251). If the 'ExtendedDesktopSize' encoding is supported by the server, this patch allows for automatic resizes of the session shown in noVNC to fit the browser window. Note that the server still has the option of denying the resize request from noVNC. 

When supported, this is a client-initiated resize. For this to work the 'ExtendedDesktopSize' encoding is required on the server. Aside from client-initiated resizes this encoding brings support from the server for multiple monitors (Note that mulitple monitors are not supported by noVNC). Documentation can be found here. 

The resize is triggered by changes to the browser window's size. Note that this will have the effect that if multiple viewers are connected to one session on the VNC server the latest change will decide the size of the session as viewed on all clients. 

The 'ExtendedDesktopSize' encoding is fairly new to the protocol and I know that many VNC servers have not yet implemented this, but I do know that TigerVNC's server have implemented it. 

Summary: 

This requires the VNC server to support the 'ExtendedDesktopSize' and the 'SetDesktopSize' encodings. 
Automatically resizes the session to fit the browser window 
" 


Now, I'm not sure that qemu vnc server support ExtendedDesktopSize 

----- Mail original ----- 
De: "Lindsay Mathieson" <lindsay.mathieson at gmail.com> 
Cc: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mercredi 24 Juin 2015 02:25:29 
Objet: Re: [pve-devel] [PATCH] add noVNC_resize 

Auto resize in novnc, very very cool. 

I presume it would need the spice agent installed in the guest 

On 24 June 2015 at 10:08, Alexandre Derumier < aderumier at odiso.com > wrote: 


Signed-off-by: Alexandre Derumier < aderumier at odiso.com > 
--- 
PVE/NoVncIndex.pm | 1 + 
1 file changed, 1 insertion(+) 

diff --git a/PVE/NoVncIndex.pm b/PVE/NoVncIndex.pm 
index b028680..bceab52 100644 
--- a/PVE/NoVncIndex.pm 
+++ b/PVE/NoVncIndex.pm 
@@ -128,6 +128,7 @@ INCLUDE_URI='/novnc/include/'; 
<li><input id="noVNC_path" type="input" value="websockify"> Path</li> 
<li><input id="noVNC_repeaterID" type="input" value=""> Repeater ID</li> 
<li><input id="noVNC_stylesheet" type="input" value=""> Stylesheet</li> 
+ <li><input id="noVNC_resize" type="input" value=""> Resize</li> 
<li><input id="noVNC_logging" type="input" value=""> Logging</li> 

</ul> 
-- 
2.1.4 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 






-- 
Lindsay 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list