[pve-devel] [PATCH qemu-server 2/2] config2cmd: warn when EFI disk is configured, but SeaBIOS is used

Fiona Ebner f.ebner at proxmox.com
Wed Aug 31 14:46:10 CEST 2022


which can lead to operations like cloning the running VM failing.

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

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 4e85dd02..3d7d70c5 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3633,6 +3633,8 @@ sub config_to_command {
 
 	push @$cmd, '-drive', "if=pflash,unit=0,format=raw,readonly=on,file=$ovmf_code";
 	push @$cmd, '-drive', "if=pflash,unit=1$cache,format=$format,id=drive-efidisk0$size_str,file=${path}${read_only_str}";
+    } elsif ($conf->{efidisk0}) {
+	log_warn("EFI disk was not attached, because SeaBIOS is used");
     }
 
     if ($q35) { # tell QEMU to load q35 config early
-- 
2.30.2






More information about the pve-devel mailing list