Run Xtigervnc with MIT-SHM extension disabled for Docker VNC console support. Fixes #2071

This commit is contained in:
grossmj committed 2022-06-08 00:05:24 +08:00
1 parent bccfb64958
commit 527d4bb3ea
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -584,6 +584,7 @@ class DockerVM(BaseNode):
if tigervnc_path:
with open(os.path.join(self.working_dir, "vnc.log"), "w") as fd:
self._vnc_process = await asyncio.create_subprocess_exec(tigervnc_path,
"-extension", "MIT-SHM",
"-geometry", self._console_resolution,
"-depth", "16",
"-interface", self._manager.port_manager.console_host,
@@ -595,8 +596,9 @@ class DockerVM(BaseNode):
else:
if restart is False:
self._xvfb_process = await asyncio.create_subprocess_exec("Xvfb",
"-nolisten",
"tcp", ":{}".format(self._display),
"-nolisten", "tcp",
"-extension", "MIT-SHM",
":{}".format(self._display),
"-screen", "0",
self._console_resolution + "x16")
@@ -606,6 +608,7 @@ class DockerVM(BaseNode):
"-forever",
"-nopw",
"-shared",
"-noshm",
"-geometry", self._console_resolution,
"-display", "WAIT:{}".format(self._display),
"-rfbport", str(self.console),