Browse Source

Allow to choose emulated video model via qvm-features

Add feature named 'video-model' to choose custom video model. It needs
to be supported by libvirt: https://libvirt.org/formatdomain.html#elementsVideo

Example usage:

    qvm-features vm-name video-model cirrus

QubesOS/qubes-issues#2488
QubesOS/qubes-issues#3432
Marek Marczykowski-Górecki 6 years ago
parent
commit
2b364f0cd9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/libvirt/xen.xml

+ 1 - 1
templates/libvirt/xen.xml

@@ -167,7 +167,7 @@
                     />
                 <input type="tablet" bus="usb"/>
                 <video>
-                    <model type="vga"/>
+                    <model type="{{ vm.features.check_with_template('video-model', 'vga') }}"/>
                 </video>
                 {% if vm.features.check_with_template('linux-stubdom', True) %}
                     {# TODO only add qubes gui if gui-agent is not installed in HVM #}