[pve-devel] [PATCH v2 common 1/1] schema: support sizes with verbose suffixes {K, M, G, T}iB

2025-06-02 Thread Fiona Ebner
suffixes stay supported for backwards-compatibility for API/CLI users as well as parsing backup configurations. The function is currently also used for parsing the 'target-size' Ceph pool option (still restricted via schema to single-letter suffixes). Signed-off-by: Fiona Ebner --- Cha

[pve-devel] [PATCH-SERIES v2 common/manager 0/2] preparation for #3900: support parsing verbose size suffixes {K, M, G, T}iB

2025-06-02 Thread Fiona Ebner
(or otherwise) backwards-migrations of guests. Changes in v2: * Only add parsing support for now. common: Fiona Ebner (1): schema: support sizes with verbose suffixes {K,M,G,T}iB src/PVE/JSONSchema.pm | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) manager: Fiona Ebner (1

[pve-devel] [PATCH v2 manager 2/2] vzdump: use verbose size suffix when logging archive file size

2025-06-02 Thread Fiona Ebner
The single-letter suffixes are ambiguous and especially in the context of disks, the powers of ten are usually used. Use exact suffixes instead when logging the archive file size. Signed-off-by: Fiona Ebner --- No changes in v2. PVE/VZDump.pm | 8 1 file changed, 4 insertions(+), 4

Re: [pve-devel] [RFC common/manager/qemu-server 0/5] fix #3900: schema: support and prefer sizes with verbose suffixes {K, M, G, T}iB

2025-06-02 Thread Fiona Ebner
Am 01.06.25 um 11:51 schrieb Thomas Lamprecht: > Am 12.05.25 um 15:00 schrieb Fiona Ebner: >> Am 12.05.25 um 14:41 schrieb Fiona Ebner: >>> Maybe best is to wait for PVE 9 with this and do a parse+write for all >>> guest configs (including their snapshots) in the pve

[pve-devel] [PATCH v2 qemu] block/gluster: provider more context for deprecation warning

2025-06-02 Thread Fiona Ebner
Suggested-by: Thomas Lamprecht Signed-off-by: Fiona Ebner --- Changes in v2: * Instead of removing the warning, provide more context. block/gluster.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/block/gluster.c b/block/gluster.c index c3a991..71c4a60b02 100644

Re: [pve-devel] [RFC qemu] block/gluster: do not warn about deprecation

2025-06-02 Thread Fiona Ebner
Am 02.06.25 um 08:33 schrieb Thomas Lamprecht: > Am 11.04.25 um 11:37 schrieb Fiona Ebner: >> Proxmox VE will not drop the GlusterFS plugin during the PVE 8.x >> support lifecycle. Avoid scaring users early. > > Those warnings from QEMU come up as standard info in the task lo

[pve-devel] [PATCH-SERIES qemu 0/2] update submodule and patches to QEMU 10.0.2

2025-06-02 Thread Fiona Ebner
n qemu_savevm_state_complete*") Also squash some related patches. Fiona Ebner (2): update submodule and patches to QEMU 10.0.2 squash some related patches ...d-support-for-sync-bitmap-mode-never.patch | 30 +- ...-support-for-conditional-and-always-.patch | 2 +- ...check-for-bitma

[pve-devel] applied: [PATCH qemu-server] tests: qemu_img_convert: add rbd and btrfs snapshots convert test

2025-05-28 Thread Fiona Ebner
Applied, thanks! I changed the path/pool to not re-use existing ones for different storages, just for future-proofing/more realism. [1/1] tests: qemu_img_convert: add rbd and btrfs snapshots convert test commit: 1fd1ca60f94c68702a6ebda1000e0e9d5fc7f50f _

Re: [pve-devel] [PATCH qemu-server 13/14] blockdev: add backing_chain support

2025-05-28 Thread Fiona Ebner
Am 28.05.25 um 11:08 schrieb DERUMIER, Alexandre via pve-devel: > perl question: how to call a resursive private sub ? (it don't seem to > allow it) AFAIK, you can do it by declaring it up-front: > [I] root@pve8a1 ~# cat asdf.pm > use strict; > use warnings; > > package Private; > > my sub add

Re: [pve-devel] [PATCH pve-docs v6] fix #5644: Moved the swap partition section

2025-05-28 Thread Fiona Ebner
Please use present tense in the commit title/subject like is customary in Proxmox VE development. Am 27.05.25 um 14:39 schrieb Alexander Abraham: > The section about "Creating SWAP partitions" lives in its own > file and the warning about creating SWAP partitions on ZFS was > moved back to the ori

[pve-devel] [PATCH qemu-server] qm: import: use schema variant with 'import-from' disk allocation support

2025-05-28 Thread Fiona Ebner
As reported in the community forum [0], it was not possible to use the extended schema that supports disk allocation with 'import-from' for 'qm import'. Align it more closely to the VM creation endpoint. [0]: https://forum.proxmox.com/threads/166734/ Signed-off-by: Fion

[pve-devel] [PATCH v2 storage 1/2] fix #5071: zfs over iscsi: add 'zfs-base-path' configuration option

2025-05-27 Thread Fiona Ebner
/dev' explicitly for setups that require it. Signed-off-by: Fiona Ebner --- Changes in v2: * Cleaner/more robust approach, add storage configuration setting. src/PVE/Storage/LunCmd/Comstar.pm | 3 ++- src/PVE/Storage/LunCmd/Iet.pm | 5 ++-- src/PVE/Storage/LunCmd/Istgt.pm | 5

[pve-devel] [PATCH v2 storage 2/2] zfs over iscsi: on-add hook: dynamically determine base path

2025-05-27 Thread Fiona Ebner
This reduces the potential breakage from commit "fix #5071: zfs over iscsi: add 'zfs-base-path' configuration option". Only setups where '/dev/zvol' exists, but is not a valid base, will still be affected. Signed-off-by: Fiona Ebner --- This one is optional, not s

Re: [pve-devel] [PATCH storage] fix #5071: zfs over iscsi: iet, lio: use /dev/zvol as a base path if it exists

2025-05-27 Thread Fiona Ebner
Am 27.05.25 um 12:59 schrieb Fiona Ebner: > sub get_base { > -return '/dev'; > +if (!$base_dir) { > + $base_dir = -e '/dev/zvol' ? '/dev/zvol' : '/dev'; > +} > +return $base_dir; > } > Of course, this is co

Re: [pve-devel] [PATCH pve-docs v5] fix #5644: Moved the swap partition section

2025-05-27 Thread Fiona Ebner
Am 27.05.25 um 12:35 schrieb Alexander Abraham: > The section about "Creating SWAP partitions" lives in its own > file and the warning about creating SWAP partitions on ZFS was > moved back to the original file with all documentation about > working with ZVols. > > Signed-off-by: Alexander Abraham

[pve-devel] [PATCH storage] fix #5071: zfs over iscsi: iet, lio: use /dev/zvol as a base path if it exists

2025-05-27 Thread Fiona Ebner
l' does not exist for backwards compatibility. Signed-off-by: Fiona Ebner --- If other exotic setups pop up where this is not enough, it can still be made into an actual storage configuration property. From the existing reports, this should be enough however and the logic makes sense as the def

Re: [pve-devel] [PATCH container v6 3/4] fix #3711: lxc: allow removing unused mp if storage no longer exists

2025-05-27 Thread Fiona Ebner
Am 27.05.25 um 11:34 schrieb Michael Köppl: > On 5/20/25 16:03, Fiona Ebner wrote: >>> @@ -1558,13 +1564,17 @@ sub vmconfig_apply_pending { >>> next if $selection && !$selection->{$opt}; >>> eval { >>> my $mp = $class->parse_

[pve-devel] applied: [PATCH guest-common] tunnel: improve version error handling

2025-05-27 Thread Fiona Ebner
On Fri, 18 Apr 2025 10:36:58 +0200, Fabian Grünbichler wrote: > prevent a warning about $ver being an uninitialized value in case the tunnel > didn't provide a version string at all, for example because it already closed > cause of a prior error. Applied, thanks! [1/1] tunnel: improve version err

Re: [pve-devel] [PATCH container] autocomplete: os templates: do not list VM backup archives for restore

2025-05-27 Thread Fiona Ebner
Am 14.06.24 um 13:29 schrieb Fiona Ebner: > While archives with unknown or undetermined subtype could be shown, > this is only for autocompletion, so users can still specify those > manually if required. > > Signed-off-by: Fiona Ebner > --- > src/PVE/LXC.pm | 1 + > 1 f

Re: [pve-devel] [PATCH-SERIES manager] ui: user edit: improve 'keys' field

2025-05-27 Thread Fiona Ebner
Am 09.02.24 um 14:08 schrieb Fiona Ebner: > Nowadays, TFA is configured in the respective window, so only legacy > values require some special treatment. The only real use case for > actual legacy keys is syncing them from LDAP. I wasn't sure if it > still makes sense to keep t

Re: [pve-devel] [PATCH pve-storage 0/2] move qemu_img_create to common helpers and enable preallocation on backed images

2025-05-27 Thread Fiona Ebner
Am 22.05.25 um 15:53 schrieb Alexandre Derumier via pve-devel: > This is part of my work on qcow2 external snapshot, but could improve current > qcow2 linked clone > > This patch serie move qemu_img_create to common helpers, > and enable preallocation on backed_image to increase performance > >

Re: [pve-devel] [PATCH pve-storage 1/2] common: add qemu_img_create an preallocation_cmd_option

2025-05-27 Thread Fiona Ebner
Yes, this is a better place for such helpers :) Am 22.05.25 um 15:53 schrieb Alexandre Derumier via pve-devel: > Signed-off-by: Alexandre Derumier > --- > src/PVE/Storage/Common.pm | 53 ++ > src/PVE/Storage/GlusterfsPlugin.pm | 2 +- > src/PVE/Storage/Plugi

Re: [pve-devel] [PATCH pve-storage 2/2] common: qemu_img_create: add backing_file support

2025-05-27 Thread Fiona Ebner
Am 22.05.25 um 15:53 schrieb Alexandre Derumier via pve-devel: > > and use it for plugin linked clone > > This also enable extended_l2=on, as it's mandatory for backing file > preallocation. > > Preallocation was missing previously, so it should increase performance > for linked clone now (aroun

[pve-devel] superseded: [PATCH access-control] schema: disallow '0' as a pool name

2025-05-26 Thread Fiona Ebner
superseded by: https://lore.proxmox.com/pve-devel/20250526141941.1654201-1-f.eb...@proxmox.com/T/ ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH v2 manager] api: create pool: force first character to be a letter for new pools

2025-05-26 Thread Fiona Ebner
luate to false in PVE/AccessControl.pm's parse_user_config(): > if (!verify_poolname($pool, 1)) { > warn "user config - ignore pool '$pool' - invalid characters in pool > name\n"; > next; > } It's likely that it would cause other issues

Re: [pve-devel] [PATCH manager] services: add restart on-failure to pvescheduler, pvestatd and spiceproxy

2025-05-26 Thread Fiona Ebner
Am 26.05.25 um 12:38 schrieb Thomas Lamprecht: > Am 26.05.25 um 10:45 schrieb Fiona Ebner: >> Same rationale as 4fd2027e ("service: add restart on-failure to >> pveproxy and pvedaemon") which added the setting for the pveproxy and >> pvedaemon services. >

[pve-devel] [PATCH manager] services: add restart on-failure to pvescheduler, pvestatd and spiceproxy

2025-05-26 Thread Fiona Ebner
Same rationale as 4fd2027e ("service: add restart on-failure to pveproxy and pvedaemon") which added the setting for the pveproxy and pvedaemon services. Suggested for pvestatd in the community forum: https://forum.proxmox.com/threads/165597/post-773210 Signed-off-by: Fiona Ebner ---

[pve-devel] [RFC v2 storage 09/10] plugin: qemu block device: add support for snapshot option

2025-05-23 Thread Fiona Ebner
. Signed-off-by: Fiona Ebner --- New in v2. src/PVE/Storage/ISCSIDirectPlugin.pm | 3 +++ src/PVE/Storage/Plugin.pm| 13 - src/PVE/Storage/RBDPlugin.pm | 2 ++ src/PVE/Storage/ZFSPlugin.pm | 3 +++ src/PVE/Storage/ZFSPoolPlugin.pm | 2 ++ 5 files changed

[pve-devel] [RFC v2 storage 10/10] plugin api: bump api version and age

2025-05-23 Thread Fiona Ebner
be usable for virtual machines anymore. Therefore, this is intended for the next major release, Proxmox VE 9. Signed-off-by: Fiona Ebner --- New in v2. ApiChangeLog | 13 + src/PVE/Storage.pm | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ApiC

[pve-devel] [RFC v2 storage 07/10] rbd plugin: implement new method to get qemu blockdevice options

2025-05-23 Thread Fiona Ebner
uture. Co-developed-by: Alexandre Derumier Signed-off-by: Fiona Ebner --- Changes in v2: * Remove $snapname, is added in later patch as an option. * Adapt to updated QEMU API. src/PVE/Storage/RBDPlugin.pm | 42 1 file changed, 42 insertions(+) diff --git

[pve-devel] [RFC v2 storage 08/10] plugin: qemu block device: add hints option and EFI disk hint

2025-05-23 Thread Fiona Ebner
irectsync │ off │ on │ off│ ├─┼─┼──┼┤ │unsafe │ on │ off │ on │ └─┴─┴──┴────────┘ Table from 'man kvm'. Signed-off-by: Fiona Ebner

[pve-devel] [RFC v2 qemu/storage 00/10] storage plugin method to get qemu blockdevice options for volume

2025-05-23 Thread Fiona Ebner
s-qcow2 exported via NBD or FUSE or external backup provider restore providing an NBD export for the provider to write to. QEMU patches submitted upstream here: https://lore.kernel.org/qemu-devel/20250515112908.383693-1-f.eb...@proxmox.com/ qemu: Fiona Ebner (2): block/rbd: support selected k

[pve-devel] [RFC v2 qemu 02/10] block/rbd: support keyring option via QAPI

2025-05-23 Thread Fiona Ebner
ation option is most convenient. Signed-off-by: Fiona Ebner --- New in v2. block/rbd.c | 8 qapi/block-core.json | 5 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/block/rbd.c b/block/rbd.c index 3928d8fee4..0eac4c1d3e 100644 --- a/block/rbd.c +++ b/b

[pve-devel] [RFC v2 qemu 01/10] block/rbd: support selected key-value-pairs via QAPI

2025-05-23 Thread Fiona Ebner
' to 'writeback' yields a substantial improvement there [0]. The function qemu_rbd_extract_key_value_pairs() was copied/adapted from the existing qemu_rbd_extract_encryption_create_options(). [0]: https://bugzilla.proxmox.com/show_bug.cgi?id=3329#c9 Signed-off-by: Fiona Ebner

[pve-devel] [RFC v2 storage 04/10] iscsi direct plugin: implement method to get qemu blockdevice options

2025-05-23 Thread Fiona Ebner
Signed-off-by: Fiona Ebner --- Changes in v2: * Remove $snapname, is added in later patch as an option. src/PVE/Storage/ISCSIDirectPlugin.pm | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/PVE/Storage/ISCSIDirectPlugin.pm b/src/PVE/Storage/ISCSIDirectPlugin.pm index

[pve-devel] [RFC v2 storage 03/10] plugin: add method to get qemu blockdevice options for volume

2025-05-23 Thread Fiona Ebner
9 being a major release and most popular plugins not using special protocols like 'rbd://', this seems acceptable. For NBD, etc. qemu-server should construct the blockdev object. Signed-off-by: Fiona Ebner --- Changes in v2: * Remove $snapname, is added in later patch as an option. * C

[pve-devel] [RFC v2 storage 06/10] zfs pool plugin: implement method to get qemu blockdevice options

2025-05-23 Thread Fiona Ebner
ZFS does not have a filesystem_path() method, so the default implementation for qemu_blockdev_options() cannot be re-used. This is most likely, because snapshots are currently not directly accessible via a filesystem path in the Proxmox VE storage layer. Signed-off-by: Fiona Ebner --- New in v2

[pve-devel] [RFC v2 storage 05/10] zfs iscsi plugin: implement new method to get qemu blockdevice options

2025-05-23 Thread Fiona Ebner
Reported-by: Alexandre Derumier Signed-off-by: Fiona Ebner --- New in v2 src/PVE/Storage/ZFSPlugin.pm | 16 1 file changed, 16 insertions(+) diff --git a/src/PVE/Storage/ZFSPlugin.pm b/src/PVE/Storage/ZFSPlugin.pm index 94cb11f..89eff3c 100644 --- a/src/PVE/Storage

Re: [pve-devel] [RFC storage 1/3] plugin: add method to get qemu blockdevice options for volume

2025-05-23 Thread Fiona Ebner
Am 23.05.25 um 10:30 schrieb DERUMIER, Alexandre: >>> >>>     if ($path =~ m|^/|) { >>> # The 'file' driver only works for regular files. The check >>> below is taken from >>> # block/file-posix.c:hdev_probe_device() in QEMU. Do not > bother >>with detecting 'host_cdrom' >>> # devices h

Re: [pve-devel] [RFC storage 1/3] plugin: add method to get qemu blockdevice options for volume

2025-05-23 Thread Fiona Ebner
Am 23.05.25 um 11:34 schrieb DERUMIER, Alexandre: >>> I intentionally do not handle CD-ROMs, qemu-server should be >>> concerned >>> with doing that. There is a comment about this ;) > > I mean, could it better to have something like this ? : > > > sub qemu_blockdev_options { > my ($cfg, $vo

Re: [pve-devel] [RFC storage 1/3] plugin: add method to get qemu blockdevice options for volume

2025-05-23 Thread Fiona Ebner
Am 23.05.25 um 10:50 schrieb DERUMIER, Alexandre: >> >> Also, for lvm volume, they are not currently activate at vm command >> line generation. (but anyway, I'll need it to retrieve backing chain, >> so maybe it's not a problem) > >>> Thanks for testing! I'll add an activate_volume() call in the >

Re: [pve-devel] [RFC storage 1/3] plugin: add method to get qemu blockdevice options for volume

2025-05-23 Thread Fiona Ebner
Am 23.05.25 um 11:15 schrieb DERUMIER, Alexandre: >>> Good point! I guess it's better to also do the activation in qemu- >>> server >>> then, so that we can match it up nicely without going over package >>> boundaries. > > Ok, I'll add the activate in qemu-server too > > > > Just found another

Re: [pve-devel] [RFC storage 1/3] plugin: add method to get qemu blockdevice options for volume

2025-05-23 Thread Fiona Ebner
Am 23.05.25 um 10:42 schrieb DERUMIER, Alexandre: >>> no, the plan is to drop the storage plugin for it with Proxmox VE 9. >>> We'll warn about it in the pve8to9 upgrade script. QEMU is expected >>> to >>> drop support with 10.1 in a few months. People that want to continue >>> using it, can still

Re: [pve-devel] [RFC storage 1/3] plugin: add method to get qemu blockdevice options for volume

2025-05-23 Thread Fiona Ebner
Hi Alexandre, Am 23.05.25 um 10:19 schrieb DERUMIER, Alexandre: > do we still support glusterfs for pve9 (as it's deprecated)? no, the plan is to drop the storage plugin for it with Proxmox VE 9. We'll warn about it in the pve8to9 upgrade script. QEMU is expected to drop support with 10.1 in a fe

Re: [pve-devel] [PATCH v2 storage 2/2] rbd plugin: status: use actual storage usage as basis for calculation

2025-05-22 Thread Fiona Ebner
Am 14.05.25 um 11:36 schrieb Fiona Ebner: > As reported in the enterprise support, the usage percentage presented > by Proxmox VE can be quite different from what Ceph itself shows when > compression is used on the pool. The reason is that Proxmox VE used > the 'stored' va

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

2025-05-21 Thread Fiona Ebner
would show the default value qcow2 in a disabled > state, which could confuse users. > > Signed-off-by: Markus Frank Reviewed-by: Fiona Ebner ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] applied: [PATCH qemu-server] migrate: silence 'Use of uninitialized value' warning

2025-05-21 Thread Fiona Ebner
On Mon, 19 May 2025 16:43:57 +0200, Dominik Csapak wrote: > If no vfio device is present during migration, and the transferred > (main) memory did not change between loop cycles, we get a warning: > > Use of uninitialized value $last_vfio_transferred in string ne > > To silence that, check if

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

2025-05-21 Thread Fiona Ebner
Am 07.03.25 um 10:25 schrieb 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 With the eslint issue below fixed: Reviewed-

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

2025-05-21 Thread Fiona Ebner
ned-off-by: Markus Frank Looks good to me, but some slight changes would be nice, see below: Reviewed-by: Fiona Ebner > --- > v3: > * added requires => 'archive' to disk-format > * changed descriptions > * added missing imports/uses > * check if disk_format i

Re: [pve-devel] [PATCH storage v3 1/4] add standard option for VM disk formats in file-based storages

2025-05-21 Thread Fiona Ebner
Am 07.03.25 um 10:25 schrieb Markus Frank: > Signed-off-by: Markus Frank > --- > v3: > * removed 'optional => 1' > * changed description > > src/PVE/Storage/Plugin.pm | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm > index 65c

Re: [pve-devel] [PATCH manager] fix #4166: restore: add resource pool selector

2025-05-21 Thread Fiona Ebner
Am 30.04.25 um 12:45 schrieb Maximiliano Sandoval: > Signed-off-by: Maximiliano Sandoval > --- > www/manager6/window/Restore.js | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js > index 22900868..8d6dfabe 100644 >

[pve-devel] [PATCH access-control] schema: disallow '0' as a pool name

2025-05-21 Thread Fiona Ebner
's likely that it would cause other issues as well if properly handled there, so prohibit it in the schema. Signed-off-by: Fiona Ebner --- src/PVE/AccessControl.pm | 5 + 1 file changed, 5 insertions(+) diff --git a/src/PVE/AccessControl.pm b/src/PVE/AccessControl.pm index 1c79656..224ae

Re: [pve-devel] [PATCH qemu-server v6 3/3] mark volumes pending detach as unused if storage was removed

2025-05-21 Thread Fiona Ebner
Am 20.05.25 um 11:08 schrieb Michael Köppl: > If the storage backing the volume was removed, the volume will be marked > as unused when pending actions are processed (e.g. volume was detached). > Previously, the volume would simply disappear from the config. Why? If the storage doesn't exist, the

Re: [pve-devel] [PATCH qemu-server v6 2/3] print warning for PVE::Storage::path errors instead of failing

2025-05-21 Thread Fiona Ebner
; Co-authored-by: Stefan Hrdlicka As already, mentioned, needs to be adapted. > Signed-off-by: Michael Köppl With the comments addressed Reviewed-by: Fiona Ebner > --- > PVE/QemuServer.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/PVE

Re: [pve-devel] [PATCH qemu-server v6 1/3] adapt linked clone check to not die if an error occurs during check

2025-05-21 Thread Fiona Ebner
Am 20.05.25 um 11:08 schrieb Michael Köppl: > Align error handling behavior when checking for linked clones with the > rest of destroy_vm's error handling approach. Unlike the LXC destroy > implementation, this version continues execution when encountering > errors during the check, since: > > 1.

Re: [pve-devel] [PATCH container v6 4/4] add linked clone check when destroying container

2025-05-20 Thread Fiona Ebner
uction of the container template will > now fail, informing the user that the base volume is still in use by > the linked clone. > > Originally-by: Stefan Hrdlicka > Signed-off-by: Michael Köppl With the comments addressed, consider this: Reviewed-by: Fiona Ebner >

Re: [pve-devel] [PATCH container v6 3/4] fix #3711: lxc: allow removing unused mp if storage no longer exists

2025-05-20 Thread Fiona Ebner
Am 20.05.25 um 11:08 schrieb Michael Köppl: > Detaching a mount point with a removed underlying storage causes it to > be labeled as an unused disk. With this change, removing an unused disk > with a removed underlying storage causes it to be removed from the > configuration instead of failing. Del

Re: [pve-devel] [PATCH container v6 2/4] config: apply_pending: get unused volid through parse_volume()

2025-05-20 Thread Fiona Ebner
Am 20.05.25 um 15:45 schrieb Fiona Ebner: > Am 20.05.25 um 11:08 schrieb Michael Köppl: >> The volume ID returned by parse_volume() is used here as opposed to >> $conf->{$opt} used for regular mount points because $conf->{$opt} is not >> necessarily a valid volume ID in

Re: [pve-devel] [PATCH container v6 2/4] config: apply_pending: get unused volid through parse_volume()

2025-05-20 Thread Fiona Ebner
Am 20.05.25 um 11:08 schrieb Michael Köppl: > The volume ID returned by parse_volume() is used here as opposed to > $conf->{$opt} used for regular mount points because $conf->{$opt} is not > necessarily a valid volume ID in this case. This distinction is > important because is_volume_in_use does in

Re: [pve-devel] [PATCH container v6 1/4] fix #3711: lxc: print warning if storage for mounted volume does not exist anymore

2025-05-20 Thread Fiona Ebner
Am 20.05.25 um 11:08 schrieb Michael Köppl: > An explicit check for the existence of the storage is added to print a > warning and continue with the removal of the container without deleting > the mount point in case the storage does not exist anymore. For other > errors, the function should still

[pve-devel] [PATCH qemu-server] migrate: code cleanup: factor out variables for transferred memory and vfio

2025-05-20 Thread Fiona Ebner
Signed-off-by: Fiona Ebner --- I'll apply together with this follow-up if somebody gives me a T-b/R-b PVE/QemuMigrate.pm | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index f72a9d33..5a54f173 1

[pve-devel] [PATCH qemu-server 5/5] test: adapt all tests to use verbose disk size suffixes

2025-05-20 Thread Fiona Ebner
store test where the backup configuration uses the short suffixes to still test for that. Signed-off-by: Fiona Ebner --- test/cfg2cmd/bootorder-empty.conf | 6 +- test/cfg2cmd/bootorder-legacy.conf| 6 +- test/cfg2cmd/bootorder.conf | 6 +- .../cputy

[pve-devel] applied: [PATCH cluster] datacenter config: document that the migration network affects replications

2025-05-20 Thread Fiona Ebner
Applied, thanks! [1/1] datacenter config: document that the migration network affects replications commit: a042611c9d06ea24d02423387005fa97319f9f2e ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailma

Re: [pve-devel] [PATCH pve-docs] fix #5644: Moved the section on ZFS

2025-05-20 Thread Fiona Ebner
The commit title seems to be cut off/incomplete and is missing the "v4". Sending patches to existing threads is usually done only in exceptional cases and almost always just for follow-ups. Please send a stand-alone v5 next time. Am 14.05.25 um 18:49 schrieb Alexander Abraham: > I moved the secti

Re: [pve-devel] [PATCH pve-lxc-syscalld 2/4] service: avoid using generic runtime directory name

2025-05-15 Thread Fiona Ebner
Am 14.05.25 um 16:33 schrieb Thomas Lamprecht: > Am 13.05.25 um 12:56 schrieb Fiona Ebner: >> When the service is restarted, the directory will be recreated. The >> issue is that the /run/pve directory is not just used as the runtime >> directory of this service, but also

Re: [pve-devel] [PATCH manager 1/4] add tpmfiles.d config to create /run/pve directory

2025-05-15 Thread Fiona Ebner
Am 14.05.25 um 20:08 schrieb Thomas Lamprecht: > Am 13.05.25 um 12:56 schrieb Fiona Ebner: >> The pve-lxc-syscalld systemd service currently uses /run/pve as a >> runtime directory. This means, that when the service is restarted, the >> directory will be recreated. But the

[pve-devel] [PATCH v2 storage 1/2] rbd plugin: status: drop outdated fallback

2025-05-14 Thread Fiona Ebner
' field refers to the raw usage without factoring out replication (default: 3). The 'max_avail' value is after factoring out replication, so using 'bytes_used' in the same calculation would lead to very confusing results. Signed-off-by: Fiona Ebner --- No changes in v2. src

[pve-devel] [PATCH v2 storage 2/2] rbd plugin: status: use actual storage usage as basis for calculation

2025-05-14 Thread Fiona Ebner
lly stored user data, i.e. before compression. In the context of presenting storage usage, this is not the best choice and e.g. in the ZFS plugin 'used' is preferred over 'logicalused'. Switch to using 'bytes_used' as the basis for the calculation to better match e

Re: [pve-devel] [PATCH storage 2/2] rbd plugin: status: explain why percentage value can be different from Ceph

2025-05-14 Thread Fiona Ebner
Am 14.05.25 um 11:06 schrieb Fabian Grünbichler: >> Fiona Ebner hat am 14.05.2025 10:22 CEST geschrieben: >> >> >> Am 13.05.25 um 15:31 schrieb Fiona Ebner: >>> Signed-off-by: Fiona Ebner >>> --- >>> src/PVE/Storage/RBDPlugin.pm | 6 +

Re: [pve-devel] [PATCH storage 2/2] rbd plugin: status: explain why percentage value can be different from Ceph

2025-05-14 Thread Fiona Ebner
Am 13.05.25 um 15:31 schrieb Fiona Ebner: > Signed-off-by: Fiona Ebner > --- > src/PVE/Storage/RBDPlugin.pm | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/PVE/Storage/RBDPlugin.pm b/src/PVE/Storage/RBDPlugin.pm > index 154fa00..b56f8e4 100644 &g

[pve-devel] [PATCH storage 2/2] rbd plugin: status: explain why percentage value can be different from Ceph

2025-05-13 Thread Fiona Ebner
Signed-off-by: Fiona Ebner --- src/PVE/Storage/RBDPlugin.pm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/PVE/Storage/RBDPlugin.pm b/src/PVE/Storage/RBDPlugin.pm index 154fa00..b56f8e4 100644 --- a/src/PVE/Storage/RBDPlugin.pm +++ b/src/PVE/Storage/RBDPlugin.pm @@ -703,6 +703,12

[pve-devel] [PATCH storage 1/2] rbd plugin: status: drop outdated fallback

2025-05-13 Thread Fiona Ebner
' field refers to the raw usage without factoring out replication (default: 3). The 'max_avail' value is after factoring out replication, so using 'bytes_used' in the same calculation would lead to very confusing results. Signed-off-by: Fiona Ebner --- src/PVE/Storage/RBDPlug

[pve-devel] [PATCH manager 1/4] add tpmfiles.d config to create /run/pve directory

2025-05-13 Thread Fiona Ebner
aligns the permissions/owner with the ones /run/pve-cluster has, i.e. 0750 root:www-data. Signed-off-by: Fiona Ebner --- We could also opt for 0750 root:root, not sure. configs/Makefile | 1 + configs/pve-tmpfiles.conf | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 configs

[pve-devel] [PATCH container 4/4] seccomp config: adapt to new lxc-syscalld runtime directory

2025-05-13 Thread Fiona Ebner
se the new socket path as soon as it is available. Only use the old socket path if the old version of pve-lxc-syscalld is still used. The heuristic to check this is: 1. the new socket path doesn't exist 2. the old socket path exists 3. the old socket path is not a symbolic link Signed-off-

[pve-devel] [PATCH pve-lxc-syscalld 2/4] service: avoid using generic runtime directory name

2025-05-13 Thread Fiona Ebner
lost when the service is restarted. Signed-off-by: Fiona Ebner --- Versioned breaks for pve-container and pve-manager needed. etc/pve-lxc-syscalld.service.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/pve-lxc-syscalld.service.in b/etc/pve-lxc-syscalld.service.in

[pve-devel] [PATCH pve-lxc-syscalld 3/4] d/postinst: create link to new socket location on upgrade

2025-05-13 Thread Fiona Ebner
(and thus during package upgrade), since pve-lxc-syscalld doesn't currently implement graceful reloading. Signed-off-by: Fiona Ebner --- debian/postinst | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 debian/postinst diff --git a/debian/postinst b/debian/pos

[pve-devel] [RFC manager/lxc-syscalld/container 0/4] avoid using generic runtime directory name for pve-lxc-syscalld

2025-05-13 Thread Fiona Ebner
h requires specifying the new socket path new pve-lxc-syscalld breaks old pve-manager: /run/pve is not automatically created in the context of pull metrics yet I've never used systemd tmpfiles.d before, so that requires extra scrutiny 0:) manager: Fiona Ebner (1): add tpmfiles.d config to

[pve-devel] [PATCH docs] qm: cpu types: list that Haswell supports x86-64-v3 ABI

2025-05-13 Thread Fiona Ebner
ABM | CPUID_EXT3_LAHF_LM, > .features[FEAT_7_0_EBX] = > CPUID_7_0_EBX_FSGSBASE | CPUID_7_0_EBX_BMI1 | > CPUID_7_0_EBX_HLE | CPUID_7_0_EBX_AVX2 | CPUID_7_0_EBX_SMEP | > CPUID_7_0_EBX_BMI2 | CPUID_7_0_EBX_ERMS | CPUID_7_0_EBX_INVPCID | > CPUID_7_0_EBX_RTM, Signed-off-by: Fion

Re: [pve-devel] [PATCH qemu-server 02/14] blockdev: cmdline: convert drive to blockdev syntax

2025-05-13 Thread Fiona Ebner
Am 12.05.25 um 17:33 schrieb DERUMIER, Alexandre: > - >> (for example, they are an "size" option on drive not existing on >> blockdev for example, I have wrote details on the patch 3/14.) > >>> I do think we still need the size (would need to be tested), because >>> OVMF would get confused when th

Re: [pve-devel] [RFC qemu 1/1] block/rbd: add @keyring-file option to BlockdevOptionsRbd

2025-05-12 Thread Fiona Ebner
Am 12.05.25 um 15:39 schrieb DERUMIER, Alexandre: > Am 12.05.25 um 12:57 schrieb DERUMIER, Alexandre: >> for blockdev, do we still use a ceph config file in /var/run for >> potential others rbd client options ? > >>> Not currently, but we can add that later if we consider it worth it. >>> We >>> w

Re: [pve-devel] [RFC storage 2/3] iscsi direct plugin: implement method to get qemu blockdevice options

2025-05-12 Thread Fiona Ebner
Am 09.05.25 um 16:15 schrieb Fiona Ebner: > Signed-off-by: Fiona Ebner > --- > > for me, it fails with > VM 102 qmp command 'blockdev-add' failed - LUN is write protected > but adding as a drive fails. Will need to investigate. After fixing up my ACLs on the iSCS

[pve-devel] [PATCH manager 3/5] test: adapt tests to use verbose disk size suffixes

2025-05-12 Thread Fiona Ebner
The 'disk-size' format in the JSON schema in pve-common was changed to print more verbose, non-ambiguous disk size suffixes. Adapt the tests to match how configurations are actually written now. Bump the corresponding build-dependency in d/control. Signed-off-by: Fiona Ebner --- debi

Re: [pve-devel] [RFC common/manager/qemu-server 0/5] fix #3900: schema: support and prefer sizes with verbose suffixes {K, M, G, T}iB

2025-05-12 Thread Fiona Ebner
Am 12.05.25 um 14:41 schrieb Fiona Ebner: > Maybe best is to wait for PVE 9 with this and do a parse+write for all > guest configs (including their snapshots) in the pve8to9 script? The > change also breaks backwards migration to a node that doesn't > understand the new suffix.

[pve-devel] [PATCH qemu-server 4/5] test: fix tests for changes when printing disk size suffix

2025-05-12 Thread Fiona Ebner
The 'disk-size' format in the JSON schema in pve-common was changed to print more verbose, non-ambiguous disk size suffixes. This requires adapting some tests here. Bump the corresponding build-dependency in d/control. Signed-off-by: Fiona Ebner --- debian/control

[pve-devel] [PATCH manager 2/5] vzdump: use verbose size suffix when logging archive file size

2025-05-12 Thread Fiona Ebner
The single-letter suffixes are ambiguous and especially in the context of disks, the powers of ten are usually used. Use exact suffixes instead when logging the archive file size. Signed-off-by: Fiona Ebner --- PVE/VZDump.pm | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[pve-devel] [RFC common/manager/qemu-server 0/5] fix #3900: schema: support and prefer sizes with verbose suffixes {K, M, G, T}iB

2025-05-12 Thread Fiona Ebner
lso breaks backwards migration to a node that doesn't understand the new suffix. common: Fiona Ebner (1): fix #3900: schema: support and prefer sizes with verbose suffixes {K,M,G,T}iB src/PVE/JSONSchema.pm | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) manager:

[pve-devel] [PATCH common 1/5] fix #3900: schema: support and prefer sizes with verbose suffixes {K, M, G, T}iB

2025-05-12 Thread Fiona Ebner
s sense to wait for PVE 9 with this and do a parse+write for all guest configs (including their snapshots) in the pve8to9 script? Signed-off-by: Fiona Ebner --- src/PVE/JSONSchema.pm | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/PVE/JSONSchema.pm

Re: [pve-devel] [RFC qemu 1/1] block/rbd: add @keyring-file option to BlockdevOptionsRbd

2025-05-12 Thread Fiona Ebner
Am 12.05.25 um 12:57 schrieb DERUMIER, Alexandre: > for blockdev, do we still use a ceph config file in /var/run for > potential others rbd client options ? Not currently, but we can add that later if we consider it worth it. We would need to merge with the storage's already existing ceph.conf and

Re: [pve-devel] [RFC qemu/pve-storage] storage plugin method to get qemu blockdevice options for volume

2025-05-09 Thread Fiona Ebner
And here is a small script I used for testing to see if QMP blockdev-add can deal with the results: > [I] root@pve8a1 ~# cat test-storage-blockdev.pl > #!/usr/bin/perl > > use strict; > use warnings; > > use JSON; > use PVE::QemuServer::Monitor qw(mon_cmd); > use PVE::Storage; > > my $vmid = s

[pve-devel] [RFC storage 3/3] rbd plugin: implement new method to get qemu blockdevice options

2025-05-09 Thread Fiona Ebner
Co-developed-by: Alexandre Derumier Signed-off-by: Fiona Ebner --- The mon host parsing is adapted from other places where we do that, but I did not test it with IPv6 yet. src/PVE/Storage/RBDPlugin.pm | 43 1 file changed, 43 insertions(+) diff --git a

[pve-devel] [RFC qemu/pve-storage] storage plugin method to get qemu blockdevice options for volume

2025-05-09 Thread Fiona Ebner
via NBD or FUSE or external backup provider restore providing an NBD export for the provider to write to. This is an early sneak peek to get feedback on the idea itself and to keep Alexandre in the loop :) See the individual patches for more comments. qemu: Fiona Ebner (1): block/rbd: ad

[pve-devel] [RFC storage 2/3] iscsi direct plugin: implement method to get qemu blockdevice options

2025-05-09 Thread Fiona Ebner
Signed-off-by: Fiona Ebner --- for me, it fails with VM 102 qmp command 'blockdev-add' failed - LUN is write protected but adding as a drive fails. Will need to investigate. src/PVE/Storage/ISCSIDirectPlugin.pm | 17 + 1 file changed, 17 insertions(+) diff --git

[pve-devel] [RFC qemu 1/1] block/rbd: add @keyring-file option to BlockdevOptionsRbd

2025-05-09 Thread Fiona Ebner
Signed-off-by: Fiona Ebner --- I'll also submit this upstream. block/rbd.c | 8 qapi/block-core.json | 4 2 files changed, 12 insertions(+) diff --git a/block/rbd.c b/block/rbd.c index 24e820d056..53a9a785f0 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -272,6 +2

[pve-devel] [RFC storage 1/3] plugin: add method to get qemu blockdevice options for volume

2025-05-09 Thread Fiona Ebner
There intentionally is only handling for absolute paths in the default plugin implementation. Any plugin requiring more needs to implement the method itself. Signed-off-by: Fiona Ebner --- I discussed this with Fabian off-list. With PVE 9 being a major release and most popular plugins not using

[pve-devel] applied: [PATCH storage] iscsi direct plugin: add trailing newline to error messages

2025-05-09 Thread Fiona Ebner
Signed-off-by: Fiona Ebner --- src/PVE/Storage/ISCSIDirectPlugin.pm | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/PVE/Storage/ISCSIDirectPlugin.pm b/src/PVE/Storage/ISCSIDirectPlugin.pm index 829e0c4..d54dcd8 100644 --- a/src/PVE/Storage

[pve-devel] [PATCH storage] esxi plugin: remove invalid fixme

2025-05-09 Thread Fiona Ebner
No other plugin activates the storage inside the path() method either. The caller needs to ensure that the storage is activated before using the result of path(). Signed-off-by: Fiona Ebner --- src/PVE/Storage/ESXiPlugin.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PVE/Storage

Re: [pve-devel] [PATCH qemu-server 02/14] blockdev: cmdline: convert drive to blockdev syntax

2025-05-09 Thread Fiona Ebner
Am 09.05.25 um 10:20 schrieb DERUMIER, Alexandre: > Message initial > De: Fiona Ebner > À: "DERUMIER, Alexandre" , pve- > de...@lists.proxmox.com > Objet: Re: [pve-devel] [PATCH qemu-server 02/14] blockdev: cmdline: > convert drive to blockdev syntax

Re: [pve-devel] [PATCH qemu-server 02/14] blockdev: cmdline: convert drive to blockdev syntax

2025-05-08 Thread Fiona Ebner
Am 06.05.25 um 16:20 schrieb DERUMIER, Alexandre: > > Am 22.04.25 um 13:51 schrieb Alexandre Derumier via pve-devel: >> >> fixme: >>  - rbd blockdev don't allow extra options (keyring file for example), >>    do we need to patch qemu ? or write client option in a file ? > > I think following upst

Re: [pve-devel] [PATCH qemu-server 02/14] blockdev: cmdline: convert drive to blockdev syntax

2025-05-08 Thread Fiona Ebner
Am 06.05.25 um 17:40 schrieb DERUMIER, Alexandre: >>> Do we need to handle old client (for example, a pve8 doing a live >>> migrate + lcoal storage migration  sending a nbd:// uri to a pve9 >>> with >>> blockdev support ) ? > > Thinking about this, maybe this is a good reason for version guard too

Re: [pve-devel] [PATCH qemu-server 02/14] blockdev: cmdline: convert drive to blockdev syntax

2025-05-08 Thread Fiona Ebner
Am 07.05.25 um 10:41 schrieb Fabian Grünbichler: >> Fiona Ebner hat am 06.05.2025 14:57 CEST geschrieben: >>> + >>> + ($storeid) = PVE::Storage::parse_volume_id($volid, 1); >>> + my $vtype = $storeid ? (PVE::Storage::parse_volname($storecfg, >>>

  1   2   3   4   5   6   7   8   9   10   >