public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Aaron Lauterer <a.lauterer@proxmox.com>
To: "Proxmox VE development discussion" <pve-devel@lists.proxmox.com>,
	"Michael Köppl" <m.koeppl@proxmox.com>
Cc: pve-devel <pve-devel-bounces@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH qemu-server, manager v8 0/4] fix #1926 autodetect xtermjs or novnc for VM console
Date: Mon, 3 Nov 2025 22:04:22 +0100	[thread overview]
Message-ID: <af54a09a-4391-4b0c-903c-ea151aa77893@proxmox.com> (raw)
In-Reply-To: <DDT6R4TCONVC.3MNXFQYARA134@proxmox.com>

thanks for catching that line in 3/4 that got added by accident!

I sent a v9 that fixes that 
https://lore.proxmox.com/pve-devel/20251103210233.2432522-2-a.lauterer@proxmox.com/T/#ma0b9e1e65e336734f20dc993799dbb743de25da7

On  2025-10-27  15:48, Michael Köppl wrote:
> Gave this another quick spin, just to be sure. Tested the following:
> - Created VM with serial terminal as display
> - xtermjs was used for serial
> - Switching to "default" or explicitly to "Standard VGA" uses noVNC
> - Switching to "SPICE" uses remote-viewer
> 
> Seems to work as advertised. Left a comment regarding one code change on
> 3/4.
> 
> Renewing the T-b just in case:
> Tested-by: Michael Köppl <m.koeppl@proxmox.com>
> 
> On Fri Oct 3, 2025 at 5:00 PM CEST, Aaron Lauterer wrote:
>> Here is a new verson for this fix. Nothing changed since v7 expect
>> rebasing. Quite a bit happened since then, but the rebase should be fine
>> by now. I gave it a quick test on my workstation and things seem to work
>> as expected. A quick test by someone else might be warranted though,
>> just to be safe. I added all the R-b and T-b tags that were added on v7
>> direclty into each patch. Hopefully as they should be (chronological).
>>
>> The old cover letter that explains what is happening below:
>>
>> After the feedback from Fiona on v6 and some
>> off-list discussion, we decided to improve the backend part by moving
>> the "default" logic out of `get_vga_properties` and move it into a
>> separate public `get_default_vga_type` function. This way we can leave
>> all the other functions private to the QemuServer.pm module.
>>
>>
>> We add a new property in the VM status/current API result that includes
>> the display configurtion of the VM. This way we can check in the
>> frontend what to do with it.
>>
>> I chose a nested return value, as that makes it easier to add/move
>> additional display properties into it.
>>
>> Patch 1/4 moves the default display logic into its own public function
>>
>> Patch 2/4 adds the new display property. If not explicitly set in the VM
>> config, it will return the default value.
>>
>> Patch 3/4 implements the changes in the UI. The final result isn't
>> really a lot simpler on the UI side than in V4 where we had the extra
>> API call to the VM's config directly. Because we still need to wait for
>> the API call to finish when initially navigating to the VM. But we have
>> one fewer call.
>>
>> Patch 4/4 then introduces some changes to make loading of the console
>> faster if we just navigate in the submenu of a VM itself where we
>> already have the current status of a VM already cached.
>>
>>
>> Changes from
>> v7: rebased
>> v6: backend only: create new `get_default_vga_type` function.
>> v5: implement suggestions:
>>
>> * use get_vga_properties for default VGA
>> * UI: use helper to determine if serial display
>>
>> Aaron Lauterer (2):
>>    add new public get_default_vga_type function
>>    api: status/current: add display property
>>
>>   src/PVE/API2/Qemu.pm  | 13 +++++++++++++
>>   src/PVE/QemuServer.pm | 29 ++++++++++++++++++++++-------
>>   2 files changed, 35 insertions(+), 7 deletions(-)
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

      reply	other threads:[~2025-11-03 21:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-03 15:00 Aaron Lauterer
2025-10-03 15:00 ` [pve-devel] [PATCH qemu-server v8 1/2] add new public get_default_vga_type function Aaron Lauterer
2025-10-03 15:00 ` [pve-devel] [PATCH qemu-server v8 2/2] api: status/current: add display property Aaron Lauterer
2025-10-03 15:00 ` [pve-devel] [PATCH manager v8 3/4] fix #1926 ui: vm console: autodetect novnc or xtermjs Aaron Lauterer
2025-10-27 14:42   ` Michael Köppl
2025-10-03 15:00 ` [pve-devel] [PATCH manager v8 4/4] ui: console: check on activate if display info for VMs is present Aaron Lauterer
2025-10-27 14:48 ` [pve-devel] [PATCH qemu-server, manager v8 0/4] fix #1926 autodetect xtermjs or novnc for VM console Michael Köppl
2025-11-03 21:04   ` Aaron Lauterer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af54a09a-4391-4b0c-903c-ea151aa77893@proxmox.com \
    --to=a.lauterer@proxmox.com \
    --cc=m.koeppl@proxmox.com \
    --cc=pve-devel-bounces@lists.proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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