From bfc0bb81798fe0781b0eb4796bc5c1c86ef42388 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 21 Jan 2019 15:56:54 +0100 Subject: [PATCH] allow explicit set vga with gpu passthrough this patch allows the user to explicitely set a virtual vga, even when using the 'x-vga' flag, this is sometimes necessary, as some users need the 'x-vga' flag on the pci device, but still want to use a virtual vga Signed-off-by: Dominik Csapak --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index c85876f..bc3bb1d 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3553,7 +3553,7 @@ sub config_to_command { if ($d->{'x-vga'}) { $xvga = ',x-vga=on'; $kvm_off = 1; - $vga->{type} = 'none'; + $vga->{type} = 'none' if !defined($conf->{vga}); $gpu_passthrough = 1; if ($conf->{bios} && $conf->{bios} eq 'ovmf') { -- 2.39.2