vSphere

最近公司来了新同事,为了帮助他尽快熟悉VM-vsphere,一块复习了下,并把实验总结为文档。

声明:本例是以王隆杰老师的vsphere5.5教程为基础和线索进行的,由于时间匆忙,可能有些地

方描述不是很清楚,所以如果有不明白的可以搜索王隆杰老师的视频学习也可以联系我本人。

本例环境为vsphere5.5,中间有些地方由于环境问题用到了生产的截图,大家不要被迷惑了。

拓扑

vCenter镜像迅雷下载 vcenter安装_运维

Esxi主机的安装非常简单,这里不再赘述了

本例中两个主机用户名密码约定为

root

petrochina

注册

关于注册问题,如果你是纯粹学习的话,我建议不用注册,因为有60天的试用时间,很充裕。

PS:如果是还用到VEEAM的备份的话是需要激活版才可以。

vCenter安装前的准备

DB和DC上

安装DC--->加入域--->安装DB(sql08r2)

安装完毕数据库后,创建一个名称为vsphere的数据库,检测下正常与否,用的是域用户登录

 

vCenter镜像迅雷下载 vcenter安装_运维_02

vCenter镜像迅雷下载 vcenter安装_数据库_03

vCenter上

只安装一个sql的管理工具即可,同样用域用户登录即可。

vCenter镜像迅雷下载 vcenter安装_用户名_04

添加系统DSN

再管理工具中找到数据源管理器。

vCenter镜像迅雷下载 vcenter安装_vCenter镜像迅雷下载_05

vCenter镜像迅雷下载 vcenter安装_数据库_06

默认

vCenter镜像迅雷下载 vcenter安装_ldap_07

vCenter镜像迅雷下载 vcenter安装_ldap_08

默认

 

vCenter镜像迅雷下载 vcenter安装_用户名_09

可以点击test data source测试下数据库通讯是否正常。

vCenter镜像迅雷下载 vcenter安装_vCenter镜像迅雷下载_10

   

vCenter镜像迅雷下载 vcenter安装_用户名_11

准备工作至此结束

安装vCenter

SSO是身份验证的一个程序,其可以基于本地,Linux的ldap以及Windows的域环境来验证,要安装正确。

vCenter镜像迅雷下载 vcenter安装_数据库_12

安装sso时,有一点需要注意,sso密码需要记住,后面会用到。其他默认即可

 

vCenter镜像迅雷下载 vcenter安装_vCenter镜像迅雷下载_13

安装vCenter时,许可密钥有的话输入,没有的话直接下一步

vCenter镜像迅雷下载 vcenter安装_运维_14

vCenter镜像迅雷下载 vcenter安装_vCenter镜像迅雷下载_15

Web client 登录

Web client 端的功能是比vsphereclient端要全的,不过我们平时用的话vsphere client足够了,一些特殊的功能会用到web client。

In order for this direct link to work, you must first log in to the vSphere Web Client at least once from https://{webclient-host}:{webclient-https-port}.
=====>

https://vcenter.petro.com:9443/vsphere-client/

PS:6.0开始已经放弃使用client管理vCenter,只能管理ESXI主机,而web也只能管理vCenter了,所以web client兼容性更好一些。

vCenter镜像迅雷下载 vcenter安装_ldap_16

vCenter用户名密码

administrator@vsphere.local
zhang.coM99

 

vCenter镜像迅雷下载 vcenter安装_用户名_17

vCenter镜像迅雷下载 vcenter安装_运维_18

为以后登录方便,这里采用域用户凭据登录vCenter。

向vCenter添加域管理员,如果需要其他域用户登录可以再次添加。如vCenter.peto.com用户

 

vCenter镜像迅雷下载 vcenter安装_数据库_19

vCenter镜像迅雷下载 vcenter安装_vCenter镜像迅雷下载_20

vCenter镜像迅雷下载 vcenter安装_vCenter镜像迅雷下载_21

此时有了两个管理员,域和本地的。以后就可以直接用域用户登录就行了。不用再使用vCenter主机的用户名和密码(administrator@vsphere.local)了

 

vCenter镜像迅雷下载 vcenter安装_ldap_22

在域控上注册esx5-1和esx5-2两个主机记录。

vCenter镜像迅雷下载 vcenter安装_运维_23

添加一个转发器

 

vCenter镜像迅雷下载 vcenter安装_运维_24

vCenter镜像迅雷下载 vcenter安装_运维_25

vCenter镜像迅雷下载 vcenter安装_ldap_26

部署vCenter Server虚拟设备(OVF)

导入ovf或者ova。本例导入的为vCenter(VCSA)主机。在5.5及之前的版本可以通过导入OVA文件的方式快速部署,但从6.0开始需要在Windows平台上执行安装程序。

 

vCenter镜像迅雷下载 vcenter安装_vCenter镜像迅雷下载_27

要注意的是

 

vCenter镜像迅雷下载 vcenter安装_运维_28

这里是之前配置过的一个ova,如果是原文件的话会有一个配置网卡的选项,没关系,拿到IP即可,在后面想改的话也可以单独配置。

vCenter镜像迅雷下载 vcenter安装_vCenter镜像迅雷下载_29

1、通过浏览器访问,初始用户名为root,密码为vmware。

2、通过ssh访问

localhost:/etc # cat /etc/issue
VMware vCenter Server Appliance

 

vCenter镜像迅雷下载 vcenter安装_运维_30

进来之后就是对vCenter的一个配置,根据实际需要选择即可。

 

vCenter镜像迅雷下载 vcenter安装_用户名_31

vCenter镜像迅雷下载 vcenter安装_数据库_32

 关于VCSA的部署还有另外一种方式,是通过宿主机做跳板部署到ESXI主机之上,需要注意的是不管哪种方式,VCSA只能是部署到虚机上,而不能部署到物理主机。