From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 8711D7A18A for ; Thu, 6 May 2021 17:27:36 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5FDE322D67 for ; Thu, 6 May 2021 17:27:06 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 14E8722D1E for ; Thu, 6 May 2021 17:27:04 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id D655E4651C for ; Thu, 6 May 2021 17:27:03 +0200 (CEST) From: Stefan Reiter To: pbs-devel@lists.proxmox.com Date: Thu, 6 May 2021 17:26:15 +0200 Message-Id: <20210506152624.12605-1-s.reiter@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.014 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [main.rs, api.rs, buildcfg.rs, watchdog.rs] Subject: [pbs-devel] [PATCH 0/9] Debug mode and smaller fixes for single file restore X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2021 15:27:36 -0000 Adds a debug mode for restore VMs, triggerable by setting PBS_QEMU_DEBUG=1 on a proxmox-file-restore command that starts a new VM. You can then access a root shell in the VM via the socket printed. Also includes several smaller fixes for file restore: * try to better avoid stale VMs * support more drives per VM * work around a tokio bug leaving suspended tasks behind * avoid watchdog expiry during downloads proxmox-backup: Stefan Reiter (7): file-restore: add debug mode with serial access file-restore: try to kill VM when stale file-restore: add more RAM for VMs with many drives or debug file-restore: support more drives file-restore-daemon: work around tokio DuplexStream bug file-restore-daemon: watchdog: add inhibit for long downloads file-restore-daemon: limit concurrent download calls debian/proxmox-backup-file-restore.postinst | 12 ++- .../proxmox_file_restore/block_driver_qemu.rs | 2 + src/bin/proxmox_file_restore/qemu_helper.rs | 85 ++++++++++++++++--- src/bin/proxmox_restore_daemon/api.rs | 25 +++++- src/bin/proxmox_restore_daemon/watchdog.rs | 24 +++++- src/buildcfg.rs | 4 + 6 files changed, 135 insertions(+), 17 deletions(-) proxmox-backup-restore-image: Stefan Reiter (2): kernel: power off on panic add debug initramfs as seperate package Makefile | 13 +++-- debian/control | 10 +++- ...proxmox-backup-restore-image-debug.install | 1 + ...ckup-restore-image-debug.lintian-overrides | 2 + ...roxmox-backup-restore-image-debug.triggers | 1 + src/Makefile | 5 +- src/build_initramfs.sh | 55 +++++++++++++------ src/init-shim-rs/src/main.rs | 46 +++++++++++++++- ...restore-halt-machine-on-kernel-panic.patch | 32 +++++++++++ 9 files changed, 138 insertions(+), 27 deletions(-) create mode 100644 debian/proxmox-backup-restore-image-debug.install create mode 100644 debian/proxmox-backup-restore-image-debug.lintian-overrides create mode 100644 debian/proxmox-backup-restore-image-debug.triggers create mode 100644 src/patches/kernel/0004-PBS-restore-halt-machine-on-kernel-panic.patch -- 2.20.1