virtinst: error out if spice+gl is not supported

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2016-11-09 11:21:33 +04:00 committed by Pavel Hrdina
parent b4858842f9
commit ee6a60a9b9

View File

@ -1089,6 +1089,10 @@ 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