[pve-devel] [PATCH v2 container 1/2] setup: fix creating unmanaged containers

2021-10-05 Thread Oguz Bektas
ssh_host_key_generate did not explicitly return in unmanaged plugin, causing the post_create_hook to fail because of an invalid hash reference (cannot use "1" as a HASH ref, "1" was likely being returned implicitly as the scalar value of 'my ($self) = @_;') Signed-off-by: Oguz Bektas --- src/PVE

[pve-devel] [PATCH v2 container 0/2] unmanaged containers

2021-10-05 Thread Oguz Bektas
minor fix for creating unmanaged containers v1->v2: * return nothing instead of an empty hash ref * separate patch for dropping early unmanaged return Oguz Bektas (2): setup: fix creating unmanaged containers setup: drop remaining unmanaged return src/PVE/LXC/Setup.pm | 2 -- src/

[pve-devel] [PATCH v2 container 2/2] setup: drop remaining unmanaged return

2021-10-05 Thread Oguz Bektas
not needed anymore since we have 'unmanaged' plugin, so $self->{plugin} would be 'unmanaged' and get handled by that instead of an early return. Signed-off-by: Oguz Bektas --- src/PVE/LXC/Setup.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm in

[pve-devel] applied-series: [PATCH v2 container 0/2] unmanaged containers

2021-10-05 Thread Thomas Lamprecht
On 05.10.21 10:09, Oguz Bektas wrote: > minor fix for creating unmanaged containers > > v1->v2: > * return nothing instead of an empty hash ref > * separate patch for dropping early unmanaged return > > Oguz Bektas (2): > setup: fix creating unmanaged containers > setup: drop remaining unmana

[pve-devel] [PATCH v2 qemu-server] qemu-agent: allow hotplug of fstrim_cloned_disk option.

2021-10-05 Thread Alexandre Derumier
This option don't have any impact on device itself. Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 19 +++ 1 file changed, 19 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 076ce59..907d522 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm

Re: [pve-devel] [PATCH qemu-server] qemu-agent: allow hotplug of fstrim_cloned_disk option.

2021-10-05 Thread DERUMIER, Alexandre
+sub vmconfig_update_agent { +my ($conf, $opt, $value) = @_; + +if ($conf->{$opt} && (my $old_agent = parse_guest_agent($conf))) { + + my $agent = parse_guest_agent({$opt => $value}); + + # skip non hotpluggable value + if (safe_string_ne($agent->{enabled}, $old_agent-

Re: [pve-devel] [PATCH v2 qemu-server] qemu-agent: allow hotplug of fstrim_cloned_disk option.

2021-10-05 Thread Fabian Grünbichler
On October 5, 2021 11:46 am, Alexandre Derumier wrote: > This option don't have any impact on device itself. > > Signed-off-by: Alexandre Derumier > --- > PVE/QemuServer.pm | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm > inde

[pve-devel] [PATCH manager v3 2/7] ui: lxc/MPEdit: fire diskidchange event

2021-10-05 Thread Dominik Csapak
when the diskid changes Signed-off-by: Dominik Csapak --- www/manager6/lxc/MPEdit.js | 5 + 1 file changed, 5 insertions(+) diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js index 64e57229..2b4f8ebe 100644 --- a/www/manager6/lxc/MPEdit.js +++ b/www/manager6/lxc/MPEdit.js

[pve-devel] [PATCH manager v3 3/7] ui: lxc/MPEdit: add selectFree toggle

2021-10-05 Thread Dominik Csapak
that sets the given vmconfig at the start and selects the first free mpid Signed-off-by: Dominik Csapak --- www/manager6/lxc/MPEdit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js index 2b4f8ebe..dba69cb4 100644 --- a/www/manager6

[pve-devel] [PATCH manager v3 1/7] ui: lxc/MPEdit: add updateVMConfig

2021-10-05 Thread Dominik Csapak
helper for the upcoming MultiMPEdit Signed-off-by: Dominik Csapak --- www/manager6/lxc/MPEdit.js | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js index 0e772017..64e57229 100644 --- a/www/manager6/lxc/MPEdit.js +++

[pve-devel] [PATCH manager v3 6/7] ui: add qemu/MultiHDEdit and use it in the wizard

2021-10-05 Thread Dominik Csapak
uses the MultiDiskPanel as base and implements the necessary functions/variables this allows now to create a vm also without any disk Signed-off-by: Dominik Csapak --- www/manager6/Makefile | 1 + www/manager6/qemu/CreateWizard.js | 7 +--- www/manager6/qemu/HDEdit.js | 9 +

[pve-devel] [PATCH manager v3 4/7] ui: add MultiDiskPanel

2021-10-05 Thread Dominik Csapak
this adds a new panel where a user can add multiple disks, intended for use in the wizard. Has a simple grid for displaying the already added disks and displays a warning triangle if the disk is not valid. this is a base panel for adding multiple disks/mps for vms/ct respectively. this combines

[pve-devel] [PATCH manager v3 7/7] ui: window/Wizard: make it a little wider

2021-10-05 Thread Dominik Csapak
for the multi disk panel, we want it to be just a little wider, so that all form fields are still readable Signed-off-by: Dominik Csapak --- www/manager6/window/Wizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/window/Wizard.js b/www/manager6/window/Wizar

[pve-devel] [PATCH manager v3 5/7] ui: add lxc/MultiMPEdit and use in lxc/CreateWizard

2021-10-05 Thread Dominik Csapak
uses the MultiDiskPanel as a base and implements the necessary functions/values Signed-off-by: Dominik Csapak --- www/manager6/Makefile| 1 + www/manager6/lxc/CreateWizard.js | 8 +--- www/manager6/lxc/MultiMPEdit.js | 79 3 files changed, 82 inser

[pve-devel] [PATCH manager v3 0/7] multi disk/mp in wizard

2021-10-05 Thread Dominik Csapak
this series is a continuation of my previous multi tab / disk series[0] Introduces multi disk panels for vm and containers in the wizard. The UX is modeled after Dominics first attempt, but a very different approach code-wise. instead of having a seperate 'data' panel that contains the vm config,

Re: [pve-devel] [PATCH v2 qemu-server] qemu-agent: allow hotplug of fstrim_cloned_disk option.

2021-10-05 Thread DERUMIER, Alexandre
Le mardi 05 octobre 2021 à 13:12 +0200, Fabian Grünbichler a écrit : > shouldn't this be the other way round? check keys which are > different, > and have a list of hotpluggable ones, skip if any others are > different? > > that way if we add another property to the agent it's fail-safe > (defau

[pve-devel] [PATCH qemu-server 0/3] fix #3258: check for in-use pci devices on vm start

2021-10-05 Thread Dominik Csapak
by having a vmid <-> pciid mapping in /var/run i did not check if the vm has the pci device really in the config, but we should not need that, since we remove the reservation again in the cleanup step. if wanted we can of course parse the target vms config and check if the pci device is still conf

[pve-devel] [PATCH qemu-server 1/3] pci: to not capture first group in PCIRE

2021-10-05 Thread Dominik Csapak
we do not need this group, but want to use the regex where we have multiple groups, so make it a non-capture group Signed-off-by: Dominik Csapak --- PVE/QemuServer/PCI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer/PCI.pm b/PVE/QemuServer/PCI.pm index 2ee14

[pve-devel] [PATCH qemu-server 3/3] fix #3258: block vm start when pci device is already in use

2021-10-05 Thread Dominik Csapak
on vm start, we reserve all pciids that we use, and remove the reservation again in vm_stop_cleanup this way, when a vm starts with a pci device that is already configured for a different running vm, will not be started and the user gets the error that the device is already in use Signed-off-by:

[pve-devel] [PATCH qemu-server 2/3] pci: add helpers to (un)reserve pciids for a vm

2021-10-05 Thread Dominik Csapak
saves a list of pciid <-> vmid mappings in /var/run that we can check when we start a vm Signed-off-by: Dominik Csapak --- PVE/QemuServer/PCI.pm | 89 +++ 1 file changed, 89 insertions(+) diff --git a/PVE/QemuServer/PCI.pm b/PVE/QemuServer/PCI.pm index 56

Re: [pve-devel] [PATCH qemu-server 2/3] pci: add helpers to (un)reserve pciids for a vm

2021-10-05 Thread Thomas Lamprecht
On 05.10.21 15:11, Dominik Csapak wrote: > saves a list of pciid <-> vmid mappings in /var/run > that we can check when we start a vm a few style nits but also one serious note inline > > Signed-off-by: Dominik Csapak > --- > PVE/QemuServer/PCI.pm | 89 +

[pve-devel] applied: [PATCH qemu-server 1/3] pci: to not capture first group in PCIRE

2021-10-05 Thread Thomas Lamprecht
On 05.10.21 15:11, Dominik Csapak wrote: > we do not need this group, but want to use the regex where we have > multiple groups, so make it a non-capture group > > Signed-off-by: Dominik Csapak > --- > PVE/QemuServer/PCI.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > applied, t

[pve-devel] [PATCH qemu-server] ovmf: support secure boot with 4m and 4m-ms efidisk types

2021-10-05 Thread Stefan Reiter
Provide support for secure boot by using the new "4m" and "4m-ms" variants of the OVMF code/vars templates. This is specified on the efidisk via the 'efitype' and 'ms-keys' parameters. Signed-off-by: Stefan Reiter --- Should depend on updated pve-edk2-firmware. PVE/API2/Qemu.pm| 3 ++-

[pve-devel] applied: [PATCH qemu-server] ovmf: support secure boot with 4m and 4m-ms efidisk types

2021-10-05 Thread Thomas Lamprecht
On 05.10.21 18:02, Stefan Reiter wrote: > Provide support for secure boot by using the new "4m" and "4m-ms" > variants of the OVMF code/vars templates. This is specified on the > efidisk via the 'efitype' and 'ms-keys' parameters. > > Signed-off-by: Stefan Reiter > --- > > Should depend on updat

[pve-devel] trousers error in latest test repo?

2021-10-05 Thread Victor Hooi
Hi, I just installed a new box (Intel NUC7i5BNK) with Proxmox 7.0-2, and then ran an apt update/dist-upgrade, using the PVE test repos: There seems to be some error whilst upgrading some "trousers" module: Setting up trousers (0.3.14+fixed1-1.2) ... > Job for trousers.service failed because the