Skip to content

Commit 814ae17

Browse files
author
Christian Iuga
committed
add graphics type='spice' when enable_spice |bool
1 parent 72a7fb6 commit 814ae17

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/vm.xml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@
103103
<graphics type='vnc' autoport='yes' listen='127.0.0.1'>
104104
<listen type='address' address='127.0.0.1'/>
105105
</graphics>
106+
{% endif %}
107+
{% if enable_spice |bool %}
108+
<graphics type='spice' autoport='yes'>
109+
<listen type='address'/>
110+
</graphics>
106111
{% endif %}
107112
<rng model="virtio"><backend model="random">/dev/urandom</backend></rng>
108113
</devices>

0 commit comments

Comments
 (0)