[Kimchi-devel] [PATCH] issue #492: Expressly set autoport to yes in vm graphics.

Aline Manera alinefm at linux.vnet.ibm.com
Wed Dec 3 19:00:20 UTC 2014


From: Alan Jenkins <alan.james.jenkins at gmail.com>

Signed-off-by: Alan Jenkins <alan.james.jenkins at gmail.com>
Signed-off-by: Aline Manera <alinefm at 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




More information about the Kimchi-devel mailing list