mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-08-14 17:49:21 +03:00
ovmf: use proper drive properties for temporary efi vars drive
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> Link: https://lore.proxmox.com/20250721123829.85601-1-f.ebner@proxmox.com
This commit is contained in:
committed by
Thomas Lamprecht
parent
bb199dd951
commit
c4071b74ce
@ -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';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user