【本文适用环境:Redhat或CentOS】
安装包版本:
turbovnc-2.2.6.x86_64.rpm
VirtualGL-2.6.5.x86_64.rpm
安装
[root@host ~]# yum group install "GNOME Desktop"
[root@host ~]# cd <安装包所在路径>
[root@host ~]# yum install turbovnc-2.2.6.x86_64.rpm
(输入 y)
[root@host ~]# yum install VirtualGL-2.6.5.x86_64.rpm
(输入 y)
TurboVNC和VirtualGL会分别安装在路径/opt/TurboVNC和/opt/VirtualGL下
配置
在虚拟机环境下显示为VMware,实体机应显示为对应的显卡型号。(来自其他文章描述,暂无实体机环境验证)
[root@host ~]# lspci | grep -i vga
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
执行命令>>
[root@host ~]# systemctl stop gdm
[root@host ~]# /opt/VirtualGL/bin/vglserver_config
1) Configure server for use with VirtualGL
2) Unconfigure server for use with VirtualGL
X) Exit
Choose:
1
Restrict 3D X server access to vglusers group (recommended)?
[Y/n]
n
Restrict framebuffer device access to vglusers group (recommended)?
[Y/n]
n
Disable XTEST extension (recommended)?
[Y/n]
n
......
<< 上述选择需要根据实际情况设置。本文选择n可以使系统下用户在不加入用户组vglusers的情况下访问使用
[root@host ~]# systemctl start gdm
[root@host ~]# systemctl status gdm
(可能出现服务已启动但未创建桌面的情况,导致下述的命令执行报错)
[root@host ~]# xdpyinfo -display :0
[root@host ~]# /opt/VirtualGL/bin/glxinfo -display :0 -c | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GRID T4-4Q/PCI/SSE2
OpenGL core profile version str