]> git.proxmox.com Git - qemu-server.git/commitdiff
print_vga_device: check if bios is defined
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 21 Aug 2020 08:07:38 +0000 (10:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Aug 2020 08:12:27 +0000 (10:12 +0200)
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 <s.ivanov@proxmox.com>
PVE/QemuServer.pm

index d41f1621b21ac6de05d2aad685a675934dcfe4c7..9112d937f08d63b2e5bf4c9bba088b0388aca12e 100644 (file)
@@ -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);