HP服务器PXE+ELILO+EFI自动化部署CentOS系统

HP服务器PXE+ELILO+EFI自动化部署CentOS系统:

安装apache2、tftpd-hpa略

Windows AD的DHCP里文件名写EFI/bootx64.efi

elilo下载网址: https://sourceforge.net/projects/elilo/files/elilo/ (点击elilo-3.16-all.tar.gz)

tar zxfv elilo-3.16-all.tar.gz

tar zxfv elilo-3.16-source.tar.gz

mkdir /var/lib/tftpboot/EFI

rsync -av elilo-3.16-x86_64.efi /var/lib/tftpboot/EFI/bootx64.efi

rsync -av elilo-3.16-source/examples/textmenu_chooser/textmenu-message.msg /var/lib/tftpboot/EFI/

mkdir /root/isocentos65

mount -t iso9660 -r -o ro,loop CentOS-6.5-x86_64-bin-DVD1.iso /root/isocentos65

mkdir /var/www/html/ks

mkdir /var/www/html/ks/CENTOS65

rsync -av --progress /root/isocentos65/* /var/www/html/CENTOS65/

mkdir /var/lib/tftpboot/CentOS65

rsync -av --progress /var/www/html/CENTOS65/isolinux/initrd.img /var/lib/tftpboot/CentOS65/

rsync -av --progress /var/www/html/CENTOS65/isolinux/vmlinuz /var/lib/tftpboot/CentOS65/

cp -rv centos65_gpt_efi.ks /var/www/html/ks/

vi /var/lib/tftpboot/EFI/elilo.conf

chooser=textmenu message=textmenu-display.msg prompt delay=150 f1=general.msg f2=params.msg timeout=0 #default=slesllkiso image=/CentOS65/vmlinuz label=CentOS65 description="CentOS 6.5 x86_64" initrd=/CentOS65/initrd.img append="ks=http://10.0.0.2/ks/centos65_gpt_efi.ks"

:wq

ks文件里记得添加/boot/efi分区

part /boot/efi --fstype="vfat" --ondisk=sda --size=100

相关文章
相关标签/搜索