Merge pull request #1086 from GNS3/spice-qxl

spice - added qxl vga support
This commit is contained in:
Julien Duponchelle 2017-06-23 09:57:32 +02:00 committed by GitHub
commit 3ed055dbb9
2 changed files with 3 additions and 1 deletions

View File

@ -1309,7 +1309,8 @@ class QemuVM(BaseNode):
if self._console:
return ["-spice",
"addr={},port={},disable-ticketing".format(self._manager.port_manager.console_host, self._console)]
"addr={},port={},disable-ticketing".format(self._manager.port_manager.console_host, self._console),
"-vga", "qxl"]
else:
return []

View File

@ -371,6 +371,7 @@ def test_spice_option(vm, tmpdir, loop, fake_qemu_img_binary):
vm._console = 5905
options = loop.run_until_complete(asyncio.async(vm._build_command()))
assert '-spice addr=127.0.0.1,port=5905,disable-ticketing' in ' '.join(options)
assert '-vga qxl' in ' '.join(options)
def test_disk_options_multiple_disk(vm, tmpdir, loop, fake_qemu_img_binary):