public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Fiona Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH qemu-server 1/2] ovmf: use proper drive properties for temporary efi vars drive
Date: Mon, 21 Jul 2025 14:38:20 +0200	[thread overview]
Message-ID: <20250721123829.85601-1-f.ebner@proxmox.com> (raw)

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@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


             reply	other threads:[~2025-07-21 12:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-21 12:38 Fiona Ebner [this message]
2025-07-21 12:38 ` [pve-devel] [PATCH qemu-server 2/2] drive: get_drive_id: terminate error messages with newline Fiona Ebner
2025-07-21 13:23 ` [pve-devel] applied: [PATCH qemu-server 1/2] ovmf: use proper drive properties for temporary efi vars drive Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250721123829.85601-1-f.ebner@proxmox.com \
    --to=f.ebner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal