mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-25 10:03:56 +00:00
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 <s.ivanov@proxmox.com>
This commit is contained in:
parent
1ca43f1cde
commit
b5d32c6be2
@ -1650,7 +1650,7 @@ sub print_vga_device {
|
|||||||
|
|
||||||
my $edidoff = "";
|
my $edidoff = "";
|
||||||
if ($type eq 'VGA' && windows_version($conf->{ostype})) {
|
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);
|
my $q35 = PVE::QemuServer::Machine::machine_type_is_q35($conf);
|
||||||
|
Loading…
Reference in New Issue
Block a user