发布于 2015-12-15 01:24:36 | 265 次阅读 | 评论: 0 | 来源: PHPERZ

这里有新鲜出炉的精品教程,程序狗速度看过来!

VMware Workstation 虚拟机软件

VMware Workstation(中文名“威睿工作站”)是一款功能强大的桌面虚拟计算机软件,提供用户可在单一的桌面上同时运行不同的操作系统,和进行开发、测试 、部署新的应用程序的最佳解决方案。VMware Workstation可在一部实体机器上模拟完整的网络环境,以及可便于携带的虚拟机器,其更好的灵活性与先进的技术胜过了市面上其他的虚拟计算机软件。对于企业的 IT开发人员和系统管理员而言, VMware在虚拟网路,实时快照,拖曳共享文件夹,支持 PXE 等方面的特点使它成为必不可少的工具。


前言

VMware ESXi本身部署就很简单,任何人分分钟钟即可掌握,但是在短时间内需要部署几十台ESXi就显得力不从心了,本文主要介绍通过镜像定制kickstart自动化部署ESXi,PXE网络部署可参考扩展阅读部分。

让ESXi的部署速度再快一点


下载ESXi镜像

经验证ESXi 5和6均可使用此方法

ESXi版本:VMware-VMvisor-Installer-5.5.0.update02-2718055.x86_64-Dell_Customized-A05.iso

其它版本下载地址:https://my.vmware.com/web/vmware/downloads

配置自动化文件

ks.cfg

#
# 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() )

ISOLINUX.CFG

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/#光盘刻录

使用方法

  1. Windows下使用UltraISO打开官方镜像

  2. 把ks.cfg和ISOLINUX.CFG添加并覆盖至根目录

  3. 点击保存即可

Linux编译保存镜像请参考官方手册
http://pubs.vmware.com/vsphere-55/topic/com.vmware.vsphere.install.doc/GUID-C03EADEA-A192-4AB4-9B71-9256A9CB1F9C.html

测试方案

  1. 建议先通过VMware Workstation模拟测试

  2. 在生产环境中验证可行性

GitHub源码 - https://github.com/wsgzao/autoinstall/



最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务