ESXi 5.5、view 6.2环境下配置K1桌面虚拟化

本次是在ESXi 5.5 U2 及 view 6.2 环境下,配置K1过程,采用VSGA方式配置。

1、下载驱动

2、安装NVIDIA驱动

使ESXi主机进入维护模式

# vim-cmd hostsvc/maintenance_mode_enter

安装驱动

# esxcli software vib install -v /<path_to_vib>/NVIDIA_vib

退出维护模式

# vim-cmd hostsvc/maintenance_mode_exit

检查驱动安装

# esxcli software vib list | grep NVIDIA

3、开启xorg服务

# /etc/init.d/xorg start

也可以使用Web Client,主机-配置-安全配置文件-属性,开启xorg服务

4、重启主机

# reboot

5、配置虚拟机

升级虚拟机版本到10

3D渲染器,选择“硬件”

6、编辑桌面池

默认显示协议:PCoIP

允许用户选择协议:否

3D呈现器:硬件

单击“3D呈现器”-“配置”,设置虚拟机显卡缓存大小,最大支持512MB

然后开启桌面虚拟机。

7、查看K1显卡使用情况

使用SSH登录ESXi

# gpuvm

查看GPU资源使用状态

8、在vCenter下查看K1使用情况

如下所示,即配置正常。

配置虚拟机显卡前,先按以下所示配置BIOS:

9、参考资料

Uninstalland Update the GPU VIB

To update the GPUVIB, you must uninstall the currently installed VIB and install the new VIB.

To uninstall thecurrently installed VIB:

1. Stop all virtualmachines th atuse 3D acceleration.

a. Place the ESXi hostinto maintenance mode.

b. Open a c ommandprompt on the ES Xi host.

c. Stop the Xorgservice by running the following command:

# /etc/init.d/xorg stop

2. Remove the NVIDIAVMkernel driver by running thefo llowing command:

# vmkload_mod -u nvidia

3. Identify the NVIDIAVIB nameby running thefo llowing command:

# esxcli software viblist | grep NVIDIA

4. Remove the VIB byrunning thefo llowing command:

# esxcli software vibremove -n <nameofNVIDIAVIB>

You can now install anewer GPU VIB.

2. Place the ESXi hostin main tenance mode.

# vim-cmd hostsvc/maintenance_mode_enter

3. Open a commandprompt on the ESXi host and run one of thef ollo wing commands:

# esxcli software vib install -v/<path_to_vib>/nvidia_vib

# vim-cmd hostsvc/maintenance_mode_exit

reboot

Start the Xorg Service

Before you start anyvirtual machines, make sure that the Xorg service is running. You can use thevSphere Client, the vSphere Web Client, or the CLI

To use thevSphere Client to verify that the Xorg service is running:

1. Connect t othe ESXihost.

a. On the Configurationtab under Software, click Security Profile.

b. Click the Propertieslink for Services.

c. Verify that Xorg is Runningandhas the desired startup policy.

2. If Xorg isStopped:

a. Select xorgand click Options.

b. Click Start.

c. Select the Startup Policyand click OK.

To use thevSphere Web Client to verify that the Xorg service is running:

1. Connect to vCenterServer.

From the Inventory, select the ESXi host.

On the Manage tab under System, click Security Profile.

Click the Editbutton for Services.

Verify that Xorg is Runningand has the desired startup policy.

2. If Xorg is S topped:

a. Select xorgand click Start.

b. Select the Startup Policyand click OK.

To use the CLI to verify that the Xorgservice is running, run the following command:

#/etc/init.d/xorg start

Post-InstallationChecks

Thissection contains various commands that can be used to install the GPU card andits respective drivers correctly.

Xorg

Xorgis a full-featured X server that was originally designed for UNIX and UNIX-likeoperating systems running on Intel x86 hardware. It now runs on a wider rangeof hardware and OS platforms, including ESXi. To check the status of Xorg, runthe following command in an SSH session:

# /etc/init.d/xorg status

IfXorg is not started, run the following command to start it:

# /etc/init.d/xorg start

IfXorg fails to start, go to the Troubleshooting section.

gpuvm

Thegpuvm command gives a list of working GPUs, withinformation on which virtual machine is using which GPU and the amount of videomemory reserved for each GPU.

Issuethe gpuvm command through an ESXi SSH session:

# gpuvm

Ifthis command has no output at all, then the Xorg service is most likely notrunning. Run the following command in an SSH session to show the status ofXorg:

# /etc/init.d/xorg status

IfXorg is not started, run the following command to start it:

# /etc/init.d/xorg start

IfXorg fails to start, go to the Troubleshooting section.

nvidia-smi

TheNVIDIA-specific nvidia-smi tool shows how much of each GPU is in use when theNVIDIA driver is used. To use nvidia-smi,issue the following command in an SSH session:

# nvidia-smi

This showsseveral details of GPU usage at the time you issue the command. This display isnot dynamic and must be reissued to update the information. You can also issuethe following command:

# watch n1 nvidia-smi

This command issues thenvidia-smicommand every second toprovide a refresh of that point-in-time information. Sample output is shown inFigure 2.

# gpuvm

For NVIDIA-basedGPUs:

# esxcli software vib list | grep NVIDIA

时间: 2024-08-13 13:59:49

ESXi 5.5、view 6.2环境下配置K1桌面虚拟化的相关文章

【OGG】RAC环境下配置OGG单向同步 (四)

[OGG]RAC环境下配置OGG单向同步 (四) 一.1  BLOG文档结构图 一.2  前言部分 一.2.1  导读 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① RAC环境下配置OGG单向同步 注意:本篇BLOG中代码部分需要特别关注的地方我都用黄色背景和红色字体来表示,比如下边的例子中,thread 1的最大归档日志号为33,thread 2的最大归档日志号为43是需要特别关注的地方. List of Archived Lo

Nginx环境下配置PHP使用的SSL认证(https)

最近一段时间发现好多网站都从http协议变成了加密的https协议,比如说百度.吾志等等.https看起来比http高端了好多,而且在不同的浏览器向上还会显示出不同于http的URL展示效果(比如说chrome 和QQ浏览器 使用https协议的网址就会变色). 于是自己就想着把自己的网站加一个ssl证书,使之变成https://iwenku.net 最开始我使用的是腾讯云的服务器,服务器系统是Windows,使用Windows虽然坏处挺多,但是也有好处,那就是Windows是图形化界面的,这样

Windows-Server-2008、IIS7.0环境下配置伪静态化

在Windows-Server-2008.IIS7.0环境下配置伪静态化 首先,是IIS7.0的配置,由于Windows Server 2008操作系统默认的IIS版本为7.0,我们知道,IIS7.0与IIS6.0 的操作界面差别较大,如图(1)所示: 1.IIS7.0操作界面: 图(1) 2 新建网站同时新建应用程序池与网站对应,注意,在IIS7下新建网站之后,程序会自动新建应用程序池与之对应: 不需要再新建应用程序池.如图(2): 图(2) 3  添加网站详细页面如图(3)所示: 图(3)

Ubuntu12.04在无网络环境下配置apt-get光盘源的简单方法

许多数据库服务器是不能连上internet,想更新安装包就比较麻烦. 通常可以先在有internet环境的计算机上下载deb包,在拷贝到服务器安装deb,这样很难处理包的依赖关系. apt-get可以解决包的依赖关系,但是默认配置下需要从internet下载包,如果可以从本地读取安装源就可以解决包的依赖关系和无internet的问题. 步骤参考: 1.把光盘插入光驱,并且挂载到本地: mount /dev/cdrom  /mnt 2.备份后修改source.list仓库配置文件: mv /etc

linux环境下配置jdk+tomcat环境

最近在学习java,其中最重要的一项是将jdk 环境配置好,同时在jdk中结合tomcat开发基于应用,所以在这里记录下. 配置环境: 系统环境:centos 6.3  64位 ,jdk:jdk-6u29-linux-x64.bin ,  tomcat:apache-tomcat-6.0.35.zip  这里需要注意的地方是  jdk 安装时要和系统位数相同,这里我的系统是64位所以这里使用的是jdk 64 位. 开始配置: 这里我将要安装的软件,上传到/usr/loca/目录下,使用 rz 

分布式环境下配置中心实现思考

转载注明出处: 季义钦的博客 最近在考虑分布式环境下配置中心实现. 对于配置中心很难设计. 光用Zookeeper吧,发现一是跨语言支持不好,需要大量跨语言支持的开发,而且没办法在上面增加大量的算法和逻辑. 如果在Zookeeper前面加一层服务的话,又怕成为单点压力. 下面是我画的一个架构图,希望大家帮忙看看,踊跃讨论. 希望各位不管有什么意见和建议.都在下面评论里面留下自己的想法,帮助我改进,谢谢 分布式环境下配置中心实现思考,布布扣,bubuko.com

如何在IIS7.0环境下配置ShopNum1分销系统静态化

近来遇到有许多用户已经更换了最新的操作系统,那么,在新的操作系统.新的环境下,究竟 应该如何配置ShopNum1分销系统呢?下面,我们来为大家详细介绍一下如何在Windows Server 2008.IIS7.0环境下配置ShopNum1分销系统:        首先,是IIS7.0的配置,由于Windows Server 2008操作系统默认的IIS版本为7.0,我们知道,IIS7.0与IIS6.0   的操作界面差别较大,如图所示:     1.IIS7.0操作界面:     2 新建网站同

windows环境下配置tornado

1.前言 在网上看过一些在windows下配置tornado的教程,有一些写的十分复杂,让人望而生却.然后我就自己试着在windows下面配置tornado.我发现,方法非常简单,短短几步就能完成. 2.步骤 配置tornado的前提是你的windows已经安装了python,而且是2.x以上的版本.你可以到以下网址下载python for windows:https://www.python.org/downloads/,下载完毕点击运行即可 现在假设你的windows已经安装了python

nginx环境下配置nagios-关于start_perl_cgi.sh

1 #!/bin/bash 2 set -x 3 dir=/export/servers/nginx 4  5 stop () 6 { 7 #pkill  -f  $dir/perl-fcgi.pl 8 kill $(cat $dir/logs/perl-fcgi.pid) 9 rm $dir/logs/perl-fcgi.pid 2>/dev/null10 rm $dir/logs/perl-fcgi.sock 2>/dev/null11 echo "stop perl-fcgi