VMware ESXi自己部署就很简单,任何人分分钟钟便可掌握,可是在短期内须要部署几十台ESXi就显得力不从心了,本文主要介绍经过镜像定制kickstart自动化部署ESXi,PXE网络部署可参考扩展阅读部分。html
让ESXi的部署速度再快一点python
2015年10月22日 - 初稿linux
阅读原文 - http://wsgzao.github.io/post/esxi/git
扩展阅读github
VMware - http://www.vmware.com/support.html
(周剑辉)VMware vSphere 5.1 学习系列之三:安装 ESXi - http://m.educity.cn/linux/1149107.html
Autoinst索引 - http://wsgzao.github.io/index/#Autoinstweb
经验证ESXi 5和6都可使用此方法windows
ESXi版本:VMware-VMvisor-Installer-5.5.0.update02-2718055.x86_64-Dell_Customized-A05.isobash
其它版本下载地址:https://my.vmware.com/web/vmware/downloads网络
# # Sample scripted installation file # # Accept the VMware End User License Agreement vmaccepteula # Set the root password for the DCUI and Tech Support Mode rootpw vmware # Install on the first local disk available on machine install --firstdisk --overwritevmfs # Set the network to DHCP on the first network adapter network --bootproto=dhcp --device=vmnic0 # Reboot at the end reboot # A sample post-install script %post --interpreter=python --ignorefailure=true import time stampFile = open('/finished.stamp', mode='w') stampFile.write( time.asctime() )
DEFAULT menu.c32 MENU TITLE Dell-ESXi-5.5U2-2718055-A05 Boot Menu NOHALT 1 PROMPT 0 TIMEOUT 80 LABEL install KERNEL mboot.c32 APPEND -c boot.cfg ks=cdrom:/KS.CFG MENU LABEL Dell-ESXi-5.5U2-2718055-A05 ^Installer LABEL hddboot LOCALBOOT 0x80 MENU LABEL ^Boot from local disk
整合工具我使用UltraISO,下载地址以下工具
http://wsgzao.github.io/post/windows/#光盘刻录
使用方法
Windows下使用UltraISO打开官方镜像
把ks.cfg和ISOLINUX.CFG添加并覆盖至根目录
点击保存便可
Linux编译保存镜像请参考官方手册
http://pubs.vmware.com/vsphere-55/topic/com.vmware.vsphere.install.doc/GUID-C03EADEA-A192-4AB4-9B71-9256A9CB1F9C.html
测试方案
建议先经过VMware Workstation模拟测试
在生产环境中验证可行性
GitHub源码 - https://github.com/wsgzao/autoinstall/