VMware vSphere Management Assistant Guide
部署vMA虚拟机
点击“完成”开始部署。
vMA虚拟机设置
部署完成后,打开虚拟机电源,在控制台窗口分别设置IPv4、netmask、hostname、IPv4 gateway、dns。设置完成后,按1退出程序。接着更改vi-admin用户密码。密码要求如下:
9个字符
1个大写
1个小写
1个数字
一个$或者#
设置完密码后,使用vi-admin账户登录系统,使用如下命令更改root密码。
vi-admin@vma:~> sudo passwd root |
启用vi-user用户:
vi-admin@vma:~> sudo passwd vi-user vi-admin‘s password: Changing password for vi-user. New password: Retype new password: Password changed. |
向vMA添加vCenter、esxi:
vi-admin@vma:~> vifp addserver vcenter.xzxj.edu.cn Enter username for vcenter.xzxj.edu.cn: [email protected] [email protected]@vcenter.xzxj.edu.cn‘s password: This will store username and password in credential store which is a security risk. Do you want to continue?(yes/no): yes vi-admin@vma:~> vifp listservers --long vcenter.xzxj.edu.cn vCenter fpauth vi-admin@vma:~> vifp addserver node01.xzxj.edu.cn [email protected]‘s password: vi-admin@vma:~> vifp addserver node02.xzxj.edu.cn [email protected]‘s password: //列出已添加服务器 vi-admin@vma:~> vifp listservers --long vcenter.xzxj.edu.cn vCenter fpauth node01.xzxj.edu.cn ESXi fpauth node02.xzxj.edu.cn ESXi fpauth |
设置健康检查脚本
此健康检查脚本名称为vmwarevSphereHealthCheck.pl,其配置文件为healthCheck.conf。建议将此脚本和配置文件存放在/home/vi-admin/bin目录下。修改文件属性如下所示:
vi-admin@vma:~/bin> chown vi-admin:root vmwarevSphereHealthCheck.pl vi-admin@vma:~/bin> chown vi-admin:root healthCheck.conf |
接着运行vmwarevSphereHealthCheck.pl脚本,如下所示:
vi-admin@vma:~> vmwarevSphereHealthCheck.pl --server vcenter.xzxj.edu.cn --username [email protected] --config bin/healthCheck.conf --type vcenter Enter password: Generating VMware vSphere Health Report v5.5.0 "vmware_health_report.html" ... This can take a few minutes depending on the size of your environment. Get a cup of coffee/tea/beer and check out http://www.virtuallyghetto.com Wide character in print at /home/vi-admin/bin/vmwarevSphereHealthCheck.pl line 554. Wide character in print at /home/vi-admin/bin/vmwarevSphereHealthCheck.pl line 3582. Wide character in print at /home/vi-admin/bin/vmwarevSphereHealthCheck.pl line 3896. Start Time: 11-17-2014 21:31:00 End Time: 11-17-2014 21:31:21 Duration : 21 Seconds |
运行完成后,会在当前目录下生成vmware_health_report.html文件。使用浏览器打开后可查看VMware的相关信息。如果打开后,出现乱码,将浏览器的字符集更改为Unicode即可。
参考文献: VMware vSphere Management Assistant Guide
本文出自 “candon123” 博客,谢绝转载!
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。