From: Fiona Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH qemu-server master+stable-bookworm] check efi vars: promote message about missing MS 2023 certs to warning
Date: Tue, 21 Apr 2026 10:45:33 +0200 [thread overview]
Message-ID: <20260421084622.20641-1-f.ebner@proxmox.com> (raw)
The expiration date of the MS 2011 UEFI certificates is June 2026 and
is getting closer, so the message about missing MS 2023 certificates
deserves to be a warning.
Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
src/PVE/QemuServer.pm | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm
index 2a469fff..b3ea3f76 100644
--- a/src/PVE/QemuServer.pm
+++ b/src/PVE/QemuServer.pm
@@ -5423,14 +5423,12 @@ my sub check_efi_vars {
my $efidisk = parse_drive('efidisk0', $conf->{efidisk0});
if (PVE::QemuServer::OVMF::should_enroll_ms_2023_cert($efidisk)) {
- # TODO: make the first print a log_warn with PVE 9.2 to make it more noticeable!
- print "EFI disk without 'ms-cert=2023k' option, suggesting that not all UEFI 2023\n";
- print "certificates from Microsoft are enrolled yet. The UEFI 2011 certificates expire\n";
- print
- "in June 2026! The new certificates are required for secure boot update for Windows\n";
- print "and common Linux distributions. Use 'Disk Action > Enroll Updated Certificates'\n";
- print "in the UI or, while the VM is shut down, run 'qm enroll-efi-keys $vmid' to enroll\n";
- print "the new certificates.\n\n";
+ log_warn("EFI disk without 'ms-cert=2023k' option, suggesting that not all UEFI 2023\n"
+ . "certificates from Microsoft are enrolled yet.");
+ print "The UEFI 2011 certificates expire in June 2026! The new certificates are required\n";
+ print "for secure boot update for Windows and common Linux distributions.\n";
+ print "Use 'Disk Action > Enroll Updated Certificates' in the UI or, while the VM is\n";
+ print "shut down, run 'qm enroll-efi-keys $vmid' to enroll the new certificates.\n\n";
print "For Windows with BitLocker, run the following command inside Powershell:\n";
print " manage-bde -protectors -disable <drive>\n";
print "for each drive with BitLocker (for example, <drive> could be 'C:').\n";
--
2.47.3
reply other threads:[~2026-04-21 8:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260421084622.20641-1-f.ebner@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox