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
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-28 02:49:40 +01:00
parent 3065e0de94
commit 2b364f0cd9
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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 #}