Linux下TurboVNC+VirtualGL 使用GPU卡vglrun glxgears

【本文适用环境: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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值