From b5d32c6be2fc1b27b735a8f60ab9e4a748a7e31d Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Fri, 21 Aug 2020 10:07:38 +0200 Subject: [PATCH] print_vga_device: check if bios is defined Otherwise a warning is printed if the bios is not set in the config. reported via community forum: https://forum.proxmox.com/threads/warning-in-qemuserver.74683/ reproduced and tested that the patch fixes the issue. Signed-off-by: Stoiko Ivanov --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index d41f162..9112d93 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1650,7 +1650,7 @@ sub print_vga_device { my $edidoff = ""; if ($type eq 'VGA' && windows_version($conf->{ostype})) { - $edidoff=",edid=off" if $conf->{bios} ne 'ovmf'; + $edidoff=",edid=off" if (!defined($conf->{bios}) || $conf->{bios} ne 'ovmf'); } my $q35 = PVE::QemuServer::Machine::machine_type_is_q35($conf); -- 2.39.2