Hello,
Yes this thread is google top link for
proxmox how to disable secure boot
along with
Is there a way to disable secure on the VM so it will boot UEFI mode?
Tried doing that while the VM starts up, no response to ESC key...seems the m2.nvme is too fast...
I am installing pfSense. One second makes it impossible unless I can make the change to the VM before it boots.

Anyone that install nvidia drivers in their passthrough VM
and who chose the OVMF bios (and checked pre-enroll keys)
Will find themselves staring at a console instead of their login manager
since the nvidia driver will fail to load
Now we have the instruction from Neobin to go in the bios
Code:
At the start of the VM press ESC (several times) to get into the UEFI, there: "Device Management" -> "Secure Boot Configuration" -> "Attempt Secure Boot" -> Uncheck it (remove the: "X") -> Go back to the main menu by pressing ESC multiple times -> "Reset".
I confirm this will resolve your problem
Now I would like to know, do we have a command oneliner to perform this change for a VM from the proxmox console ?
Where is this setting actually stored ?
Here is my actual vm.conf
Code:
agent: 1
audio0: device=ich9-intel-hda,driver=none
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 16
cpu: host
efidisk0: local-lvm:vm-118-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
ide2: lvm-iso:iso/debian-12.11.0-amd64-DVD-1.iso,media=cdrom,size=3760M
machine: q35
memory: 24000
meta: creation-qemu=9.2.0,ctime=1754305242
name: debian
net0: virtio=BC:24:11:26:41:1C,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-118-disk-1,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=f1efd63a-ce36-4ad4-ba11-d7a3e921e9b9
sockets: 1
usb0: host=36b0:3002
usb1: host=046d:c548
vga: none
vmgenid: 90c699e1-836c-463d-af0c-180570625d5c
hostpci0: 0000:0f:00,pcie=1,romfile=Lenovo.RTX3060.unknown.version.rom
agent: 1
From the web interface, this line cannot be touched
Code:
efidisk0: local-lvm:vm-118-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
Could it be set to pre-enrolled-keys=0 ? Would that be enough ? What about adding the nvidia keys or keys for whatever modification you just made ?
I think "attempt to secure boot" setting should be something you can toggle in both the web interface and the vm.conf, something clearly labelled "[ ] Enable Secure Boot" so that anyone who figured out that this is their problem doesn't have to search forums to find the solution.
(Does wiping EFIDISK0 and re-creating it without pre-enroll keys also wipe the bootloader ?)