Browse Source

libvirt xen: Add just device_video

Re-introduce part of "libvirt xen: Add gfx_passthru and device_video"
commit by Artur Puzio <contact@puzio.waw.pl>
Marek Marczykowski-Górecki 3 years ago
parent
commit
bda82c894d
1 changed files with 8 additions and 6 deletions
  1. 8 6
      templates/libvirt/xen.xml

+ 8 - 6
templates/libvirt/xen.xml

@@ -189,12 +189,14 @@
                     {% endif %}
                     />
                 <input type="tablet" bus="usb"/>
-                <video>
-                    <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 #}
-                    <graphics type="qubes"/>
+                {% if vm.features.check_with_template('video-model', 'vga') != 'none' %}
+                    <video>
+                        <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 #}
+                        <graphics type="qubes"/>
+                    {% endif %}
                 {% endif %}
             {% endif %}
                 <console type="pty">