From c5a4c92cd9ccf0eb889c6d765aebeedee554966b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 20 Nov 2019 15:10:16 +0100 Subject: [PATCH] qxl max_outputs: ostype can be undefined, assume linux Out code behaves like either l26 or other when the ostype is undefined, both are not common as our webinterface _always_ sets the ostype. If one configured QXL with a VM as output device but does not has an ostype set, and that works without "max_outputs=4" it really should work with none too. Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index eb1c77d9..561a54fb 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2189,7 +2189,7 @@ sub print_vga_device { if ($qxlnum) { $type = $id ? 'qxl' : 'qxl-vga'; - if ($conf->{ostype} =~ m/^l(?=\d)/) { + if (!$conf->{ostype} || $conf->{ostype} =~ m/^(?:l\d\d)|(?:other)$/) { # set max outputs so linux can have up to 4 qxl displays with one device $max_outputs = ",max_outputs=4"; }