mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
QEMU - SPICE support at build options and schemas
This commit is contained in:
1 parent
c91a001729
commit
88c2353e2e
3 files changed
+20
-3
No files matched your search
@@ -1304,6 +1304,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:
|
||||
@@ -1563,6 +1571,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())
|
||||
|
||||
@@ -63,7 +63,7 @@ QEMU_CREATE_SCHEMA = {
|
||||
},
|
||||
"console_type": {
|
||||
"description": "Console type",
|
||||
"enum": ["telnet", "vnc"]
|
||||
"enum": ["telnet", "vnc", "spice"]
|
||||
},
|
||||
"hda_disk_image": {
|
||||
"description": "QEMU hda disk image path",
|
||||
@@ -244,7 +244,7 @@ QEMU_UPDATE_SCHEMA = {
|
||||
},
|
||||
"console_type": {
|
||||
"description": "Console type",
|
||||
"enum": ["telnet", "vnc"]
|
||||
"enum": ["telnet", "vnc", "spice"]
|
||||
},
|
||||
"linked_clone": {
|
||||
"description": "Whether the VM is a linked clone or not",
|
||||
@@ -541,7 +541,7 @@ QEMU_OBJECT_SCHEMA = {
|
||||
},
|
||||
"console_type": {
|
||||
"description": "Console type",
|
||||
"enum": ["telnet", "vnc"]
|
||||
"enum": ["telnet", "vnc", "spice"]
|
||||
},
|
||||
"initrd": {
|
||||
"description": "QEMU initrd path",
|
||||
|
||||
Reference in new issue
Block a user