From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 9A76D1FF136 for ; Mon, 04 May 2026 15:08:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3EEF021C0C; Mon, 4 May 2026 15:08:08 +0200 (CEST) From: Fiona Ebner To: pve-devel@lists.proxmox.com Subject: [PATCH-SERIES qemu-server 0/3] ovmf: create temporary EFI disk below /run instead of /tmp to avoid migration issue Date: Mon, 4 May 2026 15:03:45 +0200 Message-ID: <20260504130751.226845-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1777899977725 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.009 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy 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 Message-ID-Hash: ZBAGCG72PXXRUXEUFF77WXD6KL25CPOH X-Message-ID-Hash: ZBAGCG72PXXRUXEUFF77WXD6KL25CPOH X-MailFrom: f.ebner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: As reported in the enterprise support, QEMU might fail to inactivate the block node for the temporary EFI disk during migration: > kvm: migration_block_inactivate: bdrv_inactivate_all() failed: -1 > kvm: Error in migration completion: Bad address The issue occurs when the file for the temporary EFI disk has been removed from the file system. This happens on new installations since Debian Trixie [0], where files in /tmp are regularly cleaned. [0]: https://www.debian.org/releases/trixie/release-notes/issues.html#the-directories-tmp-and-var-tmp-are-now-regularly-cleaned qemu-server: Fiona Ebner (3): d/tmpfiles: add configuration to auto-create /run/qemu-server directory ovmf: use file module directly for file_copy() ovmf: create temporary EFI disk below /run instead of /tmp to avoid migration issue debian/tmpfiles | 3 +++ src/PVE/QemuServer/Helpers.pm | 2 ++ src/PVE/QemuServer/OVMF.pm | 10 ++++++---- src/test/cfg2cmd/efi-ovmf-without-efidisk.conf.cmd | 2 +- src/test/run_config2command_tests.pl | 12 ++++++++++++ 5 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 debian/tmpfiles Summary over all repositories: 5 files changed, 24 insertions(+), 5 deletions(-) -- Generated by git-murpp 0.5.0