天天看点

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,如需转载请自行联系原作者