qm set efi disk in CLI


Active Member
Feb 12, 2018
So I have a template file called makevm.sh. Inside I have all my qm set and imports to create VMs. It has worked great for a long time, but now I want to add an efi disk so I can change the type of bios. I have the bios now set with qm set 188 --bios ovmf and it works. Then I am trying to add a efi disk with the following command:

qm set VMID --efidisk0: storage:vm-188-disk-2,size=1M

but get the following error:
update VM 188: -efidisk0 storage:vm-188-disk-2,size=1M
rbd error: rbd: error opening image vm-188-disk-2: (2) No such file or directory

Anyone have any suggestions or if I am messing something here?

Thanks for any help!


Proxmox Staff Member
Staff member
Jul 28, 2015
South Tyrol/Italy

There's a bit of a special syntax for creating new disks and assigning them to a VM in one go:

As EFI Disks are special disks with a fixed size, it gets double special and you just pass 0 as size, so try:
qm set VMID --efidisk0 storage:0


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!