Technical

Proxmox Default EFI Storage: Set It via API or Config File

Proxmox Default EFI Storage: Set It via API or Config File

Proxmox default EFI storage doesn’t exist as a GUI setting. You pick it every time you create a VM. Annoying. But you can set it via the API or by editing the VM config file directly.

Detailed view of a hard drive circuit board showing components and connections in Mérida, Venezuela.

Why there’s no GUI option

The Proxmox team hasn’t added a default EFI storage field to the VM creation wizard. There’s an open feature request, but no accepted answer. So you’re stuck clicking the same storage every time unless you use a workaround.

Use the API to set it

You can create the VM with the API and specify the EFI disk storage in one go. Here’s an example using curl:

curl -k -X POST https://your-proxmox-node:8006/api2/json/nodes/your-node/qemu \
  -H 'Authorization: PVEAPIToken=your-token' \
  -d 'vmid=100' \
  -d 'name=test-vm' \
  -d 'memory=2048' \
  -d 'cores=2' \
  -d 'efidisk0=local-lvm:1,format=raw,efitype=4m,pre-enrolled-keys=0'

Replace local-lvm with your storage. The efidisk0 parameter sets the EFI disk and its storage. That’s the key part.

Close-up of an opened vintage hard disk drive with its cover removed, exposing internal components.

Edit the VM config file

If you already have a VM or want to change the default for future ones, you can edit the config file. Create a VM without an EFI disk, then add it manually:

nano /etc/pve/qemu-server/100.conf

Add a line like:

efidisk0: local-lvm:1,format=raw,efitype=4m,pre-enrolled-keys=0

Then start the VM. It’ll use that storage for EFI. Not a true default, but close enough.

My take

This is a dumb omission. The API workaround is fine if you script VM creation. For manual stuff, just edit the config or deal with the click. Don’t overthink it. If you’re doing a lot of VMs, look into pools and tags to keep things organized.

Leave a comment

Comments are reviewed before they appear. Your email is never published.