From: Alan Jenkins <alan.james.jenkins(a)gmail.com>
Signed-off-by: Alan Jenkins <alan.james.jenkins(a)gmail.com>
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
src/kimchi/xmlutils/graphics.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/kimchi/xmlutils/graphics.py b/src/kimchi/xmlutils/graphics.py
index 4c69cd9..53cba09 100644
--- a/src/kimchi/xmlutils/graphics.py
+++ b/src/kimchi/xmlutils/graphics.py
@@ -32,7 +32,8 @@ def get_graphics_xml(params):
<target type='virtio' name='com.redhat.spice.0'/>
</channel>
"""
- graphics = E.graphics(type=params['type'], listen=params['listen'])
+ graphics = E.graphics(type=params['type'], autoport='yes',
+ listen=params['listen'])
graphics_xml = ET.tostring(graphics, encoding='utf-8', pretty_print=True)
if params['type'] == 'vnc':
--
1.9.3