Guide: Setting up Secure Boot in Libvirt for NixOS (ZFS on LUKS + Impermanence). Fix for resetting Keys
saylesss88.github.io·2d·
Discuss: r/NixOS
🛡️AMD SEV
Preview
Report Post

Secure Boot in a Libvirt (KVM) VM with ZFS on LUKS Impermanence

Initial VM Setup

When creating the VM in virt-manager:

Before clicking “Finish”, check the “Customize configuration before install” box 1.

In the Overview section, change Firmware from BIOS to UEFI x86_64: /usr/share/edk2/ovmf/OVMF_CODE_4M.secboot.qcow2 1.

Proceed with the NixOS installation as normal. For lanzaboote to build successfully, I had to pin nixpkgs to 25.05

Known Issue: After running nixos-install and rebooting, the SATA CDROM source path may be cleared. If the VM fails to boot, manually reselect the NixOS ISO in the SATA settings and reboot. ​


[Configure Firmware for Custom Secure Boot Ke…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help