[Kimchi-devel] [PATCH V2] [Kimchi] Added check for s390x architecture to not add graphics in params as not supported.

archus at linux.vnet.ibm.com archus at linux.vnet.ibm.com
Wed Aug 10 06:43:19 UTC 2016


From: Archana Singh <archus at linux.vnet.ibm.com>

Added check for s390x architecture to not add graphics in params
as not supported on s390x architecture.

Signed-off-by: Archana Singh <archus at linux.vnet.ibm.com>
---
 vmtemplate.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vmtemplate.py b/vmtemplate.py
index ef92914..dc81fe2 100644
--- a/vmtemplate.py
+++ b/vmtemplate.py
@@ -350,7 +350,10 @@ class VMTemplate(object):
 
         graphics = dict(self.info['graphics'])
         graphics.update(kwargs.get('graphics', {}))
-        params['graphics'] = get_graphics_xml(graphics)
+        # Graphics is not supported on s390x, this check will
+        # not add graphics tag in domain xml.
+        if params['arch'] not in ['s390x']:
+            params['graphics'] = get_graphics_xml(graphics)
 
         libvirt_stream_protocols = kwargs.get('libvirt_stream_protocols', [])
         cdrom_xml = self._get_cdrom_xml(libvirt_stream_protocols)
-- 
2.7.4




More information about the Kimchi-devel mailing list