配置TFTP
- [root@localhost ~]# sed -i "s/= yes/= no/g" /etc/xinetd.d/tftp
- [root@localhost ~]# systemctl restart xinetd
- [root@localhost ~]# cd /var/lib/tftpboot/
- [root@localhost tftpboot]# cp /var/www/html/Esxi6.3/mboot.c32 .
- [root@localhost tftpboot]# cp /var/www/html/Esxi6.3/boot.cfg .
- [root@localhost tftpboot]# cp /usr/share/syslinux/gpxelinux.0 .
- [root@localhost tftpboot]# mkdir pxelinux.cfg
- [root@localhost tftpboot]# cp /var/www/html/Esxi6.3/isolinux.cfg pxelinux.cfg/default
- [root@localhost tftpboot]# chown +w boot.cfg
- [root@localhost tftpboot]# chmod +w pxelinux.cfg/default
- [root@localhost tftpboot]# sed "s////g" boot.cfg # 将文件内的/全部去掉
- [root@localhost tftpboot]# vim boot.cfg # 在kernel=tboot.b00这行上面添加prefix
- prefix=http://192.168.1.1/Esxi6.3
- [root@localhost tftpboot]# vim pxelinux.cfg/default # 多余的可以删掉
- DEFAULT 1
- NOHALT 1
- PROMPT 0
- TIMEOUT 60
- LABEL 1
- KERNEL mboot.c32
- APPEND -c boot.cfg ks=http://192.168.1.1/ks_cfg/esxi.cfg
(编辑:晋中站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|