[pve-devel] [PATCH qemu-server 1/2] ovmf: use proper drive properties for temporary efi vars drive

Fiona Ebner f.ebner at proxmox.com
Mon Jul 21 14:38:20 CEST 2025


As reported in the community forum [0], a virtual machine using a
temporary EFI vars disk would fail to start:
> get_drive_id: no interface at /usr/share/perl5/PVE/QemuServer/Drive.pm line 864.

[0]: https://forum.proxmox.com/threads/168628/

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 src/PVE/QemuServer/OVMF.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/QemuServer/OVMF.pm b/src/PVE/QemuServer/OVMF.pm
index aa21c40c..9789c2fb 100644
--- a/src/PVE/QemuServer/OVMF.pm
+++ b/src/PVE/QemuServer/OVMF.pm
@@ -178,7 +178,7 @@ my sub generate_ovmf_blockdev {
         log_warn("no efidisk configured! Using temporary efivars disk.");
         my $path = "/tmp/$vmid-ovmf.fd";
         PVE::Tools::file_copy($ovmf_vars, $path, -s $ovmf_vars);
-        $drive = { file => $path };
+        $drive = { file => $path, interface => 'efidisk', index => 0 };
         $format = 'raw';
     }
 
-- 
2.47.2





More information about the pve-devel mailing list