天天看點

VMware vSphere Replication 5.5 安裝配置【展現虛拟化商業價值征文大賽】

最近的項目中都沒有用到産品vSphere Replication,剛好手頭上有2台閑置伺服器,就來搭建個測試環境,體驗下vSphere Replication的魅力

産品介紹

VMware vSphere Replication 是 VMware vCenter Server 的擴充,提供基于管理程式的虛拟機複制和恢複功能。    

vSphere Replication 是基于存儲的複制的一個備用方案。

測試環境介紹

硬體環境:2台X3850,1台二層交換機

軟體環境:ESXi 5.1,vCenter 5.5,vSphere Replication 5.5

2台ESXi主機模拟成2個站點(Site),分别安裝1台AD(域控伺服器),vCenter伺服器和vSphere Replication伺服器,AD同時作為源複制對象,進行備份恢複測試

測試架構圖

圖中标注了主機和虛拟機的名稱和IP位址

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600458CV3x.gif" target="_blank"></a>

安裝步驟

ps:安裝過程中遇到2個難題,會在結尾處進行說明

1、下載下傳vSphere Replication的ovf包,官方本人賬戶沒權限,百度網盤中下載下傳的,登入Web vSphere ,導入OVF包

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_13856004591P8H.png" target="_blank"></a>

2、檢視包的詳細資訊

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600460z3gM.png" target="_blank"></a>

3、接受最終使用者協定

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600462kAQI.png" target="_blank"></a>

4、選擇部署主機和名稱

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600463hxcQ.png" target="_blank"></a>

5、選擇部署方式和位置

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600464HTVZ.png" target="_blank"></a>

6、選擇部署的虛拟網絡和IP位址

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600466sM2E.png" target="_blank"></a>

7、輸入vSphere Replication的登入密碼和IP位址

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600467LyqP.png" target="_blank"></a>

8、選擇綁定vService,

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600468tYKy.png" target="_blank"></a>

9、完成部署,打開電源

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600470VPLU.png" target="_blank"></a>

10、通過IE浏覽器通路VR位址,來進行配置

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_13856004715IzQ.png" target="_blank"></a>

11、進入VR&gt;Configuration下确認資訊,預設資訊就可以了,點選右側Actions的Save and Reastart Service按鈕,重新開機服務

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600472IHeG.png" target="_blank"></a>

12、登入Web vSphere  Client ,點選虛拟機的右鍵,即可看到vSphere Replication操作&gt;配置複制的選項,如果沒有出現,請登出,再登入。

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600474fhU0.png" target="_blank"></a>

13、同樣的安裝步驟,在另一台ESXi伺服器上進行安裝VR,安裝完成後,使用root使用者登入VR,修改host檔案,否則會無法連接配接站點

14、右鍵AD-CA-25,選擇配置複制,我們進入目标站點視窗,連接配接目标站點選擇vCenter02.carol.local,輸入vCenter的管理者賬号和密碼

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600476Jb3o.png" target="_blank"></a>

15、站點連接配接成功後,我們就可以執行下一步了

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600477VMJa.png" target="_blank"></a>

16、選擇複***務器

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600478OK4i.png" target="_blank"></a>

17、選擇目标位置

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600479HHil.png" target="_blank"></a>

18、選擇複制選項

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600480gIfJ.png" target="_blank"></a>

19、選擇恢複設定

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600481fsEN.png" target="_blank"></a>

20、我們回到Web vSphere的首頁面,找到VR選項,點選監控

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600483OPwn.png" target="_blank"></a>

21、在vCenter5.tim.local的出站複制中可以看到剛剛複制的虛拟機

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600484TeLo.png" target="_blank"></a>

22、然後我們登陸到vcenter02.carol.local這台的Web vSphere Client,在入站複制中找到AD這台虛拟機

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600485vzmM.png" target="_blank"></a>

23、右鍵點選恢複

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600487kgqA.png" target="_blank"></a>

24、進入恢複選項

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600488g0pk.png" target="_blank"></a>

25、選擇vCenter02.carol.local資料中心的存放路徑

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600489qg9w.png" target="_blank"></a>

26、恢複完成

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600490n98J.png" target="_blank"></a>

27、我們就可以在vCenter02中,看到恢複的AD-ca-25了,即恢複成功。

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600491bBdq.png" target="_blank"></a>

Troubleshooting(安裝中的故障)

1、vCenter如果是Simple install,則VR的Configration界面無法連接配接vCenter

2、VR一定要用Web vSphere Client導入,vSphere Client在安裝虛拟機後,Web裡面都無法識别,不知道是不是有意的。

3、在vCenter5.tim.local連接配接目标站點vCenter02.carol.local時,會提示”無法連接配接指定站點。該站點在網絡上可能不可用,或者存在網絡配置問題,請檢查…”這個時候就需要在2個VR上添加2個vCenter的名稱和IP到host檔案中

<code>vi /etc/hosts</code>

<code>2.</code><code>i {insert}</code>

<code>3.</code><code>IP_OF_VC_1 {tab} FQDN {tab} hostname</code>

<code>4.</code><code>IP_OF_VC_2 {tab} FQDN {tab} hostname</code>

<code>5.</code><code>{escape button}</code>

<code>6.</code><code>:wq</code>

另外之前有朋友提到部署OVF時提到,虛拟機打開報錯”無法初始化屬性“vami.netmask0.vsphere_…..”

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_1385600492wX59.png" target="_blank"></a>

在IP池中設定中關聯相關的虛拟端口組即可

<a href="http://virtualbox.blog.51cto.com/attachment/201311/28/531002_13856004944ehk.png" target="_blank"></a>

本文轉自 tim2009 51CTO部落格,原文連結:http://blog.51cto.com/virtualbox/1332702,如需轉載請自行聯系原作者