esxi的pxe安装

esxi的pxe安装
(vmsky的blog一直不能通过验证,郁闷,把文章先发这来吧)
esx的pxe安装是比较简单的,和redhat的pxe安装没有多大区别,都是使用vmlinuz进行引导安装,而esx3i实际上和xen一样是hypervisor架构,所以要pxe安装的话需要使用mboot.32来引导(mboot.c32是Syslinx的一个引导模块,支持多启动协议,适合用来引导xen或其它hypervisor架构),我们来看看具体步骤
1、enable tftp
#chkconfig tftp on
#service xinetd restart
2、设置dhcpd
# vi /etc/dhcpd.conf
内容修改如下:
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
class “pxeclients” {
match if substring(option vendor-class-identifier,0,9) = “XEClient”;
next-server 192.168.40.191;
filename “linux-install/pxelinux.0”;
}
subnet 192.168.40.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option domain-name “test.com”;
option domain-name-servers 192.168.40.235;
option time-offset -18000;
default-lease-time 21600;
max-lease-time 43200;
host esxi-1 {
hardware ethernet 00:09:6B:B5:CC:4E;
fixed-address 192.168.40.128;
}
}
具体内容根据自己设置修改
3、将esxi安装iso文件拷贝到pxe服务器上,并mount
#mount -o loop /root/VMware-VMvisor-InstallerCD-3.5.0_Update_3-123629.i386.iso /tftpboot/linux-install/esxi
4、准备tftp的内容
编辑/tftpboot/linux-install/pxelinux.cfg/default,增加内容如下:
label 2
kernel mboot.c32
append /esxi/vmkernel.gz — /esxi/binmod.tgz — /esxi/ienviron.tgz — /esxi/cim.tgz — /esxi/oem.tgz — /esxi/license.tgz — /esxi/install.tgz
保存退出
#vi /tftpboot/linux-install/msgs/boot.msg
修改内容如下:
Enter number of the Operation System you wish to install:
0. Local Machine
1. /xenserver – xenserver
2. /esxi – esxi3u3
保存退出
ok,这样pxe服务器就已经设置完成,启动服务器从pxe引导即可进行安装。
有一个最关键的地方就是mboot.c32必须使用esx3i iso文件中自带的mboot.c32,而不能使用/usr/lib/syslinux/mboot.c32,否则在后面安装一定是过不去的,我犯了经验主义的错误,在这上面浪费了很多时间。

zhhk  发表于: 2009-07-16

我要回答

电子邮件地址不会被公开。 必填项已用*标注

敬请读者进行回答,本站保留删除与本问题无关和不雅内容的权力。