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

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

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),