On Wed Jan 21, 2026 at 4:44 PM CET, Fiona Ebner wrote:
> Make it possible to enroll via the API and UI by setting the
> ms-cert=2023w marker on the EFI disk.
>
> The previous Microsoft UEFI CA 2011 will expire in June 2026, and the
> previous Windows UEFI CA 2011 will expire in October 2026, so there
> should be a way to update that can be automated and done while guests
> are running.
>
> pve-manager needs a dependency bump for qemu-server for the API call
> to have the desired effect (or the marker will just get set without
> actually enrolling).
Tested this series with some Windows 11, Debian and Proxmox VE VMs that
I had lying around which still did not have the new UEFI CA certs
enrolled yet.
Tested with each the Windows 11 and Linux VMs that
- `qm enroll-efi-keys $vmid` fails for running VMs
- `qm enroll-efi-keys $vmid` fails for VMs without EFI disks
- `qm enroll-efi-keys $vmid` does nothing for VMs without pre-enrolled
keys set
- `qm enroll-efi-keys $vmid` does update to '2023w' if ms-cert=2023
- `qm enroll-efi-keys $vmid` works for stopped VMs
- Enrolling EFI keys through the CLI/API/UI works for them and are
enrolled correctly when doing a full shutdown-start cycle
- Enrolling EFI keys is disabled in UI if VM does not have pre-enrolled
keys set or ms-cert=2023w, but enabled for ms-cert=2011 or
ms-cert=2023
I checked whether those were correctly enrolled inside the VM with
[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes)
-match 'Microsoft UEFI CA 2023'
[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes)
-match 'Windows UEFI CA 2023'
for Windows VMs, and
mokutil --all --list-enrolled | grep '\(Microsoft\|Windows\) UEFI CA 2023'
for Linux VMs.
The Windows VMs did _not_ have BitLocker configured though.
Two small nits unrelated to the direct changes of this series:
- a `qm set 101 --efidisk0 '...,pre-enrolled-keys=1,ms-cert=2023'` will
also enroll the Windows UEFI CA 2023 certificate, should we set
`ms-cert=2023w` afterwards then as that's the correct state? But as
it's only a marker state that might be unnecessary.
- there are few spots only naming the Microsoft UEFI CA 2023 but not the
Windows UEFI CA 2023 certificate, e.g. the output and description of
`qm enroll-efi-keys`.
Otherwise, the changes look good to me, so consider this series as:
Tested-by: Daniel Kral <[email protected]>
Reviewed-by: Daniel Kral <[email protected]>