diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 54955ee2..6a936f85 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2444,7 +2444,7 @@ __PACKAGE__->register_method({ if ($conf->{vga}) { my $vga = PVE::QemuServer::parse_vga($conf->{vga}); $status->{spice} = 1 - if $vga->{type} eq 'virtio-gl' || PVE::QemuServer::vga_conf_has_spice($conf->{vga}); + if $vga->{type} =~ /^virtio/ || PVE::QemuServer::vga_conf_has_spice($conf->{vga}); } $status->{agent} = 1 if PVE::QemuServer::get_qga_key($conf, 'enabled'); diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 7f983904..5183ab23 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3844,7 +3844,7 @@ sub config_to_command { my $spice_port; - if ($qxlnum || $vga->{type} eq 'virtio-gl') { + if ($qxlnum || $vga->{type} =~ /^virtio/) { if ($qxlnum > 1) { if ($winversion){ for (my $i = 1; $i < $qxlnum; $i++){