public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] ui: qemu/Config: disable xtermjs and spice until status is loaded
@ 2021-04-20 14:35 Dominik Csapak
  2021-04-20 16:20 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 3+ messages in thread
From: Dominik Csapak @ 2021-04-20 14:35 UTC (permalink / raw)
  To: pve-devel

We enable/disable spice/xtermjs for the console button in the 'load'
callback of the statusstore, depending on the vms capabilities,
but until the first load there, the only safe option is novnc.

So we have to disable xtermjs and spice on start, else a click on
the button might open a window that cannot connect to the vm.

a forum user probably triggered this:
https://forum.proxmox.com/threads/unable-to-find-serial-interface-console-problem.87705

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 www/manager6/qemu/Config.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index 10bf10a4..b5f8cc9c 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -199,6 +199,8 @@ Ext.define('PVE.qemu.Config', {
 	    disabled: !caps.vms['VM.Console'],
 	    hidden: template,
 	    consoleType: 'kvm',
+	    enableSpice: false,
+	    enableXtermjs: false,
 	    consoleName: vm.name,
 	    nodename: nodename,
 	    vmid: vmid,
-- 
2.20.1





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [pve-devel] applied: [PATCH manager] ui: qemu/Config: disable xtermjs and spice until status is loaded
  2021-04-20 14:35 [pve-devel] [PATCH manager] ui: qemu/Config: disable xtermjs and spice until status is loaded Dominik Csapak
@ 2021-04-20 16:20 ` Thomas Lamprecht
  2021-04-21  6:50   ` Dominik Csapak
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Lamprecht @ 2021-04-20 16:20 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominik Csapak

On 20.04.21 16:35, Dominik Csapak wrote:
> We enable/disable spice/xtermjs for the console button in the 'load'
> callback of the statusstore, depending on the vms capabilities,
> but until the first load there, the only safe option is novnc.
> 
> So we have to disable xtermjs and spice on start, else a click on
> the button might open a window that cannot connect to the vm.
> 
> a forum user probably triggered this:
> https://forum.proxmox.com/threads/unable-to-find-serial-interface-console-problem.87705
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>  www/manager6/qemu/Config.js | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
> index 10bf10a4..b5f8cc9c 100644
> --- a/www/manager6/qemu/Config.js
> +++ b/www/manager6/qemu/Config.js
> @@ -199,6 +199,8 @@ Ext.define('PVE.qemu.Config', {
>  	    disabled: !caps.vms['VM.Console'],
>  	    hidden: template,
>  	    consoleType: 'kvm',
> +	    enableSpice: false,
> +	    enableXtermjs: false,
>  	    consoleName: vm.name,
>  	    nodename: nodename,
>  	    vmid: vmid,
> 

adding a comment could be nice to avoid people thinking to "clean this up" in the future.

Anyway, applied. Related in the widest sense:

I have an issue with the default opened console viewer, a VM always opens the xtermjs
one when IMO the spice viewer or noVNC one should be preferred.

Setup details

* windows VM
** display spice (qxl)
** serial port added
* datacenter options for console viewer set to html5





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pve-devel] applied: [PATCH manager] ui: qemu/Config: disable xtermjs and spice until status is loaded
  2021-04-20 16:20 ` [pve-devel] applied: " Thomas Lamprecht
@ 2021-04-21  6:50   ` Dominik Csapak
  0 siblings, 0 replies; 3+ messages in thread
From: Dominik Csapak @ 2021-04-21  6:50 UTC (permalink / raw)
  To: Thomas Lamprecht, Proxmox VE development discussion

On 4/20/21 18:20, Thomas Lamprecht wrote:
> On 20.04.21 16:35, Dominik Csapak wrote:
>> We enable/disable spice/xtermjs for the console button in the 'load'
>> callback of the statusstore, depending on the vms capabilities,
>> but until the first load there, the only safe option is novnc.
>>
>> So we have to disable xtermjs and spice on start, else a click on
>> the button might open a window that cannot connect to the vm.
>>
>> a forum user probably triggered this:
>> https://forum.proxmox.com/threads/unable-to-find-serial-interface-console-problem.87705
>>
>> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
>> ---
>>   www/manager6/qemu/Config.js | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
>> index 10bf10a4..b5f8cc9c 100644
>> --- a/www/manager6/qemu/Config.js
>> +++ b/www/manager6/qemu/Config.js
>> @@ -199,6 +199,8 @@ Ext.define('PVE.qemu.Config', {
>>   	    disabled: !caps.vms['VM.Console'],
>>   	    hidden: template,
>>   	    consoleType: 'kvm',
>> +	    enableSpice: false,
>> +	    enableXtermjs: false,
>>   	    consoleName: vm.name,
>>   	    nodename: nodename,
>>   	    vmid: vmid,
>>
> 
> adding a comment could be nice to avoid people thinking to "clean this up" in the future.

yes, i'll add a comment

> 
> Anyway, applied. Related in the widest sense:
> 
> I have an issue with the default opened console viewer, a VM always opens the xtermjs
> one when IMO the spice viewer or noVNC one should be preferred.
> 
> Setup details
> 
> * windows VM
> ** display spice (qxl)
> ** serial port added
> * datacenter options for console viewer set to html5
> 

weird, works for me differently:

* datacenter html5
* vm with display spice + serial port
* opens novnc

i'll investigate




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-21  6:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20 14:35 [pve-devel] [PATCH manager] ui: qemu/Config: disable xtermjs and spice until status is loaded Dominik Csapak
2021-04-20 16:20 ` [pve-devel] applied: " Thomas Lamprecht
2021-04-21  6:50   ` Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal