Tftp32+FTP环境的搭建请参考相关资料,操作步骤如下:
在windows下使用tftp32+ FileZilla Server Interface(FTP Server)这种经典的pxe安装linux系统方式来安装VMWare Esxi 5.0u1,
参考51cto相关博文 http://xiaoli110.blog.51cto.com/1724/742415 并结合自己平时经验总结出如下这种pxe安装VMWare Esxi 5.0u1方法:
1 解压光盘
2 建立E:\OS\pxe\vmware\esx5u1目录,拷贝光盘全部文件到此目录下
3 编辑/tftpboot/vmware/esx5/boot.cfg文件,内容如下:
bootstate=0
title=Loading ESXi installer
prefix=vmware/esxi5u1
kernel=tboot.b00
kernelopt=runweasel
modules=b.b00 --- useropts.gz --- k.b00 --- a.b00 --- ata-pata.v00 --- ata-pata.v01 --- ata-pata.v02 --- ata-pata.v03 --- ata-pata.v04 --- ata-pata.v05 --- ata-pata.v06 --- ata-pata.v07 --- block-cc.v00 --- ehci-ehc.v00 --- s.v00 --- weaselin.i00 --- ima-qla4.v00 --- ipmi-ipm.v00 --- ipmi-ipm.v01 --- ipmi-ipm.v02 --- misc-cni.v00 --- misc-dri.v00 --- net-be2n.v00 --- net-bnx2.v00 --- net-bnx2.v01 --- net-cnic.v00 --- net-e100.v00 --- net-e100.v01 --- net-enic.v00 --- net-forc.v00 --- net-igb.v00 --- net-ixgb.v00 --- net-nx-n.v00 --- net-r816.v00 --- net-r816.v01 --- net-s2io.v00 --- net-sky2.v00 --- net-tg3.v00 --- ohci-usb.v00 --- sata-ahc.v00 --- sata-ata.v00 --- sata-sat.v00 --- sata-sat.v01 --- sata-sat.v02 --- sata-sat.v03 --- scsi-aac.v00 --- scsi-adp.v00 --- scsi-aic.v00 --- scsi-bnx.v00 --- scsi-fni.v00 --- scsi-hps.v00 --- scsi-ips.v00 --- scsi-lpf.v00 --- scsi-meg.v00 --- scsi-meg.v01 --- scsi-meg.v02 --- scsi-mpt.v00 --- scsi-mpt.v01 --- scsi-mpt.v02 --- scsi-qla.v00 --- scsi-qla.v01 --- scsi-rst.v00 --- uhci-usb.v00 --- tools.t00 --- imgdb.tgz --- imgpayld.tgz
build=
updated=0
## 发现这一步很重要,也是在安装过程中最容易出错的地方,首先是一个路径问题,新加的这句 prefix=vmware/esxi5u1
很关键,定义了安装目录,因此之后的那些所有文件的路径都不能在是“/”,而应该删除“/”。
4 在E:\OS\pxe\vmware\esx5u1目录下创建ks.cfg文件,内容如下:
#Accept the VMware End User License Agreement
accepteula
# Set the root password for the DCUI and Tech Support Mode
rootpw 123456
clearpart --firstdisk --overwritevmfs
#Part disk
#install --firstdisk=local --overwritevmfs
install --firstdisk --overwritevmfs
#Set the network to DHCP IP on the first network adapater
network --bootproto=dhcp --device=vmnic0
#Final reboot
reboot
6 编辑E:\OS\pxe\pxelinux.cfg\default 修改原来装linux的default文件之后:
default auto
#prompt 1
timeout 600
menu background splash.jpg
menu title Welcome to VMW Esxi 5.0 u1!
label auto
kernel vmware/esxi5u1/mboot.c32
append -c vmware/esxi5u1/boot.cfg ip=dhcp ks=ftp://192.168.1.3/ks.cfg ksdevice=eth0