PXE自动化部署vsphere esxi6.5

先决条件:
linux

    一、硬件须要支持esxi操做系统
bash

    二、目标主机网卡支持pex启动
服务器

    三、ESXI安装镜像校验完整
网络

    四、须要有TFTP、FTP支持
ide

    五、防火墙运行TFTP/FTP流量经过
spa


安装过程:操作系统

    一、C盘建立文件夹pexboot
server

    二、获取 SYSLINUX 版本 3.86 并进行解压,而后将 pxelinux.0 文件复制到 pexboot里面(pxelinux.0文件在syslinux-3.86.zip\core)blog

    三、在ftpboot文件夹里面建立文件夹pxelinux.cfg,在此文件夹建立文本文档,重命名为“default”,取消文件后缀ip

 四、使用写字板打开default文件写入下列内容

    

DEFAULT install
NOHALT 1
LABEL install
  KERNEL ESXi6.5/mboot.c32 					
  APPEND -c ESXi6.5/boot.cfg
  IPAPPEND 2

wKiom1mxBaqz6w21AAC85QzLuGU095.png-wh_50

    五、在pxeboot文件里面建立ESXI6.5,将esxi6.5安装镜像所有内容减压到此目录

    六、修改镜像文件里面的boot.cfg文件

a. 去掉文件中因此的 / (可使用替换,将/替换为为空内容)
b. 添加下列内容
    prefix=ESXI6.5
    kernelopt=ks= (ftp地址按本身的环境写)

wKioL1mxCSCBv7oAAABlWmSJ0YY776.png-wh_50

    七、在ESXI6.5文件夹中新建文件ks.cfg,写入下列内容(mypassword为安装完成后esxiroot密码)

#
# Sample scripted installation file
#

# Accept the VMware End User License Agreement
vmaccepteula

# Set the root password for the DCUI and Tech Support Mode
rootpw mypassword

# 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

    八、使用TFTP、dhcp

    

wKioL1mxCrTQUzxpAAAqKJ9wiQs043.png-wh_50

wKiom1mxCtTSv9GRAAC44yV7Mgw786.png-wh_50

wKioL1mxCrSAi3ntAACTgqsa3DM896.png-wh_50

九、配置FTP服务器,使用filezilla server

    

wKiom1mxC03RMEmxAAChIEdQHno834.png-wh_50

    十、至此配置已所有完成,能够开始从网络不是esxi,开机等待安装完成就能够了

相关文章
相关标签/搜索