[pve-devel] [RFC qemu-server 2/2] fix #3075: add TPM v1.2 and v2.0 support via swtpm

2021-07-15 Thread Stefan Reiter
Starts an instance of swtpm per VM in it's systemd scope, it will terminate by itself if the VM exits, or be terminated manually if startup fails. Before first use, a TPM state is created via swtpm_setup. The state lives in "/etc/pve/priv/tpm/-/". TPM state is cleared if the 'tpm' config option i

[pve-devel] [RFC 0/2] Initial TPM support for VMs

2021-07-15 Thread Stefan Reiter
Makes Windows 11 (test build) happy: https://i.imgur.com/kZ0Mpnr.jpeg Tested under Linux as well, works with (updated) OVMF and SeaBIOS, though SeaBIOS requires clearing via the BIOS setup screen and may not support all features it seems (e.g. Windows shows the TPM, but doesn't allow BitLocker, pr

[pve-devel] [RFC edk2-firmware 1/2] enable TPM and TPM2 support

2021-07-15 Thread Stefan Reiter
Necessary for an OS to use a TPM attached to a OVMF VM. Signed-off-by: Stefan Reiter --- debian/rules | 4 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index fb85b29..ece77be 100755 --- a/debian/rules +++ b/debian/rules @@ -54,6 +54,8 @@ build-ovmf: setup-build

[pve-devel] [PATCH proxmox-acme] plugin-caller: add missing methods from acme.sh

2021-07-15 Thread Stoiko Ivanov
As reported in our community forum [0] certain dns plugins use code from `acme.sh`, which is currently not in our proxmox-acme. I initially only added _sign and it's callees, but then though about trying to get all missing methods somehow (only resethttp() was missing in addition). The heuristic

[pve-devel] applied: [PATCH pve-manager 1/1] ui: node: repos: add online help

2021-07-15 Thread Thomas Lamprecht
On 14.07.21 14:58, Fabian Ebner wrote: > Signed-off-by: Fabian Ebner > --- > > Depends on > https://lists.proxmox.com/pipermail/pmg-devel/2021-July/001815.html > to work correctly, but no hard dependency. > > www/manager6/node/Config.js | 1 + > 1 file changed, 1 insertion(+) > > applied this

Re: [pve-devel] [PATCH manager v2 1/3] ui: add Schema singleton

2021-07-15 Thread Thomas Lamprecht
On 14.07.21 14:52, Dominik Csapak wrote: > and override the Proxmox.Schema.authDomains in its constructor > > Signed-off-by: Dominik Csapak > --- > new in v2 > IMO the patch order is a bit weird as we add the overrides here already but remove the existing ones only in the second one, rather I'

[pve-devel] [PATCH qemu-server] fix #2563: allow live migration with local cloud-init disk

2021-07-15 Thread Mira Limbeck
The content of the ISO should be the same on both nodes, so offline migrate the ISO, but don't regenerate it on VM start on the target node. This way even with snippets the content will not change during live migration. Signed-off-by: Mira Limbeck --- PVE/QemuMigrate.pm | 3 ++- PVE/QemuServer.

[pve-devel] [PATCH widget-toolkit] api-viewer: drop extra slash in api path

2021-07-15 Thread Dominik Csapak
'endpoint' already begins with a slash, so drop it after /api2/json Signed-off-by: Dominik Csapak --- src/api-viewer/APIViewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-viewer/APIViewer.js b/src/api-viewer/APIViewer.js index 61a1600..8f3759e 100644 --- a/src/

[pve-devel] applied: [PATCH] fix compressor loop-order

2021-07-15 Thread Thomas Lamprecht
On 14.07.21 18:52, Stoiko Ivanov wrote: > commit dbac106eb6e3cff405e57c0bb6a6dbe3cf307c52 introduced a flaw in > the logic - once a file is downloaded the 'last;' statement exited the > inner loop iterating over the compoentens instead of the outer one > iterating over the compressors. > > since b

[pve-devel] [PATCH proxmox-widget-toolkit] apt: match "Debian Backports" origin

2021-07-15 Thread Fabian Grünbichler
some users might have that enabled, and we know it is from Debian and not '?' Signed-off-by: Fabian Grünbichler --- src/node/APTRepositories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index c7222fc..4288e1a 100

Re: [pve-devel] [PATCH v2 manager] api: apt: repos: fix interfacing with perlmod

2021-07-15 Thread Fabian Ebner
Am 15.07.21 um 08:51 schrieb Fabian Ebner: Using pvesh create /nodes/pve701/apt/repositories --path "/etc/apt/sources.list" --index 0 --enabled 1 reliably leads to error: invalid type: string "0", expected usize Coerce to int to avoid this. I was not able to trigger the issue with