mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-25 23:21:45 +03:00
create: RHEL6 supports SPICE, hardcode it
This commit is contained in:
parent
1e386dbf8f
commit
e37b67b59a
@ -1394,10 +1394,14 @@ class vmmCreate(vmmGObjectUI):
|
||||
if guest.installer.is_container():
|
||||
return
|
||||
|
||||
support_spice = virtinst.support.check_conn_support(guest.conn,
|
||||
virtinst.support.SUPPORT_CONN_HV_GRAPHICS_SPICE)
|
||||
if not self._rhel6_defaults():
|
||||
support_spice = True
|
||||
|
||||
gtype = self.get_config_graphics_type()
|
||||
if (gtype == virtinst.VirtualGraphics.TYPE_SPICE and not
|
||||
virtinst.support.check_conn_support(guest.conn,
|
||||
virtinst.support.SUPPORT_CONN_HV_GRAPHICS_SPICE)):
|
||||
if (gtype == virtinst.VirtualGraphics.TYPE_SPICE and
|
||||
not support_spice):
|
||||
logging.debug("Spice requested but HV doesn't support it. "
|
||||
"Using VNC graphics.")
|
||||
gtype = virtinst.VirtualGraphics.TYPE_VNC
|
||||
|
Loading…
Reference in New Issue
Block a user