Browse Source

add audio-model feature

Dmitry Fedorov 4 years ago
parent
commit
01fc33e4df
1 changed files with 3 additions and 0 deletions
  1. 3 0
      templates/libvirt/xen.xml

+ 3 - 0
templates/libvirt/xen.xml

@@ -188,6 +188,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') }}"/>