[virt-tools-list] [PATCH 2/4] virtinst: error out if spice+gl is not supported
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Wed Nov 9 07:21:33 UTC 2016
From: Marc-André Lureau <marcandre.lureau at redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
virtinst/guest.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/virtinst/guest.py b/virtinst/guest.py
index 252da22..3366fcb 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -1089,6 +1089,11 @@ class Guest(XMLBuilder):
if dev.image_compression is None:
dev.image_compression = "off"
+ if (dev.type == "spice" and dev.gl and
+ not self.conn.check_support(
+ self.conn.SUPPORT_CONN_SPICE_GL)):
+ raise ValueError(_("Host does not support spice GL"))
+
def _add_spice_channels(self):
if self.skip_default_channel:
return
--
2.10.0
More information about the virt-tools-list
mailing list