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,開機等待安裝完成就能夠了

相關文章
相關標籤/搜索