是否可以在虚拟服务器上运行启动 GPU 进程?

是否可以在虚拟服务器上运行启动 GPU 进程?

我有 Linux 服务器(规格:虚拟服务器 CX40) 并通过 apt-get 安装了 chromium-browser,并通过 Xming 服务器在 Windows 上的 Putty 中通过 X11 转发运行它。它可以工作,但它抱怨 GPU 进程:

Ubuntu-1604-xenial-64-minimal:~$ chromium-browser
[20310:20310:0928/235706:ERROR:gl_surface_glx.cc(386)] GLX 1.3 or later is required.
[20310:20310:0928/235706:ERROR:gl_surface_x11.cc(252)] GLSurfaceGLX::InitializeOneOff failed.
[20310:20310:0928/235706:ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
[20310:20310:0928/235706:ERROR:gpu_child_thread.cc(369)] Exiting GPU process due to errors during initialization
[20278:20304:0928/235729:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
[20278:20304:0928/235729:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
[20278:20304:0928/235846:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
[20278:20304:0928/235847:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.

这样的服务器可以使用 GPU 进程吗?或者因为是虚拟化的,所以不可能?

我该如何检查?


操作系统:Ubuntu 16.04 LTS(GNU/Linux 4.4.0-22-generic x86_64)

Ubuntu-1604-xenial-64-minimal:~$ lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio SCSI
00:05.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon

00:02.0 VGA compatible controller: Device 1234:1111 (rev 02) (prog-if 00 [VGA controller])
        Subsystem: Red Hat, Inc Device 1100
        Flags: bus master, fast devsel, latency 0
        Memory at fd000000 (32-bit, prefetchable) [size=16M]
        Memory at febd0000 (32-bit, non-prefetchable) [size=4K]
        Expansion ROM at febc0000 [disabled] [size=64K]

答案1

根据此消息:

需要 GLX 1.3 或更高版本。

GLX 1.3 或更高版本需要安装。可以通过以下方式检查版本:

glxinfo | grep version

通过安装glxinfo工具sudo apt-get install mesa-utils

要检查哪个库需要升级或安装,请运行:

$ ldd $(which glxinfo) | grep -i glx
        libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fc48a44d000)
$ dpkg -S /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0
libxcb-glx0:amd64: /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0
$ sudo apt-get install libxcb-glx0

但是,如果没有更新,自定义电力供应协议需要添加较新的软件包,例如

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update

这也建议这里

然后再试一次:

sudo apt-get install libxcb-glx0 libgl1-mesa-glx

相关内容