I'm following KB 5103014 ("Secure Boot certificate updates for Linux on Azure virtual machines") to replace the expiring Secure Boot 2011 certificates with 2023 on a Trusted Launch Linux VM. The fwupd update consistently fails when writing the KEK to the UEFI variable store. The VM still boots normally on the existing 2011 certificates, so nothing is currently degraded — I need the supported procedure to complete the update.
Environment
- Azure Trusted Launch VM (Secure Boot + vTPM), Gen2, East US
- Ubuntu 22.04.3 LTS, kernel 6.8.0-1031-azure
- VM created 2023-10-19 (pre-April 2024, in scope per KB 5103014)
- fwupd 2.1.4
Confirmed 2023 certs are absent
-
mokutil --db | grep "UEFI CA 2023" → no output
-
mokutil --kek | grep "KEK 2K CA 2023" → no output
Checks already done (rules out the common causes)
- efivarfs mounted rw:
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
- ESP mounted:
/boot/efi on /dev/sdb15 (vfat, rw)
- KEK variable is not immutable —
lsattr shows no i flag
The failure sudo fwupdmgr refresh succeeds. sudo fwupdmgr update correctly offers "Upgrade KEK CA from 2011 to 2023 … signed by Microsoft Corporation Third Party Marketplace PCA", I confirm, and the write fails:
WARNING: UEFI ESP partition not detected or configured
...
failed to write-firmware: failed to write (null): failed to write data to efivarsfs: Error writing to file descriptor: Invalid argument
This matches a known fwupd issue reported across several platforms (e.g. fwupd GitHub issues #9483, #9191), with one report attributing it to an EFI variable-store space limitation.
Questions
- What's the supported way to complete the KEK/db 2023 update on a Trusted Launch Linux VM when fwupd fails this way?
- If the cause is EFI variable-store space, what's the safe, supported way to free space on a Trusted Launch VM without risking boot? (I'd rather not manually delete UEFI variables unless confirmed safe for this config.)
- Will the efitools /
efi-updatevar manual method in KB 5103014 succeed where fwupd fails, or hit the same limit?
- Any vTPM / measured-boot impact from the recommended procedure?
I have a pre-change disk snapshot in place. Happy to provide fwupdmgr get-devices or dmesg'm following KB 5103014 ("Secure Boot certificate updates for Linux on Azure virtual machines") to replace the expiring Secure Boot 2011 certificates with 2023 on a Trusted Launch Linux VM. The fwupd update consistently fails when writing the KEK to the UEFI variable store. The VM still boots normally on the existing 2011 certificates, so nothing is currently degraded — I need the supported procedure to complete the update.
Environment
- Azure Trusted Launch VM (Secure Boot + vTPM), Gen2, East US
- Ubuntu 22.04.3 LTS, kernel 6.8.0-1031-azure
- VM created 2023-10-19 (pre-April 2024, in scope per KB 5103014)
- fwupd 2.1.4
Confirmed 2023 certs are absent
-
mokutil --db | grep "UEFI CA 2023" → no output
-
mokutil --kek | grep "KEK 2K CA 2023" → no output
Checks already done (rules out the common causes)
- efivarfs mounted rw:
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
- ESP mounted:
/boot/efi on /dev/sdb15 (vfat, rw)
- KEK variable is not immutable —
lsattr shows no i flag
The failure sudo fwupdmgr refresh succeeds. sudo fwupdmgr update correctly offers "Upgrade KEK CA from 2011 to 2023 … signed by Microsoft Corporation Third Party Marketplace PCA", I confirm, and the write fails:
WARNING: UEFI ESP partition not detected or configured
...
failed to write-firmware: failed to write (null): failed to write data to efivarsfs: Error writing to file descriptor: Invalid argument
This matches a known fwupd issue reported across several platforms (e.g. fwupd GitHub issues #9483, #9191), with one report attributing it to an EFI variable-store space limitation.
Questions
- What's the supported way to complete the KEK/db 2023 update on a Trusted Launch Linux VM when fwupd fails this way?
- If the cause is EFI variable-store space, what's the safe, supported way to free space on a Trusted Launch VM without risking boot? (I'd rather not manually delete UEFI variables unless confirmed safe for this config.)
- Will the efitools /
efi-updatevar manual method in KB 5103014 succeed where fwupd fails, or hit the same limit?
- Any vTPM / measured-boot impact from the recommended procedure?
I have a pre-change disk snapshot in place. Happy to provide fwupdmgr get-devices or dmesg