VMware 的桌面虛拟化軟體稱為VMware View,這也是一個軟體的組合。下面将分别安裝各個元件。
VMware View必須要基于域環境,這裡準備2台虛拟機server1和server2,server1作為域控制器,server2作為域成員伺服器。
首先将server1做成DC,IP:192.168.2.101。
<a href="http://blog.51cto.com/attachment/201308/073434124.jpg" target="_blank"></a>
然後将server2加入到域,IP:192.168.2.102。
<a href="http://blog.51cto.com/attachment/201308/073511746.jpg" target="_blank"></a>
1. 安裝View Connection Server
以域管理者的身份在server2上登入,加載鏡像之後,首先開始安裝桌面虛拟化的第一個元件View Connection Server。Connection Server是桌面虛拟化的核心元件,虛拟桌面的建立、管理和維護都是通過它來完成的。
打開Connection Server安裝向導:
<a href="http://blog.51cto.com/attachment/201308/073746656.jpg" target="_blank"></a>
選擇安裝位置:
<a href="http://blog.51cto.com/attachment/201308/073806532.jpg" target="_blank"></a>
選擇View标準伺服器,即第一台View Connection Server,Connection Server也可以安裝多台,以提供高可用和負載平衡功能。
<a href="http://blog.51cto.com/attachment/201308/073859127.jpg" target="_blank"></a>
設定資料恢複密碼:
<a href="http://blog.51cto.com/attachment/201308/073935802.jpg" target="_blank"></a>
選擇自動配置WINDOWS防火牆,它會自動在WINDOWS 2008上打開Connection Server需要的端口,例如8009,443,4001,4100,4172等。
<a href="http://blog.51cto.com/attachment/201308/074024545.jpg" target="_blank"></a>
授權管理者和使用者組:
<a href="http://blog.51cto.com/attachment/201308/074051603.jpg" target="_blank"></a>
然後開始安裝,安裝的過程很簡單。
2. 安裝View Composer
第二個需要安裝的元件是View Composer,它可以對Connection Server的功能進行擴充,通過它可以快速的批量部署虛拟桌面。
View Composer推薦跟vCenter安裝在同一台伺服器上,而且必須要有資料庫的支援。由于原先安裝vCenter時圖省事,使用了vCenter中自帶的資料庫,而那個資料庫是沒辦法進行管理的,是以這裡就使用了由講師給建立好的SQL2008資料庫,資料庫伺服器的IP位址是192.168.11.14。
首先我在SQL伺服器上建立了一個名為Quguangping的資料庫:
<a href="http://blog.51cto.com/attachment/201308/074250803.jpg" target="_blank"></a>
然後需要在vCenter伺服器上進行一些設定。
在管理工具中打開“資料源ODBC”:
<a href="http://blog.51cto.com/attachment/201308/074342271.jpg" target="_blank"></a>
點選“系統DSN”,點選“添加”。
<a href="http://blog.51cto.com/attachment/201308/074423224.jpg" target="_blank"></a>
在“建立資料源”中選擇“SQL Server Native Client”,點選“完成”。
<a href="http://blog.51cto.com/attachment/201308/074500144.jpg" target="_blank"></a>
然後在“Create a New Data Source to SQL Server”的Name中輸入之前建立好的資料庫“Quguangping”,并指定SQL Server伺服器的IP:
<a href="http://blog.51cto.com/attachment/201308/074538959.jpg" target="_blank"></a>
輸入SQL伺服器的管理者賬号和密碼:
<a href="http://blog.51cto.com/attachment/201308/074606729.jpg" target="_blank"></a>
選擇之前建立的資料庫:
<a href="http://blog.51cto.com/attachment/201308/074634406.jpg" target="_blank"></a>
資料庫伺服器設定好之後,下面就可以開始安裝view composer了。
運作安裝程式:
<a href="http://blog.51cto.com/attachment/201308/074715662.jpg" target="_blank"></a>
設定安裝路徑:
<a href="http://blog.51cto.com/attachment/201308/074736942.jpg" target="_blank"></a>
設定View Composer的資料庫,并輸入資料庫的連接配接使用者名和密碼。
<a href="http://blog.51cto.com/attachment/201308/074804100.jpg" target="_blank"></a>
設定View Composer通信端口,預設為18443:
<a href="http://blog.51cto.com/attachment/201308/074835653.jpg" target="_blank"></a>
開始安裝View Composer:
<a href="http://blog.51cto.com/attachment/201308/074907613.jpg" target="_blank"></a>
安裝完成,需要将虛拟機重新開機之後生效。
<a href="http://blog.51cto.com/attachment/201308/074946850.jpg" target="_blank"></a>
3. 準備模闆計算機
下面準備好一台已經安裝好WinXP或Win7系統的虛拟機作為模闆計算機,模闆計算機相當于母盤,通過它可以快速的複制出任意數量的虛拟機。注意,模闆計算機必須要安裝VMware Tools。
在模闆計算機中需要安裝VMware View的第三個元件View Agent,通過這個軟體才可以将虛拟機做成模闆計算機。
<a href="http://blog.51cto.com/attachment/201308/075127247.jpg" target="_blank"></a>
在安裝元件中,除“PCoIP SmartCard”不選擇之外的元件全部選擇:
<a href="http://blog.51cto.com/attachment/201308/075147789.jpg" target="_blank"></a>
選擇啟用遠端桌面功能:
<a href="http://blog.51cto.com/attachment/201308/075225635.jpg" target="_blank"></a>
開始安裝:
<a href="http://blog.51cto.com/attachment/201308/075255176.jpg" target="_blank"></a>
安裝完成後,需要重新開機虛拟機:
<a href="http://blog.51cto.com/attachment/201308/075327851.jpg" target="_blank"></a>
重新開機之後,執行ipconfig /release指令釋放IP位址:
<a href="http://blog.51cto.com/attachment/201308/075406533.jpg" target="_blank"></a>
将虛拟機關機,再為其建立快照:
<a href="http://blog.51cto.com/attachment/201308/075500960.jpg" target="_blank"></a>
本文轉自 yttitan 51CTO部落格,原文連結:http://blog.51cto.com/yttitan/1263227