Commit Graph
6 Commits
Author SHA1 Message Date
dualfroz b8ae251afe fix #7173: write config: drop empty tag list
When the last tag of a VM gets removed, for example in the web UI, the
API gets an empty 'tags' value, which then ends up as an empty 'tags:'
line in the config and in the output of 'qm config'. As the config
parser reads that line back as a single space, it also gets written out
again on every following config change.

Skip a tag list without any tag when writing the config, which also
cleans up existing configs with such a line on their next change. The
pending section still needs to keep it, otherwise the removal of all
tags would get lost between writing the pending change and applying it.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-02 16:11:58 +02:00
upstream 91f98b77f4 Upstream proxmox-git/qemu-server state of the touched files before e84bce8d0f 2026-10-02 16:11:58 +02:00
dualfroz c5a01a4a75 fix #6907: memory: allow multi-digit host nodes with hugepages
When hugepages are enabled, each custom NUMA node must be bound to a
single host node. This was checked with a regex that only accepts a
single digit, so any host node from 10 upwards was rejected with a
misleading "more than 1 hostnode value" error, making hugepages
unusable on hosts with more than ten NUMA nodes.

Accept any single node number instead. Ranges and lists are still
rejected as before.

Signed-off-by: Michal Fox <me@dualfroz.com>
Reviewed-by: Max R. Carrara <m.carrara@proxmox.com>
Tested-by: Max R. Carrara <m.carrara@proxmox.com>
Link: https://lore.proxmox.com/20260926084115.7-1-me@dualfroz.com
[TL: add a multi-digit host node case to the memory tests]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2026-10-14 14:06:30 +02:00
upstream 0e162cc4f4 Upstream proxmox-git/qemu-server state of the touched files before 167f3d70a5 2026-09-26 08:41:15 +00:00
dualfroz 5021bad460 fix #6907: memory: allow multi-digit host nodes with hugepages
When hugepages are enabled, each custom NUMA node must be bound to a
single host node. This was checked with a regex that only accepts a
single digit, so any host node from 10 upwards was rejected with a
misleading "more than 1 hostnode value" error, making hugepages
unusable on hosts with more than ten NUMA nodes.

Accept any single node number instead. Ranges and lists are still
rejected as before.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-09-25 11:27:21 +02:00
upstream d4b21684d1 Upstream proxmox-git/qemu-server state of the touched files before 8966f4416d 2026-09-25 11:27:21 +02:00