ESXi 5.五、view 6.2環境下配置K1桌面虛擬化


本次是在ESXi 5.5 U2 及 view 6.2 環境下,配置K1過程,採用VSGA方式配置。vim


一、下載驅動緩存

 

二、安裝NVIDIA驅動安全

使ESXi主機進入維護模式session

# vim-cmd hostsvc/maintenance_mode_enteride

安裝驅動this

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

退出維護模式orm

# vim-cmd hostsvc/maintenance_mode_exitserver

檢查驅動安裝blog

# esxcli software vib list | grep NVIDIA

 

三、開啓xorg服務

# /etc/init.d/xorg start

也能夠使用Web Client,主機-配置-安全配置文件-屬性,開啓xorg服務

 

四、重啓主機

# reboot

 

五、配置虛擬機

升級虛擬機版本到10

wKioL1mALnKBGnt4AAEYtCw0iH0134.png


3D渲染器,選擇「硬件」


wKiom1mALpWCAOlWAAI74hkqTZU011.png



6、編輯桌面池

默認顯示協議:PCoIP

容許用戶選擇協議:否

3D呈現器:硬件

單擊「3D呈現器」-「配置」,設置虛擬機顯卡緩存大小,最大支持512MB

而後開啓桌面虛擬機。


七、查看K1顯卡使用狀況

使用SSH登陸ESXi

# gpuvm


wKioL1mALyPiXwSrAAEzLt7f7LI745.jpg


查看GPU資源使用狀態


wKioL1mAL02ggTxDAAEVhl4arFY022.jpg


八、在vCenter下查看K1使用狀況

以下所示,即配置正常。

wKioL1mAL2TTUQVqAAF_f7i02bk146.jpg





配置虛擬機顯卡前,先按如下所示配置BIOS:

wKiom1mAL3vy0IKKAAMs0q9G25o366.png

wKioL1mAL3vhC_9bAABX6Hg0Dhc654.png



 

九、參考資料

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.

 

wKioL1mAL6WAr2wcAABk0HYQgtc680.jpg


# gpuvm

 

For NVIDIA-basedGPUs:

# esxcli software vib list | grep NVIDIA

相關文章
相關標籤/搜索