Browse Source

Merge remote-tracking branch 'origin/pr/348'

* origin/pr/348:
  add audio-model feature
Marek Marczykowski-Górecki 3 years ago
parent
commit
f7c0c70877
1 changed files with 3 additions and 0 deletions
  1. 3 0
      templates/libvirt/xen.xml

+ 3 - 0
templates/libvirt/xen.xml

@@ -189,6 +189,9 @@
                     {% endif %}
                     />
                 <input type="tablet" bus="usb"/>
+                {% if vm.features.check_with_template('audio-model', False) %}
+                    <sound model="{{ vm.features.check_with_template('audio-model', False) }}"/>
+                {% endif %}
                 {% if vm.features.check_with_template('video-model', 'vga') != 'none' %}
                     <video>
                         <model type="{{ vm.features.check_with_template('video-model', 'vga') }}"/>