Spice support

* QEMU VNC options tests
* QEMU - SPICE support at build options and schemas
* SPICE console_type for nodes
This commit is contained in:
ziajka
2017-06-16 10:03:33 +02:00
committed by Julien Duponchelle
parent a8e8eac0b4
commit bc5ec98cd5
4 changed files with 28 additions and 4 deletions

View File

@ -1305,6 +1305,14 @@ class QemuVM(BaseNode):
else:
return []
def _spice_options(self):
if self._console:
return ["-spice",
"addr={},port={},disable-ticketing".format(self._manager.port_manager.console_host, self._console)]
else:
return []
def _monitor_options(self):
if self._monitor:
@ -1584,6 +1592,8 @@ class QemuVM(BaseNode):
command.extend(self._serial_options())
elif self._console_type == "vnc":
command.extend(self._vnc_options())
elif self._console_type == "spice":
command.extend(self._spice_options())
else:
raise QemuError("Console type {} is unknown".format(self._console_type))
command.extend(self._monitor_options())