[pve-devel] applied: [PATCH manager] ui: util: update backup content type string

2025-03-07 Thread Thomas Lamprecht
On 13/02/2025 13:57, Fiona Ebner wrote: > The description 'VZDump backup file' for content type 'backup' is > wrong for PBS and other future backup providers. Just use 'Backup' to > describe the content type everywhere and avoid confusion. > > Signed-off-by: Fiona Ebner > --- > www/manager6/Util

[pve-devel] [PATCH pve-common v2] systemd: disconnect signals

2025-03-07 Thread Maximiliano Sandoval
Dbus has a limit of 512 connections by default and signals should be disconnected as soon as they are not needed anymore. This should alleviate https://bugzilla.proxmox.com/show_bug.cgi?id=5876. Signed-off-by: Maximiliano Sandoval --- Differences from v1: - remove two guards on finish_callback

Re: [pve-devel] [PATCH qemu-server 7/8] machine: bump pve machine version and reverse the s3/s4 defaults

2025-03-07 Thread Fiona Ebner
Am 06.03.25 um 11:44 schrieb Dominik Csapak: > so new guests (or guests with the 'latest' machine type) have > that setting automatically disabled. > > The previous default (enabling S3/S4), does not make too much sense in a > virtual environment, and sometimes makes problems, e.g. Windows default

[pve-devel] [PATCH pve-network 3/8] ipam: netbox: simplify helpers

2025-03-07 Thread Stefan Hanreich
The helpers had lots of unnecessary intermediate assignments, which we can just simplify. Signed-off-by: Stefan Hanreich --- src/PVE/Network/SDN/Ipams/NetboxPlugin.pm | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/PVE/Network/SDN/Ipams/NetboxPlugin.pm b/sr

[pve-devel] [PATCH pve-network 7/8] partial fix #5496: ipam: netbox: create / delete ip ranges for dhcp

2025-03-07 Thread Stefan Hanreich
We use the IP ranges of netbox to represent the dhcp ranges. We were already querying the IP ranges for a IP when starting a guest, but we never created the IP ranges in the first place. Additionally implement deleting the IP ranges when the subnet gets deleted. These methods try to check for any

[pve-devel] [PATCH pve-network 6/8] partial fix #5496: ipam: netbox: properly return allocated ip

2025-03-07 Thread Stefan Hanreich
The netbox integration did not properly return the IP when creating the entries in netbox. This lead to errors on starting the guest, stating that an IP could not be allocated. Originally-by: lou lecrivain Signed-off-by: Stefan Hanreich --- src/PVE/Network/SDN/Ipams/NetboxPlugin.pm | 8 ++--

[pve-devel] [PATCH pve-network 4/8] ipam: netbox: no conditional assignments for descriptions

2025-03-07 Thread Stefan Hanreich
While it should make practically no difference, it opens up potential errors in the future, so just remove the conditional assignments and explicitly define the variable as undef, so the intention is more clear. Signed-off-by: Stefan Hanreich --- src/PVE/Network/SDN/Ipams/NetboxPlugin.pm | 6 +++

[pve-devel] [PATCH pve-network 1/8] ipam: netbox: factor out common api methods and unify error handling

2025-03-07 Thread Stefan Hanreich
Create a helper method that abstracts the common code used in making netbox requests. Move all api_request incovations over to using the helper method. This saves us from writing lots of repeated code. This also updates the helpers and introduces error checking there. Helpers didn't catch any erro

[pve-devel] [PATCH pve-network 8/8] partial fix #5496: subnet: ipam: add update_subnet hook

2025-03-07 Thread Stefan Hanreich
Because of how the Netbox IPAM plugin works (utilizing IP ranges to represent DHCP ranges), we need a hook in the IPAM plugin that runs on updates to the subnet because DHCP ranges can be edited. The update hook in Netbox checks which DHCP ranges got added and which got deleted and then performs th

[pve-devel] [PATCH pve-network 5/8] ipam: netbox: add error handling to get_ips_from_mac

2025-03-07 Thread Stefan Hanreich
This function did not catch any possible errors, nor respect the $noerr parameter. Signed-off-by: Stefan Hanreich --- src/PVE/Network/SDN/Ipams/NetboxPlugin.pm | 4 1 file changed, 4 insertions(+) diff --git a/src/PVE/Network/SDN/Ipams/NetboxPlugin.pm b/src/PVE/Network/SDN/Ipams/NetboxPlu

[pve-devel] [PATCH pve-network 2/8] ipam: netbox: implement deleting subnets

2025-03-07 Thread Stefan Hanreich
Deleting a subnet did not delete any created entities in Netbox. Implement deletion of a subnet by deleting all entities that are created in Netbox upon creation of a subnet. We are checking for any leftover IP assignments before deleting the prefix, so we do not accidentally delete any manually c

Re: [pve-devel] [PATCH zfsonlinux v2 1/3] zfs-initramfs: add patch to avoid activating all LVs at boot

2025-03-07 Thread Friedrich Weber
On 07/03/2025 12:49, Fabian Grünbichler wrote: > Reviewed-by: Fabian Grünbichler Thanks, added the trailer on the upstream PR: https://github.com/openzfs/zfs/pull/17125/commits/693ab2e972f64d9418109d273f5294f3a401dae6 ___ pve-devel mailing list pve

Re: [pve-devel] [PATCH qemu-server 2/8] config to command: add one '-global' option for each flag

2025-03-07 Thread Fiona Ebner
Am 06.03.25 um 11:44 schrieb Dominik Csapak: > If we have multiple 'globalFlags', we have to encode each one separately > on the commandline with '-global OPTION', since QEMU does not allow to > have multiple options here. > > We currently only have one such flag that used the 'globalFlags' list,

Re: [pve-devel] [PATCH pve-manager 10/11] sdn: add fabric edit/delete forms

2025-03-07 Thread Gabriel Goller
diff --git a/www/manager6/sdn/fabrics/Common.js b/www/manager6/sdn/fabrics/Common.js new file mode 100644 index ..72ec093fc928 --- /dev/null +++ b/www/manager6/sdn/fabrics/Common.js @@ -0,0 +1,222 @@ +Ext.define('PVE.sdn.Fabric.InterfacePanel', { +extend: 'Ext.grid.Panel', +mi

Re: [pve-devel] [PATCH pve-manager 09/11] sdn: add Fabrics view

2025-03-07 Thread Gabriel Goller
+ Proxmox.Utils.API2Request({ + url: `/cluster/sdn/fabrics/`, + method: 'GET', + success: function(response, opts) { + let ospf = Object.entries(response.result.data.ospf); + let openfabric = Object.entries(re

[pve-devel] applied: [PATCH qemu-server v6 03/10] tests: cfg2cmd: fix mdev tests

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > this will fail with the new checks for mdev when we don't have the > correct config. Nit: it would only fail after the next commit ;) > > namely a device that has mediated devices, should have 'mdev' set in the > mapping config > > Signed-off-by: D

[pve-devel] [PATCH qemu-server v2 1/8] tests: cfg2cmd: add test for windows machine pinning from meta info

2025-03-07 Thread Dominik Csapak
so we test that logic at least once. Signed-off-by: Dominik Csapak --- drop the pve version test, and move it, since we might want to have it regardless if the rest is applied or not. test/cfg2cmd/q35-windows-pinning.conf | 5 + test/cfg2cmd/q35-windows-pinning.conf.cmd | 24 ++

[pve-devel] [PATCH qemu-server v2 7/8] api: qemu machine capabilities: add custom pveX versions too

2025-03-07 Thread Dominik Csapak
Add the pveX variants (where X > 0) to the list too, so one knows they exits. Also this allows them to be shown and chosen in the UI. Signed-off-by: Dominik Csapak --- new in v2 PVE/API2/Qemu/Machine.pm | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/

Re: [pve-devel] [PATCH qemu-server 0/8] disable S3/S4 power states by default

2025-03-07 Thread Dominik Csapak
superseded by v2: https://lore.proxmox.com/pve-devel/20250307144436.122621-1-d.csa...@proxmox.com/ ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH qemu-server v2 2/8] config to command: get rid of globalFlags

2025-03-07 Thread Dominik Csapak
We only have one place where we use it, so add the global flag inline, instead of collecting and doing it at the end. This makes it consistent with our other places where we need '-global' flags. Adapt the tests, since that global flag changes place, the resulting qemu hardware should be identical

[pve-devel] [PATCH qemu-server v2 4/8] machine: incorporate pve machine version when pinning windows guests

2025-03-07 Thread Dominik Csapak
When creating or updating guests with ostype windows, we want to pin the machine version to a specific one. Since introduction of that feature, we never bumped the pve machine version, so this was missing. Append the pve machine version only if it's not 0 so we don't add that unnecessarily. Signe

[pve-devel] [PATCH qemu-server v2 5/8] machine: add S3/S4 power state properties

2025-03-07 Thread Dominik Csapak
So users can disable them (they're enabled by default in QEMU) Signed-off-by: Dominik Csapak --- changes from v1: * rework the method with suggestions from fiona * change way we add flags because we don't have globalflags anymore PVE/QemuServer.pm | 4 PVE/QemuServer/Machine.pm |

[pve-devel] [PATCH qemu-server v2 8/8] api: qemu machine capabilities: add description for pveX variants

2025-03-07 Thread Dominik Csapak
and retroactively add descriptions for previous bumps. Signed-off-by: Dominik Csapak --- new in v2 PVE/API2/Qemu/Machine.pm | 9 + PVE/QemuServer/Machine.pm | 15 +++ 2 files changed, 24 insertions(+) diff --git a/PVE/API2/Qemu/Machine.pm b/PVE/API2/Qemu/Machine.pm index 1

[pve-devel] [PATCH qemu-server v2 6/8] machine: bump pve machine version and reverse the s3/s4 defaults

2025-03-07 Thread Dominik Csapak
so new guests (or guests with the 'latest' machine type) have that setting automatically disabled. The previous default (enabling S3/S4), does not make too much sense in a virtual environment, and sometimes makes problems, e.g. Windows defaults to using 'hybrid shutdown' and 'fast startup' when S4

[pve-devel] [PATCH docs v2 1/1] qm: pve machine version: add section to explain +pveX versions

2025-03-07 Thread Dominik Csapak
and clarify what windows guests will be pinned to. Signed-off-by: Dominik Csapak --- new in v2 qm.adoc | 15 +++ 1 file changed, 15 insertions(+) diff --git a/qm.adoc b/qm.adoc index 4bb8f2c..16ed870 100644 --- a/qm.adoc +++ b/qm.adoc @@ -173,6 +173,21 @@ This means that after a fre

[pve-devel] [PATCH qemu-server v2 3/8] machine: correctly select pve machine version for non pinned windows guests

2025-03-07 Thread Dominik Csapak
when we don't have a specific machine version on a windows guest, we use the creation meta info to pin the machine version. Currently we always append the pve machine version from the current installed kvm version, which is not necessarily the version we pinned the guest to. Instead, use the same

[pve-devel] [PATCH qemu-server/docs v2] disable S3/S4 power states by default

2025-03-07 Thread Dominik Csapak
since they make some problems (e.g. windows hybrid shutdown is enabled by default then -> which makes vGPU problem). Libvirt/virsh also disables that by default (and tries preventing enabling it.) This series introduces a new pve1 version for 9.2 machine versions, and pins new windows guests to th

Re: [pve-devel] [PATCH (guest-)common/qemu-server/manager/docs v6] implement

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:16 schrieb Dominik Csapak: > pve-docs: > > Dominik Csapak (2): > qm: resource mapping: add description for `mdev` option > qm: resource mapping: document `live-migration-capable` setting Those two as well: Reviewed-by: Fiona Ebner Good work on this series! _

Re: [pve-devel] [PATCH manager v6 5/5] fix #5175: ui: allow configuring and live migration of mapped pci resources

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > if the hardware/driver is capable, the admin can now mark a pci device > as 'live-migration-capable', which then tries enabling live migration > for such devices. > > mark it as experimental when configuring and in the migrate window > > Signed-off-b

[pve-devel] applied-series: [PATCH network 0/3] smaller fixes and clean-ups

2025-03-07 Thread Thomas Lamprecht
To bugs got noticed by Fiona, namely missing use statements – which was not relevant in practice, but still good to have them correct as it easily can cause "spooky actions at a distance" when changing things elsewhere. The other one was a conditional use-statement, which is always a rather nasty b

[pve-devel] applied-series: [PATCH 1/4] frr: bump from 8.5.2 to 10.2.1

2025-03-07 Thread Thomas Lamprecht
On 07/03/2025 13:29, Gabriel Goller wrote: > This includes a new frr-test-tools package that we are not interested in > (it's a testing package), so we ignore it with a BuildProfile. > > Signed-off-by: Gabriel Goller > --- > Makefile | 2 +- > debian/control | 9 + > frr

Re: [pve-devel] [PATCH manager v6 4/5] ui: adapt migration window to precondition api change

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > we now return the 'allowed_nodes'/'not_allowed_nodes' also if the vm is > running, when it has mapped resources. So do that checks independently > so that the user has instant feedback where those resources exist. > > Signed-off-by: Dominik Csapak R

Re: [pve-devel] [PATCH-SERIES qemu-server v5 00/16] more robust handling of fleecing images

2025-03-07 Thread Fiona Ebner
Am 27.01.25 um 12:29 schrieb Fiona Ebner: > Changes in v5: > * everything new in v5 except the last 3 patches > * new approach, use special config section instead of config key > * add tests and some fixes for configuration handling > * make special section handling more generic > * also check for

Re: [pve-devel] [PATCH manager v6 2/5] bulk migrate: improve precondition checks

2025-03-07 Thread Fiona Ebner
Am 07.03.25 um 14:19 schrieb Fiona Ebner: > Am 13.02.25 um 14:17 schrieb Dominik Csapak: >> this now takes into account the 'not_allowed_nodes' hash we get from the >> api call. With that, we can now limit the 'local_resources' check for >> online vms only, as for offline guests, the 'unavailable-r

Re: [pve-devel] [PATCH qemu-server v6 10/10] migrate: add transfer summary

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > showing a final transfer log line helps with identifying what was > actually transferred. E.g. it could happen that the VFIO state was only > transferred in the last iteration. In such a case we would not see that > information at all. > > Signed-off-

Re: [pve-devel] [PATCH manager v6 3/5] bulk migrate: include checks for live-migratable local resources

2025-03-07 Thread Fiona Ebner
Am 07.03.25 um 14:30 schrieb Fiona Ebner: > Am 13.02.25 um 14:17 schrieb Dominik Csapak: >> those should be able to migrate even for online vms. If the mapping does >> not exist on the target node, that will be caught further down anyway. >> >> Signed-off-by: Dominik Csapak >> --- >> no changes in

Re: [pve-devel] applied: [PATCH qemu-server v6 02/10] migrate: call vm_stop_cleanup after stopping in phase3_cleanup

2025-03-07 Thread Dominik Csapak
On 3/6/25 17:42, Fiona Ebner wrote: Am 13.02.25 um 14:17 schrieb Dominik Csapak: we currently only call deactivate_volumes, but we actually want to call the whole vm_stop_cleanup, since that is not invoked by the vm_stop above (we cannot parse the config anymore) and might do other cleanups we a

Re: [pve-devel] [PATCH qemu-server v6 08/10] api: include not mapped resources for running vms in migrate preconditions

2025-03-07 Thread Fiona Ebner
Am 07.03.25 um 13:20 schrieb Fiona Ebner: > Am 13.02.25 um 14:17 schrieb Dominik Csapak: >> so that we can show a proper warning in the migrate dialog and check it >> in the bulk migrate precondition check >> >> the unavailable_storages and should be the same as before, but >> we now always return

[pve-devel] [PATCH pve-network 1/4] subnet: dhcp: improve Net::IP usage

2025-03-07 Thread Stefan Hanreich
This simplifies the comparison of IPs by using the object-oriented interface over the procedural one. Also instantiate the ips using the new method rather than using new, which isn't a keyword in Perl. This fixes the respective perlcritic warning. Signed-off-by: Stefan Hanreich --- src/PVE/Netwo

Re: [pve-devel] [PATCH manager v6 3/5] bulk migrate: include checks for live-migratable local resources

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > those should be able to migrate even for online vms. If the mapping does > not exist on the target node, that will be caught further down anyway. > > Signed-off-by: Dominik Csapak > --- > no changes in v6 > PVE/API2/Nodes.pm | 13 +++-- > 1

Re: [pve-devel] [PATCH manager v6 2/5] bulk migrate: improve precondition checks

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > this now takes into account the 'not_allowed_nodes' hash we get from the > api call. With that, we can now limit the 'local_resources' check for > online vms only, as for offline guests, the 'unavailable-resources' hash > already includes mapped device

Re: [pve-devel] [PATCH manager v6 1/5] mapping: pci: include mdev in config checks

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > by also providing the global config in assert_valid, and by also > adding the mdev config in the 'toCheck' object in the gui > > For the gui, we extract the mdev property from the global entry, and add > it to the individual mapping entries, that way

[pve-devel] [PATCH pve-network 4/4] subnet: dhcp: do not allow overlapping dhcp ranges

2025-03-07 Thread Stefan Hanreich
Check for overlapping DHCP ranges and reject them if there are any overlaps. If we can be certain that there are no overlapping DHCP ranges this saves us from running into errors later in IPAM modules where overlapping DHCP ranges are not allowed. Signed-off-by: Stefan Hanreich --- src/PVE/Netwo

[pve-devel] [PATCH pve-network 2/4] subnet: dhcp: fix typo in error message

2025-03-07 Thread Stefan Hanreich
Signed-off-by: Stefan Hanreich --- src/PVE/Network/SDN/SubnetPlugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/Network/SDN/SubnetPlugin.pm b/src/PVE/Network/SDN/SubnetPlugin.pm index 4bff2dd..8733018 100644 --- a/src/PVE/Network/SDN/SubnetPlugin.pm +++ b/s

[pve-devel] [PATCH pve-network 3/4] subnet: dhcp: only accept single ips and normalize them

2025-03-07 Thread Stefan Hanreich
Net::IP accepts a myriad of different IP objects from ranges to prefixes to singular IPs. We check if the object consists only of a singular IP and normalize the IP if it has size 1 (since then it could still be a /32 prefix or a range consisting of one IP). Otherwise we would theoretically accept

[pve-devel] [PATCH 1/4] frr: bump from 8.5.2 to 10.2.1

2025-03-07 Thread Gabriel Goller
This includes a new frr-test-tools package that we are not interested in (it's a testing package), so we ignore it with a BuildProfile. Signed-off-by: Gabriel Goller --- Makefile | 2 +- debian/control | 9 + frr| 2 +- 3 files changed, 11 insertions(+), 2 deletions(-)

Re: [pve-devel] [PATCH qemu-server v6 09/10] migrate: show vfio state transferred too

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > Show the transferred VFIO state (when there is one), but since there is > no total here, so we can't show that, just what was transferred up until > now. > > Signed-off-by: Dominik Csapak Without the unrelated hunk below: Reviewed-by: Fiona Ebner

Re: [pve-devel] [PATCH 1/4] frr: bump from 8.5.2 to 10.2.1

2025-03-07 Thread Gabriel Goller
Oops, forgot to add the repo to the header. This obviously applies to the `frr` repo. ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH 3/4] frr: add the dummy_as_loopback patch series, enable it by default

2025-03-07 Thread Gabriel Goller
Add the patches for the dummy_as_loopback series, which area already merged upstream, but not yet released. Also enable it by default. Link: https://github.com/FRRouting/frr/pull/18242 Signed-off-by: Gabriel Goller --- ...A_IF_DUMMY-flag-for-dummy-interfaces.patch | 125 +++ ...on-to-tre

[pve-devel] [PATCH 4/4] debian: update changelog

2025-03-07 Thread Gabriel Goller
Update changelog with latest version Signed-off-by: Gabriel Goller --- debian/changelog | 9 + 1 file changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index e630dba40305..a1ec8e899f11 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +frr (10

[pve-devel] [PATCH 2/4] frr: port patches to latest stable version, add topotests

2025-03-07 Thread Gabriel Goller
These patches enable the bgp daemon per default and implement the bgp-evpn autort feature. Also add the topotest for the autort feature. Signed-off-by: Gabriel Goller --- ...atch => 0001-enable-bgp-bfd-daemons.patch} | 17 +- ...on-for-RT-auto-derivation-to-force-A.patch | 77 ++-- .../0003-te

Re: [pve-devel] [PATCH qemu-server v6 08/10] api: include not mapped resources for running vms in migrate preconditions

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > so that we can show a proper warning in the migrate dialog and check it > in the bulk migrate precondition check > > the unavailable_storages and should be the same as before, but > we now always return (not_)allowed_nodes too. What do you mean by "u

Re: [pve-devel] [PATCH storage/zfsonlinux v2 0/3] fix #4997: lvm: avoid autoactivating (new) LVs after boot

2025-03-07 Thread Fabian Grünbichler
> Friedrich Weber hat am 07.03.2025 10:52 CET geschrieben: > # Summary > > With default settings, LVM autoactivates LVs when it sees a new VG, e.g. after > boot or iSCSI login. In a cluster with guest disks on a shared LVM VG (e.g. on > top of iSCSI/Fibre Channel (FC)/direct-attached SAS), this c

Re: [pve-devel] [PATCH] fix #957 iscsi: don't check tcp connection directly

2025-03-07 Thread Mira Limbeck
On 3/7/25 12:59, Mira Limbeck wrote: > Thank you for the patch! > > some comments inline > >> +sub iscsi_test_session { >> +my ($portal, $sid) = @_; >> +my $cmd = [$ISCSIADM, '--mode', 'session', '--sid', $sid, '-P1']; >> + >> +my $res = 0; >> +eval { >> +run_command($cmd,

Re: [pve-devel] storage plugins: what is plugindata()->{content}[1]

2025-03-07 Thread Roland Kammerer via pve-devel
--- Begin Message --- On Fri, Mar 07, 2025 at 09:24:25AM +0100, Roland Kammerer wrote: > On Tue, Feb 25, 2025 at 11:50:31AM +0100, Max Carrara wrote: > > 6. Is there any other things you'd like to mention? Feedback, critique > >and such are all welcome! something I forgot: the last time I chec

Re: [pve-devel] [PATCH] fix #957 iscsi: don't check tcp connection directly

2025-03-07 Thread Mira Limbeck
Thank you for the patch! some comments inline > +sub iscsi_test_session { > +my ($portal, $sid) = @_; > +my $cmd = [$ISCSIADM, '--mode', 'session', '--sid', $sid, '-P1']; > + > +my $res = 0; > +eval { > +run_command($cmd, errmsg => 'iscsi session test failed', outfunc =>

Re: [pve-devel] applied: [PATCH qemu-server v6 03/10] tests: cfg2cmd: fix mdev tests

2025-03-07 Thread Fiona Ebner
Oh sorry, messed up the Subject, I briefly thought about applying it already, but it should come together with the dependency bump for guest-common, so I didn't yet. Am 07.03.25 um 12:20 schrieb Fiona Ebner: > Am 13.02.25 um 14:17 schrieb Dominik Csapak: >> this will fail with the new checks for m

Re: [pve-devel] [PATCH zfsonlinux v2 1/3] zfs-initramfs: add patch to avoid activating all LVs at boot

2025-03-07 Thread Fabian Grünbichler
> Friedrich Weber hat am 07.03.2025 10:52 CET geschrieben: > > > zfs-initramfs ships an initramfs-tools boot script that > unconditionally activates all LVs on boot. This can cause issues if > the LV resides on a shared LVM VG on top of a shared LUN, in > particular Fibre Channel / directed-at

Re: [pve-devel] [PATCH qemu-server v6 06/10] check_local_resources: add more info per mapped device and return as hash

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > such as the mapping name and if it's marked for live-migration (pci only) > > Signed-off-by: Dominik Csapak Reviewed-by: Fiona Ebner ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists

Re: [pve-devel] [PATCH qemu-server v6 07/10] api: enable live migration for marked mapped pci devices

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > They have to be marked as 'live-migration-capable' in the mapping > config, and the driver and qemu must support it. > > For the gui checks, we now return the whole object of the mapped > resources, which includes info like the name and if it's marked

Re: [pve-devel] [PATCH qemu-server v6 04/10] pci: mapping: check mdev config against hardware

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > by giving the mapping config to assert_valid, not only the specific mapping > > Signed-off-by: Dominik Csapak Reviewed-by: Fiona Ebner ___ pve-devel mailing list pve-devel@lists.proxmox.com https://list

Re: [pve-devel] [PATCH qemu-server v6 05/10] pci: set 'enable-migration' to on for live-migration marked mapped devices

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:17 schrieb Dominik Csapak: > the default is 'auto', but for those which are marked as capable for > live migration, we want to explicitly enable that, so we get an early > error on start if the driver does not support that. > > Signed-off-by: Dominik Csapak Reviewed-by: Fiona E

Re: [pve-devel] [PATCH guest-common v6 2/2] mapping: pci: add 'live-migration-capable' flag to mappings

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:16 schrieb Dominik Csapak: > so that we can decide in qemu-server to allow live-migration. > The driver and QEMU must be capable of that, and it's the > admin's responsibility to know and configure that > > Mark the option as experimental in the description. > > Signed-off-by: D

Re: [pve-devel] [PATCH zfsonlinux v2 1/3] zfs-initramfs: add patch to avoid activating all LVs at boot

2025-03-07 Thread Friedrich Weber
On 07/03/2025 10:52, Friedrich Weber wrote: > [...] > Notes: > new in v2 > > I'm also planning on sending the inner patch upstream, well post here > once I do. Opened a PR upstream: https://github.com/openzfs/zfs/pull/17125 ___ pve-dev

Re: [pve-devel] [PATCH guest-common v6 1/2] mapping: pci: check the mdev configuration on the device too

2025-03-07 Thread Fiona Ebner
Am 13.02.25 um 14:16 schrieb Dominik Csapak: > but that lives int he 'global' part of the mapping config, not in a > specific mapping. To check that, add it to the $configured_props from > there. > > this requires all call sites to be adapted otherwise the check will > always fail for devices that

Re: [pve-devel] [PATCH qemu-server 6/8] machine: add S3/S4 power state properties

2025-03-07 Thread Dominik Csapak
On 3/6/25 15:52, Fiona Ebner wrote: Am 06.03.25 um 11:44 schrieb Dominik Csapak: So users can disable them (they're enabled by default in QEMU) Signed-off-by: Dominik Csapak --- This patch may make sense, regardless if we'll apply the reversal of the default... PVE/QemuServer.pm |

Re: [pve-devel] [PATCH qemu-server 2/8] config to command: add one '-global' option for each flag

2025-03-07 Thread Fiona Ebner
Am 07.03.25 um 11:05 schrieb Dominik Csapak: > On 3/7/25 11:00, Fiona Ebner wrote: >> Am 07.03.25 um 10:54 schrieb Dominik Csapak: >>> On 3/6/25 13:55, Fiona Ebner wrote: Am 06.03.25 um 13:15 schrieb Dominik Csapak: > On 3/6/25 13:13, Fiona Ebner wrote: >> Am 06.03.25 um 11:44 schrieb

Re: [pve-devel] [PATCH qemu-server 6/8] machine: add S3/S4 power state properties

2025-03-07 Thread Fiona Ebner
Am 07.03.25 um 11:02 schrieb Dominik Csapak: > On 3/6/25 15:52, Fiona Ebner wrote: >> Am 06.03.25 um 11:44 schrieb Dominik Csapak: >>> diff --git a/PVE/QemuServer/Machine.pm b/PVE/QemuServer/Machine.pm >>> index ebaf2dcc..377abc8a 100644 >>> --- a/PVE/QemuServer/Machine.pm >>> +++ b/PVE/QemuServer/

Re: [pve-devel] [PATCH storage 0/2] fix #4997: lvm: avoid autoactivating (new) LVs after boot

2025-03-07 Thread Friedrich Weber
sent a v2: https://lore.proxmox.com/pve-devel/20250307095245.65698-1-f.we...@proxmox.com/T/ On 10/02/2025 11:47, Fabian Grünbichler wrote: > [...] > >> >> So I'm wondering: >> >> (a) could the ZFS initramfs script use `-aay` instead of `-ay`, so the >> `--setautoactivation` flag has an effect aga

Re: [pve-devel] [PATCH qemu-server 5/8] machine: incorporate pve machine version when pinning windows guests

2025-03-07 Thread Fiona Ebner
Am 07.03.25 um 10:58 schrieb Dominik Csapak: > On 3/6/25 15:32, Fiona Ebner wrote: >> Am 06.03.25 um 11:44 schrieb Dominik Csapak: >>> When creating or updating guests with ostype windows, we want to pin the >>> machine version to a specific one. Since introduction of that feature, >>> we never bum

Re: [pve-devel] [PATCH qemu-server 5/8] machine: incorporate pve machine version when pinning windows guests

2025-03-07 Thread Dominik Csapak
On 3/6/25 15:32, Fiona Ebner wrote: Am 06.03.25 um 11:44 schrieb Dominik Csapak: When creating or updating guests with ostype windows, we want to pin the machine version to a specific one. Since introduction of that feature, we never bumped the pve machine version, so this was missing. Append t

Re: [pve-devel] [PATCH qemu-server 2/8] config to command: add one '-global' option for each flag

2025-03-07 Thread Dominik Csapak
On 3/7/25 11:00, Fiona Ebner wrote: Am 07.03.25 um 10:54 schrieb Dominik Csapak: On 3/6/25 13:55, Fiona Ebner wrote: Am 06.03.25 um 13:15 schrieb Dominik Csapak: On 3/6/25 13:13, Fiona Ebner wrote: Am 06.03.25 um 11:44 schrieb Dominik Csapak: If we have multiple 'globalFlags', we have to enc

Re: [pve-devel] [PATCH qemu-server 2/8] config to command: add one '-global' option for each flag

2025-03-07 Thread Fiona Ebner
Am 07.03.25 um 10:54 schrieb Dominik Csapak: > On 3/6/25 13:55, Fiona Ebner wrote: >> Am 06.03.25 um 13:15 schrieb Dominik Csapak: >>> On 3/6/25 13:13, Fiona Ebner wrote: Am 06.03.25 um 11:44 schrieb Dominik Csapak: > If we have multiple 'globalFlags', we have to encode each one > sepa

Re: [pve-devel] [PATCH v2 proxmox-apt-hook] initial commit

2025-03-07 Thread Fiona Ebner
Am 29.11.24 um 15:29 schrieb Fiona Ebner: > Am 09.09.24 um 12:20 schrieb Fiona Ebner: >> Many people will use 'upgrade' instead of 'full-upgrade' or >> 'dist-upgrade' (e.g. [0][1]) despite the documentation explicitly >> mentioning 'dist-upgrade' [3]. Proxmox projects use different >> packaging gua

Re: [pve-devel] [PATCH qemu-server 4/8] machine: correctly select pve machine version for non pinned windows guests

2025-03-07 Thread Dominik Csapak
On 3/6/25 15:20, Fiona Ebner wrote: Am 06.03.25 um 15:15 schrieb Dominik Csapak: On 3/6/25 15:10, Fiona Ebner wrote: Am 06.03.25 um 14:36 schrieb Dominik Csapak: On 3/6/25 14:10, Fiona Ebner wrote: Am 06.03.25 um 11:44 schrieb Dominik Csapak: diff --git a/PVE/QemuServer/Machine.pm b/PVE/Qemu

Re: [pve-devel] [PATCH qemu-server 2/8] config to command: add one '-global' option for each flag

2025-03-07 Thread Dominik Csapak
On 3/6/25 13:55, Fiona Ebner wrote: Am 06.03.25 um 13:15 schrieb Dominik Csapak: On 3/6/25 13:13, Fiona Ebner wrote: Am 06.03.25 um 11:44 schrieb Dominik Csapak: If we have multiple 'globalFlags', we have to encode each one separately on the commandline with '-global OPTION', since QEMU does n

[pve-devel] [PATCH pve-storage v2 2/3] lvm: create: use multiple lines for lvcreate commandline definition

2025-03-07 Thread Friedrich Weber
Makes the definition more amenable for future additions. No functional change intended. Signed-off-by: Friedrich Weber --- Notes: new in v2 src/PVE/Storage/LVMPlugin.pm | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/PVE/Storage/LVMPlugin.pm b/src/PVE/Stora

[pve-devel] [PATCH storage/zfsonlinux v2 0/3] fix #4997: lvm: avoid autoactivating (new) LVs after boot

2025-03-07 Thread Friedrich Weber
# Summary With default settings, LVM autoactivates LVs when it sees a new VG, e.g. after boot or iSCSI login. In a cluster with guest disks on a shared LVM VG (e.g. on top of iSCSI/Fibre Channel (FC)/direct-attached SAS), this can indirectly cause guest creation or migration to fail. See bug #4997

[pve-devel] [PATCH zfsonlinux v2 1/3] zfs-initramfs: add patch to avoid activating all LVs at boot

2025-03-07 Thread Friedrich Weber
zfs-initramfs ships an initramfs-tools boot script that unconditionally activates all LVs on boot. This can cause issues if the LV resides on a shared LVM VG on top of a shared LUN, in particular Fibre Channel / directed-attached SAS LUNs, as these are usually visible at boot time. See bug #4997 [1

[pve-devel] [PATCH pve-storage v2 3/3] fix #4997: lvm: create: disable autoactivation for new logical volumes

2025-03-07 Thread Friedrich Weber
When discovering a new volume group (VG), for example on boot, LVM triggers autoactivation. With the default settings, this activates all logical volumes (LVs) in the VG. Activating an LV creates a device-mapper device and a block device under /dev/mapper. This is not necessarily problematic for l

[pve-devel] [PATCH qemu-server v3 2/4] fix 4888: qmrestore: add disk-format option

2025-03-07 Thread Markus Frank
Add an option to choose a file format (qcow2, raw, vmdk) when restoring a vm backup to file based storage. This options allows all disks to be recreated with the specified file format if supported by the target storage. Signed-off-by: Markus Frank --- v3: * added requires => 'archive' to disk-for

[pve-devel] [PATCH storage/qemu-server/manager v3 0/4] restore with a specified file format

2025-03-07 Thread Markus Frank
This patch series allows to restore all VM disks with a specified format if supported by the target storage. The existing storage and the new disk-format options can act as a default/fallback for per disk storage/format customisation in the future (#4275). v3: * see individual patches v2: * renam

[pve-devel] [PATCH manager v3 3/4] ui: add hideFormatWhenStorageEmpty option to DiskStorageSelector

2025-03-07 Thread Markus Frank
Prerequisite for "ui: restore window: add diskformat option" The hide condition is copied from the format selector item in the same file. Signed-off-by: Markus Frank --- v3: * added (me.hideFormatWhenStorageEmpty && !me.autoSelect) to the hide condition in initComponent instead of manually hidin

[pve-devel] [PATCH manager v3 4/4] ui: restore window: add disk-format option

2025-03-07 Thread Markus Frank
This is done by changing the StorageSelector to a DiskStorageSelector. Using the hideFormatWhenStorageEmpty option of the DiskStorageSelector to hide the DiskFormatSelector when no storage is selected, as the DiskFormatSelector would show the default value qcow2 in a disabled state, which could co

[pve-devel] applied: [PATCH pve-common v2] systemd: disconnect signals

2025-03-07 Thread Wolfgang Bumiller
applied, with a minor cleanup On Fri, Mar 07, 2025 at 09:14:14AM +0100, Maximiliano Sandoval wrote: > Dbus has a limit of 512 connections by default and signals should be > disconnected as soon as they are not needed anymore. > > This should alleviate https://bugzilla.proxmox.com/show_bug.cgi?id=

Re: [pve-devel] storage plugins: what is plugindata()->{content}[1]

2025-03-07 Thread Roland Kammerer via pve-devel
--- Begin Message --- Hi Max, took me a bit longer than expected, but here we go... On Tue, Feb 25, 2025 at 11:50:31AM +0100, Max Carrara wrote: > Thanks a lot for the offer! I do actually have a couple questions. It > would be nice if you could answer them, as it would aid in cleaning all > this

Re: [pve-devel] [PATCH] systemd: disconnect signals

2025-03-07 Thread Maximiliano Sandoval
Wolfgang Bumiller writes: > On Mon, Mar 03, 2025 at 03:42:53PM +0100, Maximiliano Sandoval wrote: >> Dbus has a limit of 512 connections by default and signals should be >> disconnected as soon as they are not needed anymore. >> >> This should alleviate https://bugzilla.proxmox.com/show_bug.cgi